Skip to content

junosuarez/unitary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

basic unit of measure annotations

Resources

License

Stars

Watchers

Forks

Packages

No packages published