New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

katify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

katify

NPM package made for cat lovers

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

katify

Build Status npm version Known Vulnerabilities

https://nodei.co/npm/katify.png?downloads=true&downloadRank=true&stars=true

NPM package made for cat lovers. Provides you with a variety of stuff for cats in one place.

  • Random Cat img
  • Random Cat face ascii
  • Random Cat Fact
  • Random Cat Breed
  • Cat breeds
  • Cat name suggest

TODO

  • Cat image searcher
  • Cat articles retriever
  • Improved Cat breed
  • Improved Cat facts

Installation

npm install katify --save

API

Easy promisified API

let katify = require('katify');

katify.randomCat().then(img => {
  console.log(img); // img link
});

console.log(katify.randomCatFace()); // ヽ(=^・ω・^=)丿

katify.randomCatFact().then(fact => {
  console.log(fact); // A female cat is called a queen or a molly.
});

katify.randomCatBreed().then(breed => {
   console.log(breed);
   /*
    {
      "breed": "Abyssinian",
      "country": "Ethiopia",
      "origin": "Natural/Standard",
      "coat": "Short",
      "pattern": "Ticked"
    }
   */
});


katify.getallCatBreeds().then(breeds => {
  console.log(breeds);
  /*
     {
      "breed": "Abyssinian",
      "country": "Ethiopia",
      "origin": "Natural/Standard",
      "coat": "Short",
      "pattern": "Ticked"
    },
    {
      "breed": "Aegean",
      "country": "Greece",
      "origin": "Natural/Standard",
      "coat": "Semi-long",
      "pattern": "Bi- or tri-colored"
    },
    {...}
  */
});

/*
* @param gender {String} (boy or girl)
* @param characteristics {Array} 
* Try it live: https://www.findcatnames.com/ 
*/
katify.suggestCatName(gender, ['funny', 'movie']).then(names => { 
  console.log(names); // [name1, name2]
});

katify.getCatNameCharacteristics(); // Characteristics Array
katify.getCatNameThemes(); // Other characteristics

Keywords

cat

FAQs

Package last updated on 19 Apr 2019

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