Coder Social home page Coder Social logo

dogrank-npm's Introduction

Dog Rank

npm version npm downloads npm bundle size

A very simple node module that takes in a dog breed and returns to you their ranking based on the 2016 AKC DataSet.

NPM Package available:

Dog Ranking

How to Install the npm package:

Install via npm:

npm install dog-ranking

Usage

Require the dog breed module into your file:

const dog = require('queryDogBreed')

Then utilize the queryDogBreed function provided by the module:

 // Looking for Poodle?
 queryDogBreed('pood', (result) => {
   console.log(result);
 });

// Not sure how to spell Alaska?
 queryDogBreed('alas', (result) => {
   console.log(result);
 });

// Spani will give you a bunch of results!
 queryDogBreed('spani', (result) => {
   console.log(result);
 });

Expected Output:

Here is your search for pood:
Poodles is ranked 7.

Here is your search for alas:
Alaskan Malamutes is ranked 59.

Here is your search for spani:
Cavalier King Charles Spaniels is ranked 19.
Spaniels (English Springer) is ranked 26.
Spaniels (Cocker) is ranked 29.
Spaniels (English Cocker) is ranked 56.
Spaniels (Boykin) is ranked 110.
Tibetan Spaniels is ranked 118.
Spaniels (Welsh Springer) is ranked 123.
English Toy Spaniels is ranked 130.
Spaniels (Clumber) is ranked 140.
Spaniels (Field) is ranked 141.
Spaniels (Sussex) is ranked 144.
American Water Spaniels is ranked 158.
Spaniels (American Water) is ranked 160.
Spaniels (Irish Water) is ranked 163.
Spaniels (Welsh Corgi) is ranked 179.

dogrank-npm's People

Contributors

alx-rg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.