quotist

0.1.0 • Public • Published

Quotist

Get a random quote right inside your CLI.

Dependency Status devDependency Status MIT License

Built by DEVERO Current release

Table of contents

Demo

Quotist

Install

$ npm install --save quotist

Usage

const quotist = require('quotist')
 
console.log(quotist.all)
console.log(quotist.random())

API

.all

Returns: array

A list of all quotes.

.random()

Returns: string

A random quote. (i.e. “I ain't got time to bleed.”)

CLI

$ npm install --global quotist
$ quotist --help

  Get a random quote right inside your CLI.

  Usage:
    quotist [<options>]

  Options:
    --help   Print usage
    --all    List all quotes

  Examples:
    $ quotist
    $ quotist --all

Browser

<!DOCTYPE html>
<html>
  <head>
    <!-- replace [version] with actual version (i.e. 1.1.15) -->
    <script src="https://unpkg.com/quotist@[version]/dist/quotist.umd.min.js"></script> 
  </head>
 
  <body>
    <script>
      // the umd file exposes the global `quotist`.
      console.log(quotist.all);
    </script> 
  </body>
</html>

Support this project

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

If you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the project
  • Donate—make one-time donations via PayPal.
  • Donate—set up monthly donation via Patreon and get interesting news about what I'm doing.
  • bitcoin—send bitcoins or ethereum to this address: 19jHGagJWeVvuNjN3kaBoAszXd9ea9gKzp.

Thank you!

Code of Conduct

Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT © Alex Devero.

Readme

Keywords

Package Sidebar

Install

npm i quotist

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

44.5 kB

Total Files

7

Last publish

Collaborators

  • alexdevero