collapse-date-time

0.1.2 • Public • Published

collapse-date-time

npm Version GitHub License Build Status

Collapses ISO 8601 Extended timestamps down to a vCard usable format.

Install

Locally

$ npm install collapse-date-time

Globally (for CLI usage)

$ npm install --global collapse-date-time

Usage

API

var collapseDateTime = require('collapse-date-time');
 
var dateTime  = '2015-07-05T21:17:05Z';
var collapsed = collapseDateTime(dateTime); // > '20150705T211705Z'

CLI

$ collapse-date-time 2015-07-05T21:17:05Z # > 20150705T211705Z 

Testing

$ npm test

License

The MIT License (Expat). See the license file for details.

Package Sidebar

Install

npm i collapse-date-time

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • radioactivehamster