@i3m/cloud-vault-client
Version:
A TypeScript/JavaScript implementation of a client for the i3M-Wallet Cloud-Vault server
51 lines (36 loc) • 2.22 kB
Markdown
[](LICENSE)
[](CODE_OF_CONDUCT.md)
[](https://standardjs.com)
[](https://github.com/i3-Market-V2-Public-Repository/SP3-SCGBSSW-I3mWalletMonorepo/actions/workflows/build-and-test.yml)
[](https://coveralls.io/github/i3-Market-V2-Public-Repository/SP3-SCGBSSW-I3mWalletMonorepo?branch=public)
# @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`:
```console
npm install @i3m/cloud-vault-client
```
Then either require (Node.js CJS):
```javascript
const cloudVaultClient = require('@i3m/cloud-vault-client')
```
or import (JavaScript ES module):
```javascript
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 module
>
> If 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:
>
> ```typescript
> declare module '@i3m/cloud-vault-client/dist/esm/index.node' // use the specific file you were importing
> ```
## Usage example
```typescript
YOUR TYPESCRIPT EXAMPLE CODE HERE
```
## API reference documentation
[Check the API](docs/API.md)