Browse files

Adding cofffeescript example

  • Loading branch information...
1 parent 6622b55 commit 69fbcf5efd10e02a8f0a0b568f1bffa314007f81 @vesln committed Jan 3, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 Readme.md
View
14 Readme.md
@@ -12,6 +12,8 @@ mill is simple library for Node.js that makes working with milliseconds more fun
## Synopsis
+JavaScript:
+
var mill = require('mill');
console.log( (10).seconds ); // 10000
@@ -23,6 +25,18 @@ mill is simple library for Node.js that makes working with milliseconds more fun
console.log( (1).day + (30).seconds ); // 86430000
+CoffeeScript:
+
+ require 'mill'
+
+ console.log 10.seconds
+ console.log 1.minute
+ console.log 2.hours
+ console.log 3.weeks
+ console.log 4.month
+ console.log 1.year
+ console.log 1.day + 30.seconds
+
## Requirements
- NPM (http://npmjs.org/)

0 comments on commit 69fbcf5

Please sign in to comment.