@i3m/cloud-vault-client
v2.6.2
Published
A TypeScript/JavaScript implementation of a client for the i3M-Wallet Cloud-Vault server
Downloads
22
Readme
@i3m/cloud-vault-client
A TypeScript/JavaScript implementation of a client for the i3M-Wallet Cloud-Vault server
Install and use
@i3m/cloud-vault-client
can be imported to your project with npm
:
npm install @i3m/cloud-vault-client
Then either require (Node.js CJS):
const cloudVaultClient = require('@i3m/cloud-vault-client')
or import (JavaScript ES module):
import * as cloudVaultClient from '@i3m/cloud-vault-client'
The appropriate version for node should be automatically chosen when requiring/importing. However, if your bundler does not import the appropriate module version (node esm, node cjs), you can force it to use a specific one by just importing one of the followings:
@i3m/cloud-vault-client/dist/cjs/index.node
: for Node.js CJS module@i3m/cloud-vault-client/dist/esm/index.node
: for Node.js ESM moduleIf you are coding TypeScript, types will not be automatically detected when using the specific versions. You can easily get the types in by creating adding to a types declaration file (
.d.ts
) the following line:declare module '@i3m/cloud-vault-client/dist/esm/index.node' // use the specific file you were importing
Usage example
YOUR TYPESCRIPT EXAMPLE CODE HERE