Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ert78gb/rtg


https://github.com/ert78gb/rtg

Last synced: 13 days ago
JSON representation

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
});

```