🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

js-features-used

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-features-used

Detect the JavaScript language features used in code

0.0.2
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

js-features-used

styled with prettier

Detect the JavaScript language features used in code

var featuresUsed = require('features-used')

console.log(featuresUsed(`
const foo = 'bar'
let baz = { foo }

async function main() {
    const r = /hello/u
    baz.foo.match(r)
}

main()
`))

/*
 [ { name: 'const bindings', requiredVersion: '4.8.3' },
   { name: 'let bindings', requiredVersion: '4.8.3' },
   { name: 'literal shorthand', requiredVersion: '4.8.3' },
   { name: 'async functions', requiredVersion: '7.10.0' },
   { name: 'regex y and u flags', requiredVersion: '6.4.0' } ]
*/

FAQs

Package last updated on 15 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts