Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
401 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | base64id
|
---|
| 2 | ========
|
---|
| 3 |
|
---|
| 4 | Node.js module that generates a base64 id.
|
---|
| 5 |
|
---|
| 6 | Uses crypto.randomBytes when available, falls back to unsafe methods for node.js <= 0.4.
|
---|
| 7 |
|
---|
| 8 | To increase performance, random bytes are buffered to minimize the number of synchronous calls to crypto.randomBytes.
|
---|
| 9 |
|
---|
| 10 | ## Installation
|
---|
| 11 |
|
---|
| 12 | $ npm install base64id
|
---|
| 13 |
|
---|
| 14 | ## Usage
|
---|
| 15 |
|
---|
| 16 | var base64id = require('base64id');
|
---|
| 17 |
|
---|
| 18 | var id = base64id.generateId();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.