iron-async
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

iron-async

An async wrapper for the Iron encryption package.

Installation

With Yarn:

yarn install iron-async

Or from NPM:

npm install iron-async --save

Importing

Import iron-async via ES6 default import:

import * as IronAsync from "iron-async";

Or via Node's require:

const IronAsync = require("iron-async");

Examples

seal(value: any, password: string, defaults?)

import { seal } from "iron-async";
 
const sealedToken: string = await seal({
    hello: "world"
}, password);

unseal(token: string, password: string, defaults?)

import { unseal } from "iron-async";
 
const unsealedObject = await unseal(sealedToken, password);

/iron-async/

    Package Sidebar

    Install

    npm i iron-async

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • nozzlegear