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
0.1.2
to
1.0.0
+16
-6
cli.js

@@ -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 @@ }

{
"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 [![Build Status](https://travis-ci.org/sindresorhus/word-stream.png?branch=master)](http://travis-ci.org/sindresorhus/word-stream)
# word-stream [![Build Status](https://travis-ci.org/sindresorhus/word-stream.svg?branch=master)](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)