Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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();
// => 20181108161103

simpleTimestamp({
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