A list of rooms curated from Wikipedia.
npm install room-names [--g|--save]
var room = require('room-names')
// random character
console.log(room())
//=> 'Sunroom'
// all rooms
console.log(room.rooms)
//=> ["Aerary","Air shower", ..., "Wiring closet", "Workshop"]
Returns a random room name, like "Attic"
.
The array of all room names.
The required JSON array.
You can also use the CLI here.
Usage:
room-names [opt]
Options:
--help show help
--all list all rooms
Example:
$ room-names
Frigidarium
MIT, see LICENSE.md for details.