kronic-node
A dirt simple library for parsing and formatting human readable dates
Last updated 8 years ago .
Repository · Original npm · Tarball · package.json
$ cnpm install kronic-node 
SYNC missed versions from official npm registry.

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

The tests have been rewritten to use Mocha and Should.

Current Tags

  • 0.0.1                                ...           latest (8 years ago)

1 Versions

  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |