Installations
npm install enable
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 0.10.0
Node Version
12.15.0
NPM Version
6.11.3
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
node-modules
Download Statistics
Total Downloads
21,332,624
Last Day
1,843
Last Week
12,674
Last Month
97,773
Last Year
1,506,557
GitHub Statistics
19 Stars
88 Commits
1 Forks
26 Watching
3 Branches
12 Contributors
Package Meta Information
Latest Version
3.4.0
Package Id
enable@3.4.0
Size
4.48 kB
NPM Version
6.11.3
Node Version
12.15.0
Publised On
15 Feb 2020
Total Downloads
Cumulative downloads
Total Downloads
21,332,624
Last day
-37.8%
1,843
Compared to previous day
Last week
-40.4%
12,674
Compared to previous week
Last month
-18.3%
97,773
Compared to previous month
Last year
-10.9%
1,506,557
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
6
enable
Detect es6 and es7 features enable or not.
Install
1$ npm install enable --save
Usage
1var enable = require('enable'); 2 3if (enable.<feature>) { 4 console.log(<feature> is supported); 5} 6 7/* Example: 8if (enable.generator) { 9 console.log('supports generator: `function* a() {}`'); 10} 11*/
List of features:
Object related:
- Object.is
- Object.assign
- Object.getOwnPropertySymbols
- Object.setPrototypeOf
- Object.observe
- Object.Object.getOwnPropertyDescriptors
String related:
- String.raw
- String.fromCodePoint
- String.prototype.codePointAt
- String.prototype.normalize
- String.prototype.repeat
- String.prototype.startsWith
- String.prototype.endsWith
- String.prototype.contains
- String.prototype.anchor
- String.prototype.big
- String.prototype.bold
- String.prototype.fixed
- String.prototype.fontcolor
- String.prototype.fontsize
- String.prototype.italics
- String.prototype.link
- String.prototype.small
- String.prototype.strike
- String.prototype.sub
- String.prototype.sup
Number related:
- Number.isFinite
- Number.isInteger
- Number.isSafeInteger
- Number.isNaN
- Number.EPSILON
- Number.MIN_SAFE_INTEGER
Math related:
- Math.clz32
- Math.imul
- Math.sign
- Math.log10
- Math.log2
- Math.log1p
- Math.expm1
- Math.cosh
- Math.sinh
- Math.tanh
- Math.acosh
- Math.asinh
- Math.atanh
- Math.hypot
- Math.trunc
- Math.fround
- Math.cbrt
RefExp methods:
- RegExp.prototype.match
- RegExp.prototype.replace
- RegExp.prototype.split
- RegExp.prototype.search
Map related:
- Map
- Map.prototype.size
- Map.prototype.get
- Map.prototype.has
- Map.prototype.set
- Map.prototype.delete
- Map.prototype.keys
- Map.prototype.values
- Map.prototype.clear
- Map.prototype.forEach
- Map.prototype.entries
WeakMap related:
- WeakMap
- WeakMap.length
- WeakMap.prototype.constructor
- WeakMap.prototype.get
- WeakMap.prototype.set
- WeakMap.prototype.has
- WeakMap.prototype.delete
- WeakMap.prototype.clear
Set related:
- Set
- Set.prototype.constructor
- Set.prototype.size
- Set.prototype.add
- Set.prototype.has
- Set.prototype.delete
- Set.prototype.clear
- Set.prototype.forEach
- Set.prototype.entries
- Set.prototype.keys
- Set.prototype.values
WeakSet related:
- WeakSet
- WeakSet.prototype.constructor
- WeakSet.prototype.add
- WeakSet.prototype.has
- WeakSet.prototype.delete
- WeakSet.prototype.clear
Array related:
- Array.from
- Array.of
- Array.prototype.copyWithin
- Array.prototype.find
- Array.prototype.findIndex
- Array.prototype.fill
- Array.prototype.keys
- Array.prototype.values
- Array.prototype.entries
Others:
- generator.
- arrowFunction
- asyncFunction
- asyncArrowFunction
- let.
- const.
- Promise.
- class.
Test
1$ npm install 2$ npm test
Coverage
1$ npm test-cov
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
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'
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 6 are checked with a SAST tool
Score
3
/10
Last Scanned on 2024-12-30
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