# enyadeliver

> A secure content delivery package

Latest version **1.0.6** (published 2020-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install enyadeliver
pnpm add enyadeliver
yarn add enyadeliver
bun add enyadeliver
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2020-03-03 |
| First published | 2020-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 (+36 in 1 direct dependencies) |
| Install scripts | no |
| Author | enya.ai |
| Maintainers | enyaai |
| Keywords | private, secure, delivery, enya |

## Links

- npm: https://www.npmjs.com/package/enyadeliver
- Repository: https://github.com/enyalabs/EnyaSDK
- Homepage: http://enya.ai
- Issues: https://github.com/enyalabs/EnyaSDK/issues
- npm.io page: https://npm.io/package/enyadeliver

## Dependencies (5)

- [buffer](https://npm.io/package/buffer.md) ^5.4.3
- [node-forge](https://npm.io/package/node-forge.md) ^0.9.1
- [elliptic-expo](https://npm.io/package/elliptic-expo.md) ^6.5.3
- [expo-file-system](https://npm.io/package/expo-file-system.md) ^8.0.0
- [expo-secure-store](https://npm.io/package/expo-secure-store.md) ^8.0.0

## Recent versions

- 1.0.6 (latest) — 2020-03-03
- 1.0.5 — 2020-01-22
- 1.0.4 — 2020-01-21
- 1.0.3 — 2020-01-20
- 1.0.2 — 2020-01-20
- 1.0.1 — 2020-01-07
- 1.0.0 — 2020-01-07

## README

# EnyaDeliver

EnyaDeliver provides an API and SDK for securely delivering contents to a phone.

# Getting Started

npm module for Enya.ai JavaScript SDK

```bash
npm install enyadeliver --save
```

# TypeScript

Install via NPM. `GetResult()` takes a data payload from the enya API and downloads and stores the result on the phone. The data remain encrypted until needed:

```js
import * as EnyaDeliver from 'enyadeliver';

EnyaDeliver.GetResult(result)
EnyaDeliver.DecryptResult()
```

Generally, DecryptResult() will be used like this 
```js
EnyaDeliver.DecryptResult().then(decrypted64 => {
  //do something with the cleartext base64 string, such as display it...
  this.setState({
    base64String: 'data:application/pdf;base64,' + decrypted64,
    cryptoState: 'display',
  });
})
```

## V1.0.0(DEC 25, 2019)

* v1.0.0 release

## V1.0.1(JAN 15, 2020)

* updated contact information

---
_Source: https://npm.io/package/enyadeliver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
