collapse-date-time
v0.1.2
Published
Collapses ISO 8601 Extended timestamps down to a vCard usable format.
Downloads
3
Maintainers
Readme
collapse-date-time
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.