basic unit of measure annotations
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE.md
README.md
index.js
package.json

README.md

unitary

basic unit of measure annotations

adj. of or relating to a unit of measure

usage

var unitary = require('unitary')


var cents = unitary('cents')

var stickOfGum = cents(25)


stickOfGum.valueOf()
// => 25

5 * stickOfGum
// => 125

stickOfGum.unit
// => 'cents'

stickOfGum.is(cents)
// true

api

installation

$ npm install unitary

running the tests

From package root:

$ npm install
$ npm test

contributors

license

MIT. (c) MMXIII AgileMD http://agilemd.com