You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nate Goldman 31ea9d727f 1.0.1 1 year ago
tests initial commit 1 year ago
.gitignore initial commit 1 year ago
README.md docs: add usage 1 year ago
index.js initial commit 1 year ago
package-lock.json 1.0.1 1 year ago
package.json 1.0.1 1 year ago

README.md

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