room-names

1.0.0 • Public • Published

room-names

A list of rooms curated from Wikipedia.

Install

npm install room-names [--g|--save]

Example

var room = require('room-names')

// random character
console.log(room())
//=> 'Sunroom'

// all rooms
console.log(room.rooms)
//=> ["Aerary","Air shower", ..., "Wiring closet", "Workshop"]

Usage

NPM

API

name = room()

Returns a random room name, like "Attic".

list = room.rooms

The array of all room names.

list = require('room-names/rooms.json')

The required JSON array.

CLI

You can also use the CLI here.

Usage:
  room-names [opt]

Options:
  --help  show help
  --all   list all rooms

Example:

$ room-names
Frigidarium

See Also

License

MIT, see LICENSE.md for details.

Readme

Keywords

Package Sidebar

Install

npm i room-names

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • flet