Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevemao/simple-timestamp
Get a simple timestamp
https://github.com/stevemao/simple-timestamp
Last synced: 2 days ago
JSON representation
Get a simple timestamp
- Host: GitHub
- URL: https://github.com/stevemao/simple-timestamp
- Owner: stevemao
- Created: 2015-05-20T04:42:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-08T23:35:42.000Z (about 6 years ago)
- Last Synced: 2025-01-02T04:50:52.698Z (16 days ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url]
> Get a simple timestamp
Fast as it doesn't have bloated methods.
## Install
### Local:
```sh
$ npm install simple-timestamp
```### Global:
```sh
$ npm install --global simple-timestamp
```## Usage
### API
```js
var simpleTimestamp = require('simple-timestamp');simpleTimestamp();
// => 20181108161103simpleTimestamp({
separator: '.'
});
// => 2018.11.08.16.12.06
```### CLI
```sh
$ npx simple-timestamp
20181108161103
```## License
MIT © [Steve Mao](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/simple-timestamp.svg
[npm-url]: https://npmjs.org/package/simple-timestamp
[travis-image]: https://travis-ci.org/stevemao/simple-timestamp.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/simple-timestamp
[daviddm-image]: https://david-dm.org/stevemao/simple-timestamp.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/stevemao/simple-timestamp
[coveralls-image]: https://coveralls.io/repos/stevemao/simple-timestamp/badge.svg
[coveralls-url]: https://coveralls.io/r/stevemao/simple-timestamp