https://github.com/dnbard/featurex
ECMAScript 6 feature detection
https://github.com/dnbard/featurex
ecmascript2015 ecmascript6 javascript test testing-tools
Last synced: over 1 year ago
JSON representation
ECMAScript 6 feature detection
- Host: GitHub
- URL: https://github.com/dnbard/featurex
- Owner: dnbard
- Created: 2017-04-08T19:00:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T11:58:07.000Z (about 9 years ago)
- Last Synced: 2025-01-26T05:41:24.679Z (over 1 year ago)
- Topics: ecmascript2015, ecmascript6, javascript, test, testing-tools
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FeatureX
Library to detect ECMAScript 6+ features in the codebase
`Note: this library is in development and API may(and will) be changed!`
## Usage
```js
const featurex = require('featurex');
featurex('./myModule.js').then(result => {
console.log(`Next features are used in my code: ${result.features.join(', ')}`);
})
```
```js
featurex('./myModule.js', 'object.assign').then(result => {
console.log(!!result.features ? 'Object.assign found!' : 'Object.assign not found!');
})
```
## Features
- [ ] Array.from
- [ ] Array.of
- [ ] Array.prototype.copyWithin
- [ ] Array.prototype.entries
- [ ] Array.prototype.find
- [ ] Array.prototype.findIndex
- [ ] Array.prototype.fill
- [ ] Array.prototype.keys
- [ ] Array.prototype.values
- [ ] Arrow functions
- [ ] Default function parameters
- [ ] For..of loops
- [ ] Class
- [x] Constants
- [ ] Destructuring (assigment, parameters)
- [ ] Generators
- [ ] Let
- [ ] Map
- [ ] Number.EPSILON
- [ ] Number.isInteger
- [ ] Number.isNaN
- [ ] Number.isSafeInteger
- [ ] Number.MAX_SAFE_INTEGER
- [ ] Number.MIN_SAFE_INTEGER
- [x] Object.assign
- [ ] Object.is
- [ ] Object.freeze
- [ ] Object.getOwnPropertyDescriptor
- [ ] Object.getOwnPropertySymbols
- [ ] Object.getOwnPropertyNames
- [ ] Object.isExtensible
- [ ] Object.isFrozen
- [ ] Object.isSealed
- [ ] Object.keys
- [ ] Object.preventExtensions
- [ ] Object.seal
- [ ] Object.setPrototypeOf
- [ ] Object literal extensions
- [ ] Octal and binary literals
- [ ] Promise
- [ ] Proxy
- [ ] RegExp "y" and "u" flags
- [ ] Rest parameters
- [ ] Set
- [ ] Spread (...) operator
- [ ] String.fromCodePoint
- [ ] String.prototype.codePointAt
- [ ] String.prototype.endsWith
- [ ] String.prototype.includes
- [ ] String.prototype.normalize
- [ ] String.prototype.repeat
- [ ] String.prototype.startsWith
- [ ] String.raw
- [ ] Super (function)
- [ ] Symbol
- [ ] Template literals
- [ ] Typed arrays
- [ ] WeakMap
- [ ] WeakSet