Installations
npm install valid-module
Developer Guide
Typescript
Yes
Module System
ESM, UMD
Min. Node Version
>=18
Node Version
20.9.0
NPM Version
10.1.0
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (97.31%)
JavaScript (2.69%)
Developer
bevry
Download Statistics
Total Downloads
359,744
Last Day
6
Last Week
138
Last Month
634
Last Year
18,582
GitHub Statistics
308 Commits
3 Watching
2 Branches
2 Contributors
Bundle Size
2.68 kB
Minified
1.07 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
2.6.0
Package Id
valid-module@2.6.0
Unpacked Size
55.10 kB
Size
12.58 kB
File Count
30
NPM Version
10.1.0
Node Version
20.9.0
Publised On
24 Nov 2023
Total Downloads
Cumulative downloads
Total Downloads
359,744
Last day
500%
6
Compared to previous day
Last week
53.3%
138
Compared to previous week
Last month
-37.8%
634
Compared to previous month
Last year
-55.8%
18,582
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
valid-module
Verify that file or package, be it remote, or local, is a valid ECMAScript Module
Usage
Install
npm
Install Globally
- Install:
npm install --global valid-module
- Executable:
valid-module
Install Locally
- Install:
npm install --save valid-module
- Executable:
npx valid-module
- Import:
import * as pkg from ('valid-module')
- Require:
const pkg = require('valid-module')
Deno
1import * as pkg from 'https://unpkg.com/valid-module@^2.6.0/edition-deno/node.ts'
Skypack
1<script type="module"> 2 import * as pkg from '//cdn.skypack.dev/valid-module@^2.6.0' 3</script>
unpkg
1<script type="module"> 2 import * as pkg from '//unpkg.com/valid-module@^2.6.0' 3</script>
jspm
1<script type="module"> 2 import * as pkg from '//dev.jspm.io/valid-module@2.6.0' 3</script>
Editions
This package is published with the following editions:
valid-module/source/node.ts
is TypeScript source code with Import for modulesvalid-module/edition-browsers/node.js
is TypeScript compiled against ES2022 for web browsers with Import for modulesvalid-module
aliasesvalid-module/edition-es2022/node.js
valid-module/edition-es2022/node.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modulesvalid-module/edition-es2022-esm/node.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modulesvalid-module/edition-types/node.d.ts
is TypeScript compiled Types with Import for modulesvalid-module/edition-deno/node.ts
is TypeScript source code made to be compatible with Deno
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © 2019+ Benjamin Lupton
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no binaries found in the repo
Reason
SAST tool is run on all commits
Details
- Info: all commits (30) are checked with a SAST tool
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
4 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/valid-module/bevry.yml/master?enable=pin
- Info: 0 out of 5 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/bevry.yml:76
- Warn: no topLevel permission defined: .github/workflows/bevry.yml:1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
5.8
/10
Last Scanned on 2025-01-13
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More