A list of some Sun Tzu quotes from The Art of War.
PRs welcome.
npm install sun-tzu-quotes [--g|--save]
This module comes in an API and CLI. Example in code:
var sunTzu = require('sun-tzu-quotes')
// random quote
console.log(sunTzu())
//=> 'All warfare is based on deception.'
// the array of all quotes
console.log(sunTzu.quotes)
Returns a random quote string, like 'Opportunities multiply as they are seized.'
.
The array of all quotes.
The full JSON array.
You can also use the CLI here.
Usage:
sun-tzu-quotes [opt]
Options:
--help show help
--all list all quotes, separated by newlines
Example:
$ sun-tzu-quotes
To know your Enemy, you must become your Enemy.
MIT, see LICENSE.md for details.