Roughing out the demo app

This commit is contained in:
Nate Taylor
2019-10-23 07:41:03 -05:00
parent 5bc58a2d40
commit 94be06d3c4
2841 changed files with 274065 additions and 2 deletions

24
node_modules/nanoid/async/generate.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var random = require('./random')
var format = require('./format')
/**
* Low-level function to change alphabet and ID size.
*
* Alphabet must contain 256 symbols or less. Otherwise, the generator
* will not be secure.
*
* @param {string} alphabet Symbols to be used in ID.
* @param {number} size The number of symbols in ID.
*
* @return {Promise} Promise with random string.
*
* @example
* const generateAsync = require('nanoid/async/generate')
* generateAsync('0123456789абвгдеё', 5).then(id => {
* model.id = id //=> "8ё56а"
* })
*
* @name generateAsync
* @function
*/
module.exports = format.bind(null, random)