client 3.0.0-3ac95238
Install from the command line:
Learn more about npm packages
$ npm install @arkavo-org/client@3.0.0-3ac95238
Install via package.json:
"@arkavo-org/client": "3.0.0-3ac95238"
About this version
This project packages a set of javascript modules that can write and read a variety of OpenTDF data formats, including NanoTDF, Dataset TDF, and the TDF3 with JSON envelopes.
npm login --auth-type=legacy --registry=https://npm.pkg.github.com --scope=@arkavo-org
import { AuthProvider, NanoTDFClient, AuthProviders } from "@arkavo-org/client";
const authProvider: AuthProvider = new AuthProviders.OIDCExternalJwtProvider({clientId: "", externalJwt: "", oidcOrigin: ""})
const client = new NanoTDFClient(this.authProvider, "https://arkavo.net");
const plainText = "hello world"
const cipherText = await client.encrypt(plainText);
const clearText = await client.decrypt(cipherText);
Vite
npm install -g create-vite
create-vite test-app --template react-ts
cd test-app
npm link @arkavo-org/client
cp ../tests/integration-vite-react-ts-App.tsx src/App.tsx
npm run dev
Create React App
npx create-react-app test-app --template typescript
cd test-app
npm link @arkavo-org/client
cp ../tests/integration-cra-ts-App.tsx src/App.tsx
npm run start
Details
- client
- arkavo-org
- over 1 year ago
- BSD-3-Clause-Clear
- 39 dependencies
Assets
- client-3.0.0-3ac95238.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0