word-stream
Advanced tools
+2
-1
| #!/usr/bin/env node | ||
| 'use strict'; | ||
| var fs = require('fs'); | ||
| var wordListPath = require('word-list'); | ||
@@ -17,3 +18,3 @@ if (process.argv.indexOf('-h') !== -1 || process.argv.indexOf('--help') !== -1) { | ||
| fs.createReadStream(__dirname + '/words.txt').pipe(process.stdout) | ||
| fs.createReadStream(wordListPath).pipe(process.stdout) | ||
| .on('error', process.stderr.write.bind(process.stderr)); |
+2
-1
| 'use strict'; | ||
| var fs = require('fs'); | ||
| var split = require('split'); | ||
| var wordListPath = require('word-list'); | ||
| module.exports = fs.createReadStream(__dirname + '/words.txt').pipe(split()); | ||
| module.exports = fs.createReadStream(wordListPath).pipe(split()); |
+10
-7
| { | ||
| "name": "word-stream", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Returns a stream of English words", | ||
@@ -19,4 +19,2 @@ "license": "MIT", | ||
| "scripts": { | ||
| "prepublish": "node fetch-words.js", | ||
| "pretest": "node fetch-words.js", | ||
| "test": "mocha" | ||
@@ -26,4 +24,3 @@ }, | ||
| "index.js", | ||
| "cli.js", | ||
| "words.txt" | ||
| "cli.js" | ||
| ], | ||
@@ -35,6 +32,12 @@ "keywords": [ | ||
| "list", | ||
| "stream" | ||
| "stream", | ||
| "en", | ||
| "english", | ||
| "dict", | ||
| "dictionary", | ||
| "cli" | ||
| ], | ||
| "dependencies": { | ||
| "split": "~0.3.0" | ||
| "split": "~0.3.0", | ||
| "word-list": "~0.1.0" | ||
| }, | ||
@@ -41,0 +44,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
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
21
10.53%2638
-99.91%2
100%4
-20%+ Added
+ Added