Comparing version 2.0.0 to 3.0.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
module.exports = uniqueRandomArray(words); | ||
module.exports.words = words; | ||
module.exports.all = words; | ||
module.exports.random = uniqueRandomArray(words); |
{ | ||
"name": "superb", | ||
"version": "2.0.0", | ||
"description": "Get superb like words", | ||
"license": "MIT", | ||
"repository": "sindresorhus/superb", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"bin": "cli.js", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"cli.js", | ||
"words.json" | ||
], | ||
"keywords": [ | ||
"cli-app", | ||
"cli", | ||
"bin", | ||
"superb", | ||
"awesome", | ||
"word", | ||
"words", | ||
"list", | ||
"array", | ||
"random", | ||
"rand" | ||
], | ||
"dependencies": { | ||
"meow": "^3.7.0", | ||
"unique-random-array": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "superb", | ||
"version": "3.0.0", | ||
"description": "Get superb like words", | ||
"license": "MIT", | ||
"repository": "sindresorhus/superb", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"words.json" | ||
], | ||
"keywords": [ | ||
"superb", | ||
"awesome", | ||
"word", | ||
"words", | ||
"list", | ||
"array", | ||
"random" | ||
], | ||
"dependencies": { | ||
"unique-random-array": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # superb [](https://travis-ci.org/sindresorhus/superb) | ||
Currently ~100 words. | ||
Currently ~100 words. **I'm not accepting more words.** | ||
@@ -23,54 +23,30 @@ The word list itself is just a [JSON file](words.json) and can be used wherever. | ||
superb(); | ||
superb.random(); | ||
//=> 'legendary' | ||
superb(); | ||
superb.random(); | ||
//=> 'awesome' | ||
superb.words; | ||
superb.all; | ||
//=> ['superb', 'legendary', …] | ||
``` | ||
## API | ||
### superb() | ||
### .all | ||
Type: `string` | ||
Type: `Array` | ||
Random [superb like word](words.json). | ||
All the words in alphabetical order. | ||
### superb.words | ||
### .random() | ||
Type: `array` | ||
Type: `Function` | ||
All the words. | ||
Random word. | ||
## CLI | ||
``` | ||
$ npm install --global superb | ||
``` | ||
``` | ||
$ superb --help | ||
Examples | ||
$ superb | ||
legendary | ||
$ superb --all | ||
ace | ||
amazing | ||
… | ||
Options | ||
--all Get all the words instead of a random word | ||
``` | ||
## Related | ||
- [superb-cli](https://github.com/sindresorhus/superb-cli) - CLI for this module | ||
- [cat-names](https://github.com/sindresorhus/cat-names) - Get popular cat names | ||
@@ -77,0 +53,0 @@ - [dog-names](https://github.com/sindresorhus/dog-names) - Get popular dog names |
1
4621
5
117
61
- Removedmeow@^3.7.0
- Removedarray-find-index@1.0.2(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcamelcase-keys@2.1.0(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfind-up@1.1.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-stdin@4.0.1(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@2.1.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedload-json-file@1.1.0(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmeow@3.7.0(transitive)
- Removedminimist@1.2.8(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedread-pkg@1.1.0(transitive)
- Removedread-pkg-up@1.0.1(transitive)
- Removedredent@1.0.0(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedresolve@1.22.10(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.21(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedstrip-indent@1.0.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtrim-newlines@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)