desmotivacional-cli
Advanced tools
Comparing version 0.8.3 to 0.9.0
'use strict'; | ||
var desmotivacionais = require('./desmotivacionais.json'), | ||
uniqueRandomArray = require('unique-random-array'); | ||
// const desmotivacionais = require('./desmotivacionais.json'); | ||
const desmotivacionais = require('./quotes'); | ||
const uniqueRandomArray = require('unique-random-array'); | ||
module.exports.all = desmotivacionais; | ||
module.exports.random = uniqueRandomArray(desmotivacionais); |
{ | ||
"name": "desmotivacional-cli", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "Mensagens desmotivacionais via linha de comando", | ||
"preferGlobal": true, | ||
"bin": { | ||
"desmotivacional": "./bin/cli" | ||
"desmotivacional": "./lib/desmotivacionais.js" | ||
}, | ||
@@ -14,3 +14,6 @@ "scripts": { | ||
"emotions", | ||
"cli" | ||
"cli", | ||
"quotes", | ||
"phrases", | ||
"frases" | ||
], | ||
@@ -23,3 +26,3 @@ "author": "Welkson Ramos <welksonr@hotmail.com>", | ||
"dependencies": { | ||
"commander": "^3.0.0", | ||
"commander": "^4.0.1", | ||
"say": "^0.16.0", | ||
@@ -26,0 +29,0 @@ "unique-random-array": "^2.0.0" |
@@ -1,3 +0,4 @@ | ||
# Desmotivacional-cli | ||
[![Build Status](https://travis-ci.org/welksonramos/desmotivacional-cli.svg?branch=master)](https://travis-ci.org/welksonramos/desmotivacional-cli) [![npm version](https://img.shields.io/npm/v/desmotivacional-cli.svg)](https://www.npmjs.com/package/desmotivacional-cli) [![dependencies Status](https://david-dm.org/welksonramos/desmotivacional-cli/status.svg)](https://david-dm.org/welksonramos/desmotivacional-cli) [![license](https://img.shields.io/npm/l/desmotivacional-cli.svg?style=flat)](https://raw.github.com/welksonramos/desmotivacional-cli/blob/master/LICENSE) | ||
# Desmotivacional-cli :speech_balloon: :pensive: | ||
[![Build Status](https://travis-ci.org/welksonramos/desmotivacional-cli.svg?branch=master)](https://travis-ci.org/welksonramos/desmotivacional-cli) [![npm version](https://img.shields.io/npm/v/desmotivacional-cli.svg)](https://www.npmjs.com/package/desmotivacional-cli) [![dependencies Status](https://david-dm.org/welksonramos/desmotivacional-cli/status.svg)](https://david-dm.org/welksonramos/desmotivacional-cli) [![license](https://img.shields.io/npm/l/desmotivacional-cli.svg?style=flat)](https://raw.github.com/welksonramos/desmotivacional-cli/blob/master/LICENSE)<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
@@ -15,3 +16,3 @@ > Mensagens desmotivacionais via linha de comando | ||
```js | ||
var desmotivacional = require('desmotivacional-cli'); | ||
const desmotivacional = require('desmotivacional-cli'); | ||
desmotivacional.random() | ||
@@ -34,2 +35,3 @@ => Não desanime com a derrota de hoje. Amanhã tem outra. | ||
-a, --all display all phrases | ||
-s, --speak Speak a unique quote | ||
``` | ||
@@ -46,2 +48,3 @@ ### Exemplos: | ||
desmotivacional --all | ||
=> ... | ||
=> As pessoas só te incentivam para rir do seu fracasso. | ||
@@ -56,1 +59,20 @@ => Seus sonhos nunca se realizarão. | ||
Licensed under the [MIT License](LICENSE). | ||
## Contributors ✨ | ||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tr> | ||
<td align="center"><a href="https://theuves.me"><img src="https://avatars0.githubusercontent.com/u/10136242?v=4" width="100px;" alt="Matheus Alves"/><br /><sub><b>Matheus Alves</b></sub></a><br /><a href="https://github.com/welksonramos/desmotivaconal-cli/commits?author=theuves" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
<!-- markdownlint-enable --> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! |
@@ -6,3 +6,3 @@ 'use strict'; | ||
test('Return a random word', function(t){ | ||
test('Return a random word', (t) => { | ||
t.ok(desmotivacionais.random(), 'check if return one word'); | ||
@@ -12,3 +12,3 @@ t.end(); | ||
test('Return all words', function(t){ | ||
test('Return all words', (t) => { | ||
t.ok(Array.isArray(desmotivacionais.all), 'Check if words is array'); | ||
@@ -15,0 +15,0 @@ t.ok(desmotivacionais.all[1].length,'Check if is content'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11043
10
115
74
+ Addedcommander@4.1.1(transitive)
- Removedcommander@3.0.2(transitive)
Updatedcommander@^4.0.1