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 1.3.0 to 2.0.0

30

cli.js
#!/usr/bin/env node
'use strict';
var meow = require('meow');
var superb = require('./');
const meow = require('meow');
const superb = require('.');
var cli = meow([
'Examples',
' $ superb',
' legendary',
'',
' $ superb --all',
' ace',
' amazing',
' ...',
'',
'Options',
' --all Get all the words instead of a random word'
]);
const cli = meow(`
Examples
$ superb
legendary
$ superb --all
ace
amazing
Options
--all Get all the words instead of a random word
`);
console.log(cli.flags.all ? superb.words.join('\n') : superb());
'use strict';
var words = require('./words.json');
var uniqueRandomArray = require('unique-random-array');
const uniqueRandomArray = require('unique-random-array');
const words = require('./words.json');
module.exports = uniqueRandomArray(words);
module.exports.words = words;
{
"name": "superb",
"version": "1.3.0",
"version": "2.0.0",
"description": "Get superb like words",
"license": "MIT",
"repository": "sindresorhus/superb",
"bin": "cli.js",
"author": {

@@ -13,4 +12,5 @@ "name": "Sindre Sorhus",

},
"bin": "cli.js",
"engines": {
"node": ">=0.10.0"
"node": ">=4"
},

@@ -39,3 +39,3 @@ "scripts": {

"dependencies": {
"meow": "^3.4.0",
"meow": "^3.7.0",
"unique-random-array": "^1.0.0"

@@ -42,0 +42,0 @@ },

@@ -13,3 +13,3 @@ # superb [![Build Status](https://travis-ci.org/sindresorhus/superb.svg?branch=master)](https://travis-ci.org/sindresorhus/superb)

```
$ npm install --save superb
$ npm install superb
```

@@ -21,12 +21,12 @@

```js
var superb = require('superb');
const superb = require('superb');
superb();
//=> legendary
//=> 'legendary'
superb();
//=> awesome
//=> 'awesome'
superb.words;
// ['superb', 'legendary', ...]
//=> ['superb', 'legendary', …]
```

@@ -50,2 +50,3 @@

## CLI

@@ -67,3 +68,3 @@

amazing
...

@@ -79,2 +80,3 @@ Options

- [dog-names](https://github.com/sindresorhus/dog-names) - Get popular dog names
- [pokemon](https://github.com/sindresorhus/pokemon) - Get Pokémon names
- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero names

@@ -87,2 +89,2 @@ - [supervillains](https://github.com/sindresorhus/supervillains) - Get supervillain names

MIT © [Sindre Sorhus](http://sindresorhus.com)
MIT © [Sindre Sorhus](https://sindresorhus.com)

@@ -85,2 +85,3 @@ [

"splendid",
"splendiferous",
"stellar",

@@ -87,0 +88,0 @@ "striking",

Sorry, the diff of this file is not supported yet

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