Socket
Book a DemoInstallSign in
Socket

node-expo-crypto

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-expo-crypto

The node implementation for expo-crypto

1.3.0
latest
Source
npmnpm
Version published
Weekly downloads
23
2200%
Maintainers
1
Weekly downloads
 
Created
Source

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"
    ]
  }
}

Keywords

expo

FAQs

Package last updated on 11 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.