Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

word-stream

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

word-stream - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
license

Sorry, the diff of this file is not supported yet

+7
-21
#!/usr/bin/env node
'use strict';
var fs = require('fs');
var meow = require('meow');
var wordListPath = require('word-list');
var pkg = require('./package.json');
var argv = process.argv.slice(2);
function help() {
console.log([
'',
' ' + pkg.description,
'',
' Usage',
' word-stream'
].join('\n'));
}
meow({
help: [
'Usage',
' word-stream'
].join('\n')
});
if (argv.indexOf('--help') !== -1) {
help();
return;
}
if (argv.indexOf('--version') !== -1) {
console.log(pkg.version);
return;
}
fs.createReadStream(wordListPath).pipe(process.stdout)
.on('error', process.stderr.write.bind(process.stderr));
{
"name": "word-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "Returns a stream of English words",
"license": "MIT",
"bin": {
"word-stream": "cli.js"
},
"bin": "cli.js",
"repository": "sindresorhus/word-stream",

@@ -13,3 +11,3 @@ "author": {

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},

@@ -27,2 +25,5 @@ "engines": {

"keywords": [
"cli-app",
"cli",
"bin",
"word",

@@ -36,6 +37,6 @@ "words",

"dict",
"dictionary",
"cli"
"dictionary"
],
"dependencies": {
"meow": "^3.1.0",
"split": "^0.3.0",

@@ -42,0 +43,0 @@ "word-list": "^1.0.0"