The JavaScript Database, for Node.js, nw.js, electron and the browser
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.
 
 
nedb/docs/customUtilsBrowser.md

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>

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