Installations
npm install @bevry/nodejs-ecmascript-compatibility
Developer Guide
Typescript
Yes
Module System
ESM, UMD
Min. Node Version
>=18
Node Version
20.10.0
NPM Version
10.2.3
Score
72.9
Supply Chain
95.9
Quality
76.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
bevry
Download Statistics
Total Downloads
25,076
Last Day
7
Last Week
28
Last Month
117
Last Year
16,026
GitHub Statistics
1 Stars
24 Commits
3 Watching
1 Branches
2 Contributors
Bundle Size
7.28 kB
Minified
2.73 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
5.8.0
Package Id
@bevry/nodejs-ecmascript-compatibility@5.8.0
Unpacked Size
102.75 kB
Size
17.70 kB
File Count
15
NPM Version
10.2.3
Node Version
20.10.0
Publised On
29 Dec 2023
Total Downloads
Cumulative downloads
Total Downloads
25,076
Last day
250%
7
Compared to previous day
Last week
154.5%
28
Compared to previous week
Last month
-14%
117
Compared to previous month
Last year
223.6%
16,026
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Node.js ECMAScript Compatibility
API for the Node.js ECMAScript Compatibility information, such that for a particular Node.js release, you get details on which and how many features of an ECMAScript version are supported.
Usage
1import { 2 fetchNodeVersionCompatibility, 3 fetchNodeVersionsCompatibility, 4 fetchMutualCompatibleESVersionsForNodeVersions, 5 fetchExclusiveCompatibleESVersionsForNodeVersions, 6 fetchAllCompatibleESVersionsForNodeVersions, 7} from '@bevry/nodejs-ecmascript-compatibility' 8 9// fetch the compatibility information for the current node.js version 10fetchNodeVersionCompatibility().then(console.log) 11 12// fetch the details for a specific node.js version 13fetchNodeVersionCompatibility('4.9.1').then(console.log) 14 15// fetch the details for multiple node.js versions 16fetchNodeVersionsCompatibility(['4.9.1', '12.0.0']).then(console.log) 17 18// fetch each ECMAScript version that supports both releases 19fetchMutualCompatibleESVersionsForNodeVersions(['4.9.1', '12.0.0']).then( 20 console.log, 21) 22 23// fetch the minimum ECMAScript versions required to support both releases 24fetchExclusiveCompatibleESVersionsForNodeVersions(['4.9.1', '12.0.0']).then( 25 console.log, 26) 27 28// fetch each ECMAScript version that supports either release 29fetchAllCompatibleESVersionsForNodeVersions(['4.9.1', '12.0.0']).then( 30 console.log, 31)
Node.js versions 15 and 16 will need to use --experimental-global-fetch
.
Install
npm
- Install:
npm install --save @bevry/nodejs-ecmascript-compatibility
- Import:
import * as pkg from ('@bevry/nodejs-ecmascript-compatibility')
- Require:
const pkg = require('@bevry/nodejs-ecmascript-compatibility')
Deno
1import * as pkg from 'https://unpkg.com/@bevry/nodejs-ecmascript-compatibility@^5.8.0/edition-deno/index.ts'
Skypack
1<script type="module"> 2 import * as pkg from '//cdn.skypack.dev/@bevry/nodejs-ecmascript-compatibility@^5.8.0' 3</script>
unpkg
1<script type="module"> 2 import * as pkg from '//unpkg.com/@bevry/nodejs-ecmascript-compatibility@^5.8.0' 3</script>
jspm
1<script type="module"> 2 import * as pkg from '//dev.jspm.io/@bevry/nodejs-ecmascript-compatibility@5.8.0' 3</script>
Editions
This package is published with the following editions:
@bevry/nodejs-ecmascript-compatibility/source/index.ts
is TypeScript source code with Import for modules@bevry/nodejs-ecmascript-compatibility/edition-browsers/index.js
is TypeScript compiled against ES2022 for web browsers with Import for modules@bevry/nodejs-ecmascript-compatibility
aliases@bevry/nodejs-ecmascript-compatibility/edition-es2022/index.js
@bevry/nodejs-ecmascript-compatibility/edition-es2022/index.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Require for modules@bevry/nodejs-ecmascript-compatibility/edition-es2022-esm/index.js
is TypeScript compiled against ES2022 for Node.js 18 || 20 || 21 with Import for modules@bevry/nodejs-ecmascript-compatibility/edition-types/index.d.ts
is TypeScript compiled Types with Import for modules@bevry/nodejs-ecmascript-compatibility/edition-deno/index.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.
Backers
Code
Discover how to contribute via the CONTRIBUTING.md
file.
Authors
- Benjamin Lupton — Accelerating collaborative wisdom.
Maintainers
- Benjamin Lupton — Accelerating collaborative wisdom.
Contributors
Finances
Sponsors
- Andrew Nesbitt — Software engineer and researcher
- Balsa — We're Balsa, and we're building tools for builders.
- Codecov — Empower developers with tools to improve code quality and testing.
- Poonacha Medappa
- Rob Morris
- Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
- Syntax — Syntax Podcast
Donors
- Andrew Nesbitt
- Armen Mkrtchian
- Balsa
- Chad
- Codecov
- dr.dimitru
- Elliott Ditman
- entroniq
- GitHub
- Hunter Beast
- Jean-Luc Geering
- Michael Duane Mooring
- Michael Harry Scepaniak
- Mohammed Shah
- Mr. Henry
- Nermal
- Pleo
- Poonacha Medappa
- Rob Morris
- Robert de Forest
- Sentry
- ServieJS
- Skunk Team
- Syntax
- WriterJohnBuck
License
Unless stated otherwise all works are:
- Copyright © Benjamin Lupton
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
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 (5) 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
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
Found 0/19 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/bevry.yml:79
- Warn: no topLevel permission defined: .github/workflows/bevry.yml:1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bevry.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/bevry.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/bevry/nodejs-ecmascript-compatibility/bevry.yml/main?enable=pin
- Info: 0 out of 5 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 third-party GitHubAction dependencies pinned
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 'main'
Score
4.5
/10
Last Scanned on 2025-02-03
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 MoreGathering detailed insights and metrics for @bevry/nodejs-ecmascript-compatibility