Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbenner-radham/collapse-date-time
Collapses ISO 8601 Extended timestamps down to a vCard usable format.
https://github.com/jbenner-radham/collapse-date-time
cli collapse date-formatting datetime iso8601 timestamp vcard
Last synced: about 1 month ago
JSON representation
Collapses ISO 8601 Extended timestamps down to a vCard usable format.
- Host: GitHub
- URL: https://github.com/jbenner-radham/collapse-date-time
- Owner: jbenner-radham
- License: mit
- Created: 2016-03-23T22:19:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T22:50:47.000Z (almost 9 years ago)
- Last Synced: 2024-08-11T09:24:45.933Z (5 months ago)
- Topics: cli, collapse, date-formatting, datetime, iso8601, timestamp, vcard
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
collapse-date-time
==================
[![npm Version][NPM VERSION BADGE]][NPM PAGE]
[![GitHub License][LICENSE BADGE]][LICENSE PAGE]
[![Build Status][BUILD BADGE]][BUILD PAGE]Collapses ISO 8601 Extended timestamps down to a vCard usable format.
Install
-------
### Locally
```sh
$ npm install collapse-date-time
```### Globally (for CLI usage)
```sh
$ npm install --global collapse-date-time
```Usage
-----
### API
```js
var collapseDateTime = require('collapse-date-time');var dateTime = '2015-07-05T21:17:05Z';
var collapsed = collapseDateTime(dateTime); // > '20150705T211705Z'
```### CLI
```sh
$ collapse-date-time 2015-07-05T21:17:05Z # > 20150705T211705Z
```Testing
-------
```sh
$ npm test
```License
-------
The MIT License (Expat). See the [license file](LICENSE) for details.[BUILD BADGE]: https://img.shields.io/travis/jbenner-radham/collapse-date-time.svg?style=flat-square
[BUILD PAGE]: https://travis-ci.org/jbenner-radham/collapse-date-time
[LICENSE BADGE]: https://img.shields.io/badge/license-MIT%20License-blue.svg?style=flat-square
[LICENSE PAGE]: https://github.com/jbenner-radham/collapse-date-time/blob/master/LICENSE
[NPM PAGE]: https://www.npmjs.com/package/collapse-date-time
[NPM VERSION BADGE]: https://img.shields.io/npm/v/collapse-date-time.svg?style=flat-square