Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ert78gb/rtg
https://github.com/ert78gb/rtg
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ert78gb/rtg
- Owner: ert78gb
- Created: 2016-11-17T15:26:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T15:50:22.000Z (about 8 years ago)
- Last Synced: 2024-08-09T09:39:08.712Z (5 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Random token generator
======================Use [bluebirdjs](http://bluebirdjs.com/docs/getting-started.html) promise and
[random-token-generator](https://github.com/MusicMapIo/random-token-generator) js library to generate
random token in promise style.```
$ npm install --save rtg
``````javascript
const rtg = require('rtg');rtg.generateToken()
.then((token)=>{
// do something with token
})
.catch((error)=>{
// oops error
});```