# nativescript-randombytes

> NativeScript polyfill for Node randombytes

Latest version **1.0.0** (published 2016-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install nativescript-randombytes
pnpm add nativescript-randombytes
yarn add nativescript-randombytes
bun add nativescript-randombytes
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-12-27 |
| First published | 2016-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eddy Verbruggen |
| Maintainers | eddyverbruggen |
| Keywords | ecosystem:nativescript, NativeScript, Node, Android, iOS, randombytes |

## Links

- npm: https://www.npmjs.com/package/nativescript-randombytes
- Repository: https://github.com/EddyVerbruggen/nativescript-randombytes
- Homepage: https://github.com/EddyVerbruggen/nativescript-randombytes#readme
- Issues: https://github.com/EddyVerbruggen/nativescript-randombytes/issues
- npm.io page: https://npm.io/package/nativescript-randombytes

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-12-27

## README

# NativeScript randombytes shim
The [randombytes package](https://www.npmjs.com/package/randombytes) doesn't work in the {N} runtime, so replace it by this package if you need to.

## Installation
```sh
tns plugin add nativescript-randombytes
```

## Usage

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

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

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

---
_Source: https://npm.io/package/nativescript-randombytes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
