Skip to content
Parse Japanese real estate room descriptions like 1LDK into objects
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
test
.gitignore
.travis.yml
LICENSE.md
README.md
index.js
package.json

README.md

build status

Roomy

Parse Japanese real estate room descriptions like 1LDK into objects.

Overview

With roomy, you can parse strings like 1LDK into objects like this:

{
  "rooms": 1,
  "living_room": true,
  "dining_room": true,
  "kitchen": true
}

You can also turn them back into their string representation!

Installation

$ npm install roomy

OR

$ git clone git://github.com/deoxxa/roomy.git node_modules/roomy

Usage

#!/usr/bin/env node

var roomy = require("roomy");

var object = roomy.parse("1LDK");

console.log(object);

var string = roomy.generate(object);

console.log(string);

License

3-clause BSD. A copy is included with the source.

Contact

Something went wrong with that request. Please try again.