https://github.com/adorsys/npm-nonce-generator
https://github.com/adorsys/npm-nonce-generator
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adorsys/npm-nonce-generator
- Owner: adorsys
- License: mit
- Created: 2017-06-08T16:52:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T14:01:06.000Z (almost 8 years ago)
- Last Synced: 2025-02-14T09:41:32.536Z (5 months ago)
- Language: TypeScript
- Size: 274 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# a-nonce-generator
[](https://github.com/prettier/prettier)
[](https://travis-ci.org/adorsys/npm-nonce-generator/builds/)
[](https://coveralls.io/github/adorsys/npm-nonce-generator?branch=master)
[](https://www.npmjs.com/package/a-nonce-generator)
[](https://www.npmjs.com/package/a-nonce-generator)
[](https://github.com/adorsys/npm-nonce-generator/blob/master/LICENSE)A generator for creating nonces.
It uses the package 'seedrandom' for better randomness.## Homepage
[https://adorsys.github.io/npm-nonce-generator/](https://adorsys.github.io/npm-nonce-generator/)## Installation
````
npm install a-nonce-generator
````## Usage
``` js
import NonceGenerator from 'a-nonce-generator';
const ng = new NonceGenerator()
const nonce = tg.generate();
```## Tests
Install dev dependencies with `npm install`, then run `npm test`.