A dirt simple library for parsing and formatting human readable dates
CoffeeScript
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
.npmignore
README.md
kronic.coffee
kronic.js
package.json

README.md

Kronic for Node.js

Codeship Status for radekstepan/kronic-node

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

The tests have been rewritten to use Mocha and Should.