mirror of https://github.com/seald/nedb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.3 KiB
1.3 KiB
customUtilsBrowser
Utility functions that need to be reimplemented for each environment. This is the version for the browser & React-Native
- customUtilsBrowser
- ~randomBytes(size) ⇒
array.<number>
- ~byteArrayToBase64(uint8) ⇒
string
- ~randomBytes(size) ⇒
customUtilsBrowser~randomBytes(size) ⇒ array.<number>
Taken from the crypto-browserify module https://github.com/dominictarr/crypto-browserify NOTE: Math.random() does not guarantee "cryptographic quality" but we actually don't need it
Kind: inner method of customUtilsBrowser
Param | Type | Description |
---|---|---|
size | number |
in bytes |
customUtilsBrowser~byteArrayToBase64(uint8) ⇒ string
Taken from the base64-js module https://github.com/beatgammit/base64-js/
Kind: inner method of customUtilsBrowser
Param | Type |
---|---|
uint8 | array |