word-stream
Advanced tools
+16
-6
@@ -5,12 +5,22 @@ #!/usr/bin/env node | ||
| var wordListPath = require('word-list'); | ||
| var pkg = require('./package.json'); | ||
| var argv = process.argv.slice(2); | ||
| if (process.argv.indexOf('-h') !== -1 || process.argv.indexOf('--help') !== -1) { | ||
| console.log('word-stream'); | ||
| console.log('or'); | ||
| console.log('word-stream > <output file>'); | ||
| function help() { | ||
| console.log([ | ||
| '', | ||
| ' ' + pkg.description, | ||
| '', | ||
| ' Usage', | ||
| ' word-stream' | ||
| ].join('\n')); | ||
| } | ||
| if (argv.indexOf('--help') !== -1) { | ||
| help(); | ||
| return; | ||
| } | ||
| if (process.argv.indexOf('-v') !== -1 || process.argv.indexOf('--version') !== -1) { | ||
| console.log(require('./package').version); | ||
| if (argv.indexOf('--version') !== -1) { | ||
| console.log(pkg.version); | ||
| return; | ||
@@ -17,0 +27,0 @@ } |
+4
-5
| { | ||
| "name": "word-stream", | ||
| "version": "0.1.2", | ||
| "version": "1.0.0", | ||
| "description": "Returns a stream of English words", | ||
@@ -38,9 +38,8 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "split": "~0.3.0", | ||
| "word-list": "~0.1.0" | ||
| "split": "^0.3.0", | ||
| "word-list": "^1.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "mocha": "*", | ||
| "request": "~2.33.0" | ||
| "mocha": "*" | ||
| } | ||
| } |
+10
-15
@@ -1,2 +0,2 @@ | ||
| # word-stream [](http://travis-ci.org/sindresorhus/word-stream) | ||
| # word-stream [](https://travis-ci.org/sindresorhus/word-stream) | ||
@@ -10,8 +10,8 @@ > Returns a stream of English words from the [Letterpress Word List](https://github.com/atebits/Words/blob/master/Words/en.txt) | ||
| ```sh | ||
| $ npm install --save word-stream | ||
| ``` | ||
| npm install --save word-stream | ||
| ``` | ||
| ## Example | ||
| ## Usage | ||
@@ -45,21 +45,16 @@ ```js | ||
| You can also use it as a CLI app by installing it globally: | ||
| ```sh | ||
| $ npm install --global word-stream | ||
| ``` | ||
| npm install --global word-stream | ||
| ``` | ||
| ### Usage | ||
| ```sh | ||
| $ word-stream --help | ||
| Usage | ||
| word-stream | ||
| ``` | ||
| ❯ word-stream -h | ||
| word-stream | ||
| or | ||
| word-stream > <output file> | ||
| ``` | ||
| ## License | ||
| MIT © [Sindre Sorhus](http://sindresorhus.com) |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%30
42.86%1
-50%2534
-3.94%59
-7.81%+ Added
- Removed
Updated
Updated