node-multilanguage-quotes
v1.0.2
Published
Get a random quote and translate it using any language
Downloads
3
Readme
node-multilanguage-quotes
Generate a random quote in any specified language in a promise based manner
getQuote('fr').then( res => {
console.log(res)}
//Des mots gentils vont déverrouiller une porte en fer.
)
.catch(err => {
console.log(err)}
);
The language in which the quote is translated must be one of the codes/names contained in languages.js..
Getting started
To use it in node.js
first install by:
npm install node-multilanguage-quotes --save
Then import it:
const getQuote = require('node-multilanguage-quotes');