JSPM

clockin

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q21690F
  • License ISC

a small date library whose focus is on this moment in time

Package Exports

  • clockin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clockin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

clockin

NPM version build status Test coverage Downloads

Installation

$ npm install clockin

Usage

var getDate = require('clockin')

var present = new Date()
getDate(present, 'now') // Sunday, August 23rd, 2015 05:06:14 GMT-0400
getDate(present)        // Sunday, August 23rd, 2015 05:06:14 GMT-0400
getDate('now')          // Sunday, August 23rd, 2015 05:06:14 GMT-0400
getDate()               // Sunday, August 23rd, 2015 05:06:14 GMT-0400

API

clockin ([date [, mask]])

Why?

After analyzing my usage of moment, I discovered that 99 out of 100 times I used the date formatting routines of the present moment.

Changelog

0.1.3 - add lib to files array in package.json

See Also

License

ISC