New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

superb

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superb - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

index.js

@@ -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 [![Build Status](https://travis-ci.org/sindresorhus/superb.svg?branch=master)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc