Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including racehorse-names with all npm packages installed. Try it out:

var racehorseNames = require("racehorse-names")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

racehorse-names v1.0.2

Racehorse Names

Gives you names of racing horses 🏇🏻 🎠 🐴

List of names includes horses that have won the Kentucky Derby and the Belmont Stakes as well as a whole bunch of other famous stallions of lore.

Can be used as an NPM library or CLI

NPM usage

yarn add racehorse-names
const racehorses = require('racehorse-names');

racehorses.random;
//=> 'Secretariat'

racehorses.all;
//=> Get back 500 horses in alphabetical order

CLI usage

yarn global add racehorse-names
$ racehorse-names --help

  Examples
    $ racehorse-names
    Secretariat

    $ racehorse-names --all
    A.P. Indy
    Adios Butler
    ...

  Options
    --all   Get all names instead of a picking a random one

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free