https://github.com/adorsys/npm-timestamp-generator
Documentation
https://github.com/adorsys/npm-timestamp-generator
npm timestamps
Last synced: 5 months ago
JSON representation
Documentation
- Host: GitHub
- URL: https://github.com/adorsys/npm-timestamp-generator
- Owner: adorsys
- License: mit
- Created: 2017-06-08T16:54:26.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T14:19:01.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T10:02:29.685Z (5 months ago)
- Topics: npm, timestamps
- Language: TypeScript
- Homepage: https://adorsys.github.io/npm-timestamp-generator/
- Size: 341 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# a-timestamp-generator
[](https://github.com/prettier/prettier)
[](https://travis-ci.org/adorsys/npm-timestamp-generator/builds/)
[](https://coveralls.io/github/adorsys/npm-timestamp-generator?branch=master)
[](https://www.npmjs.com/package/a-timestamp-generator)
[](https://www.npmjs.com/package/a-timestamp-generator)
[](https://github.com/adorsys/npm-timestamp-generator/blob/master/LICENSE)A generator for creating timestamps.
## Homepage
[https://adorsys.github.io/npm-timestamp-generator/](https://adorsys.github.io/npm-timestamp-generator/)## Installation
````
npm install a-timestamp-generator
````## Usage
``` js
import TimestampGenerator from 'a-timestamp-generator';
const tg = new TimestampGenerator()
const firstTimestamp = tg.generate();
const secondTimestamp = tg.generate();firstTimestamp < secondTimestamp // is always true
```## Tests
First install dev dependencies with `npm install`, then run `npm test`.