npm.io
1.1.1 • Published 9 years agoCLI

animequote

Licence
MIT
Version
1.1.1
Deps
0
Vulns
0
Weekly
0
DeprecatedThis package is deprecated
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

!!! If you are using 1.0.3 or lower, please update the package. !!!

node-animequote

npm downloads npm version License Codacy Badge

NPM

Anime Quote Generator. In node.js. Made from node-yoda-said. Resources from anime-quote-generator.

Before installing, you want to make sure it works, eh? Click Test animequote in your browser. at the right side of the npmjs page, then click Run. It will run a script and gives you a nice js object callback.

How to use it?

var aq = require('animequote@1.1.1'); // @1.1.1 is mandatory, but recommended if you have ever installed older version of the package.
console.log("\"" + aq().quotesentence + "\" --- " + aq().quotecharacter + " from " + aq().quoteanime);

Output example

{
    "quotenumber": 1,
    "quotesentence": "<Random>",
    "quotecharacter": "<Random>",
    "quoteanime": "<Random>"
}

For 1.0.x, it has a different output, which includes some pre-inserted characters (1 slash, 1 comma and 2 spaces). That’s why I suggest some of you to add @1.1.1 in the script and update the package.

{
    "quotenumber": 1,
    "quotesentence": "<Random>",
    "quotecharacter": "- <Random>,",
    "quoteanime": " <Random>"
}
In console?

UNTESTED, so if you found a problem here, submit an issue in the GitHub repo.

$ npm install --global animequote
$ animequote

Credit

Keywords