@neumatter/random-bytes
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

randomBytes

JavaScript Style Guide

Random Bytes function. Works in nodejs and browser.


Table of Contents


Install

npm i @neumatter/random-bytes 

Usage

sync:

import randomBytes from '@neumatter/random-bytes'

const byteView = randomBytes(32)
// ...use byteView

callback:

import randomBytes from '@neumatter/random-bytes'

randomBytes(32, (err, byteView) => {
  if (err) {
    console.error(err)
  } else {
// ...use byteView
  }
})

Package Sidebar

Install

npm i @neumatter/random-bytes

Weekly Downloads

17

Version

1.0.5

License

none

Unpacked Size

5.77 kB

Total Files

6

Last publish

Collaborators

  • clyng57