npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

owl-wisdom

v2.0.0

Published

A wise owl spouts quotes to your terminal, inspired by cowsay

Downloads

24

Readme

owl-wisdom

A wise owl spouts quotes to your terminal, inspired by cowsay :books:

About

After making an ASCII owl, the desire came to let it inspire me. The module builds a quote database by fetching the BrainyQuotes quotes of the day once a day, any day you ask the owl for some wisdom. It adds those quotes to the database and chooses a random quote with which to learn you.

Inspired and powered by cowsay. Quote fetching is a rewrite of quoter.

Install

$ npm install -g owl-wisdom

Use

$ owl-wisdom

owl

Get inspired every time you open your terminal by putting it in your .bashrc:

$ echo owl-wisdom >> ~/.bashrc

Besides the owl, all the creatures of cowsay are available, or you can add a path to your own cow file:

# your own cowfile
$ owl-wisdom path/to/file.cow

# or an included cowsay file:
$ owl-wisdom stegosaurus

stegosaurus

More

$ owl-wisdom -h

Usage: owl-wisdom [cowFile]

cowFile         An optional cowfile name or path to cow file for non-owl insight

--limit [int]   Get or set the maximum number of quotes to keep in the database,
                default 100

--count         Find out how many quotes are in your database

--update        Force a quote database update.

--where         Owl tells you the location of quote database

More help:
 -h, --help     Let's not insult your intelligence here...
 -l             List included cow files

The Quote Database

The database is saved as .quoteDb.json in your home directory. Here's what it looks like so you could link in and add your own quotes if so desired. It is simply a JSON file:

{
  ids: ['42'],                // used to ensure the same quote isn't added multiple times
  quotes: [                   // an array of objects that contain a quote and author
    {
      quote: 'We are ways for the Cosmos to know itself.',
      author: 'Carl Sagan'
    }
  ],
  lastUpdate: '2016-12-16',   // recorded so it only updates once a day
  limit: 100                  // the maximum quotes to store in the database.
}

License

MIT © 2016 Robert Pirtle