Skip to content

🔀 🔢 A NativeScript shim for the randombytes package

Notifications You must be signed in to change notification settings

ebiscardi/nativescript-randombytes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NativeScript randombytes shim

The randombytes package doesn't work in the {N} runtime, so replace it by this package if you need to.

Installation

tns plugin add nativescript-randombytes

Usage

var randomBytes = require('nativescript-randombytes');

// sync usage
console.log("randomBytes: " + randomBytes(16));

// async usage
randomBytes(16, function (ignore, result) {
  console.log("randomBytes async: " + result);
})

About

🔀 🔢 A NativeScript shim for the randombytes package

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%