1.2.0 • Published 1 year ago
node-expo-crypto v1.2.0
node-expo-crypto
The package node-expo-crypto
provides the same interface of expo-crypto
. So Thus, you can implement mocks that work as expected even in the Node environment.
const crypto = require('node-expo-crypto');
const digest = await crypto.digestStringAsync('sha256', 'hello');
console.log(digest); // 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
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-crypto
Jest configuration
In your Jest configuration.
{
...
"json": {
"setupFilesAfterEnv": [
"node-expo-crypto/jest-setup.js"
]
}
}
1.2.0
1 year ago
1.1.3
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.0-pre.3
3 years ago
1.1.0-pre.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago