is-es5
v1.0.1
Published
Check code is at most ES5 syntax
Downloads
20
Readme
is-es5
Check code is at most ES5 syntax
Installation
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install is-es5 --save
Usage
var isES5 = require('is-es5')
var es5code = 'var x = 1'
var es6code = 'const y = 2'
isES5(es5code) // => true
isES5(es6code) // => false
Tests
npm install
npm test
Dependencies
- acorn: ECMAScript parser
Dev Dependencies
- proclaim: A simple assertion library for server and client side JavaScript
License
MIT