New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

catfacts

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catfacts

Catfacts is a command line tool for retrieving and sending cat facts.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

catfacts

Catfacts is a command line tool for retrieving and sending cat facts.

While many cats enjoy milk, it will give some cats diarrhea.

Sending cat facts via SMS requires a Twilio account

Installation

Install catfacts as a global module via npm

npm install catfacts -g

Usage

You can get help with the CLI at any time by running catfacts -h.

catfacts setup|s

Interactive interface for setting up Twilio credentials

Sending cat facts via SMS requires a Twilio account

catfacts random|r [options]

Get a random cat fact.

Options: -t, --text <number|name> Send cat fact via SMS

catfacts phonebook|p <cmd>

Perform actions on the phonebook

Commands:

read Show all phonebook entries

add Interactively add a new phonebook entry

Using catfacts Programmatically

catfacts can also be used programmitically.

var chalk = require('chalk');
var Catfacts = require('../catfacts');

Catfacts.random(5, function (facts) {
    facts.forEach(function (fact) {
        console.log(chalk.inverse(fact));
    });
});

Keywords

FAQs

Package last updated on 06 Mar 2016

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