kronic-node

0.0.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i kronic-node

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • radekstepan