Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@evervault/sdk
Advanced tools
The Node.js SDK for working with evervault cages.
To get started with the evervault Node.js SDK, you will need to have created a team on the evervault dashboard.
We are currently in invite-only early access. You can apply for early access here.
npm install --save @evervault/sdk
yarn add @evervault/sdk
const Evervault = require('@evervault/sdk');
// Initialize the client with your team's api key
const evervaultClient = new Evervault(<API-KEY>);
// Encrypt your data and run a cage
const result = await evervaultClient.encryptAndRun(<CAGE-NAME>, { hello: 'World!' });
Encrypt lets you encrypt data for use in any of your evervault cages. You can use it to store encrypted data to be used in a cage at another time.
async evervaultClient.encrypt(data: Object | String, options?: Object);
Parameter | Type | Description |
---|---|---|
data | Object or String | Data to be encrypted |
options | Object | Standard evervault encryption options |
Run lets you invoke your evervault cages with a given payload.
async evervaultClient.run(cageName: String, payload: Object);
Parameter | Type | Description |
---|---|---|
cageName | String | Name of the cage to be run |
data | Object | Payload for the cage |
Encrypt your data and use it as the payload to invoke the cage.
async evervaultClient.encryptAndRun(cageName: String, data: Object, options: Object);
Parameter | Type | Description |
---|---|---|
cageName | String | Name of the cage to be run |
data | Object | Data to be encrypted |
options | Object | Standard evervault encryption options |
Options to control how your data is encrypted.
Option | Default | Description |
---|---|---|
fieldsToEncrypt | All keys | If the data is an object, fieldsToEncrypt specifies the keys to encrypt. |
FAQs
Node.js SDK for Evervault
The npm package @evervault/sdk receives a total of 3,564 weekly downloads. As such, @evervault/sdk popularity was classified as popular.
We found that @evervault/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.