Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adorsys/npm-timestamp-generator
Documentation
https://github.com/adorsys/npm-timestamp-generator
npm timestamps
Last synced: about 1 month 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T14:19:01.000Z (over 7 years ago)
- Last Synced: 2024-10-03T21:37:42.707Z (3 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
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Travis](https://img.shields.io/travis/adorsys/npm-timestamp-generator.svg?style=flat-square)](https://travis-ci.org/adorsys/npm-timestamp-generator/builds/)
[![Coverage Status](https://img.shields.io/coveralls/adorsys/npm-timestamp-generator.svg?style=flat-square)](https://coveralls.io/github/adorsys/npm-timestamp-generator?branch=master)
[![npm](https://img.shields.io/npm/v/a-timestamp-generator.svg?style=flat-square)](https://www.npmjs.com/package/a-timestamp-generator)
[![npm](https://img.shields.io/npm/dm/a-timestamp-generator.svg?style=flat-square)](https://www.npmjs.com/package/a-timestamp-generator)
[![license](https://img.shields.io/github/license/adorsys/npm-timestamp-generator.svg?style=flat-square)](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`.