Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sun-tzu-quotes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sun-tzu-quotes

a few Sun Tzu quotes from The Art of War

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7K
decreased by-4.27%
Maintainers
1
Weekly downloads
 
Created
Source

sun-tzu-quotes

A list of some Sun Tzu quotes from The Art of War.

PRs welcome.

Install

npm install sun-tzu-quotes [--g|--save]

Example

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)

Usage

NPM

API

quote = sunTzu()

Returns a random quote string, like 'Opportunities multiply as they are seized.'.

list = sunTzu.quotes

The array of all quotes.

list = require('sun-tzu-quotes/quotes.json')

The full JSON array.

CLI

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.

License

MIT, see LICENSE.md for details.

Keywords

FAQs

Package last updated on 28 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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