Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clockin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clockin

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

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 09 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc