1.3.0 • Published 1 year ago

node-expo-random v1.3.0

Weekly downloads
14
License
MIT
Repository
github
Last release
1 year ago

node-expo-random

The package node-expo-random provides the same interface of expo-random. So Thus, you can implement mocks that work as expected even in the Node environment.

const random = require('node-expo-random');

const bytes = random.getRandomBytes(8);
console.log(bytes); // Uint8Array(8) [5, 169, 234, 152, 41, 248, 121, 197]

This package also contains default mocks for Jest testing framework. For details on how to configure, see below.

Install

$ npm install --save-dev node-expo-random

Jest configuration

In your Jest configuration.

{
  ...
  "json": {
    "setupFilesAfterEnv": [
      "node-expo-random/jest-setup.js"
    ]
  }
}
1.3.0

1 year ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.0-pre.6

4 years ago

1.1.0-pre.5

4 years ago

1.1.0-pre.4

4 years ago

1.1.0-pre.2

4 years ago

1.1.0-pre.1

4 years ago

1.1.0-pre.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago