nickradford / zeit

Manage time in javascript.
Other
1 stars 1 forks source link

zeitjs

Build Status

zeitjs is a javascript library for using logical time values in JavaScript.

It modifies Number.prototype to add properties on to a number.

Installation

$ npm install --save zeitjs

Usage

# Coffeescript

require 'zeitjs'

console.log 3.minutes
# => 180000
// Javascript

require('zeitjs');

console.log(3..minutes)
// => 180000

console.log(3.5.minutes)
// => 210000