https://github.com/karimsa/jslint-ed
all the JSLint editions in one package
https://github.com/karimsa/jslint-ed
Last synced: 5 months ago
JSON representation
all the JSLint editions in one package
- Host: GitHub
- URL: https://github.com/karimsa/jslint-ed
- Owner: karimsa
- License: other
- Created: 2016-04-22T22:06:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T22:06:55.000Z (about 10 years ago)
- Last Synced: 2025-03-11T21:03:58.037Z (over 1 year ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jslint-ed
all the JSLint editions in one package.
[](https://nodei.co/npm/jslint-ed/)
## Installation
Install via npm using `npm install jslint-ed`.
## Usage
To use the latest version of JSLint, simply do `require('jslint-ed')()` like so:
```javascript
var jslint = require('jslint-ed')();
jslint( /* use as specified by Douglas Crockford */ );
```
To use a specific edition (i.e. edition 'es6'), simply do `require('jslint-ed')('es6')`.
## List of Editions and Aliases
The package will expose the list of aliases under the property 'aliases' and the list of
editions under the property 'editions':
```javascript
{ [Function]
aliases: { latest: '2015-10-29', es5: '2014-07-08', es6: '2015-10-29' },
editions:
[ '2012-02-03',
'2013-02-03',
'2013-08-13',
'2013-08-26',
'2013-09-22',
'2013-11-23',
'2014-01-26',
'2014-02-06',
'2014-04-21',
'2014-07-08',
'2015-05-08' ] }
```
## License
All the code in the directory `editions` is written by Douglas Crockford. Therefore the
licensing and copyright of that code belongs to Douglas Crockford.
The code in 'index.js' is refactored from [node-jslint](https://github.com/reid/node-jslint).
This code is re-licensed under MIT.
For a copy of the licensing used in JSLint, see [LICENSE](LICENSE).