0.0.1 • Published 12 years ago
kronic-node v0.0.1
Kronic for Node.js
A dirt simple library for parsing and formatting human readable dates (Today, Yesterday, Last Monday). A port of https://github.com/xaviershay/kronic to make it into a Node.js module.
Usage
$ npm install kronic-node
Kronic = require 'kronic-node'
# Parse string into Date.
Kronic.parse 'Today'
# Human format from Date.
Kronic.format new Date()
Tests
$ npm test
0.0.1
12 years ago