0.10.0 • Published 5 months ago

@openziti/ziti-sdk-browser v0.10.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Build Issues npm version License npm.io PRs Welcome Contributor Covenant


ziti-sdk-browser as a CommonJS module or ES module

This package allows ziti-sdk-browser to be imported as a CommonJS module or ES module.

Installation

Use npm to install the ziti-sdk-browser module:

npm install @openziti/ziti-sdk-browser

Or, use yarn to install the ziti-sdk-browser module:

yarn add @openziti/ziti-sdk-browser

Usage

createZitiBrowserClient

This function returns a Promise that resolves with a newly created ZitiBrowserClient object once ziti-sdk-browser has loaded. If you call createZitiBrowserClient in a server environment (e.g. NodeJS) it will resolve to null.

import { createZitiBrowserClient } from '@openziti/ziti-sdk-browser';

zitiBrowserClient = await createZitiBrowserClient({
  logLevel: 'trace', // select your console logLevel (default is 'warn')
  logPrefix: 'MyApp', // specify whatever prefix you want
  authorizationParams: {
    controllerHost: 'YOUR_ZITI_CONTROLLER_HOSTNAME',
    controllerPort: 443, // (default is 443)
  },
});

TypeScript support

This package includes TypeScript declarations. We support projects using TypeScript versions >= 4.8.0

Documentation

0.10.0

5 months ago

0.9.2

5 months ago

0.9.0

5 months ago

0.8.0

5 months ago

0.7.0

5 months ago

0.6.0

5 months ago

0.5.0

5 months ago

0.4.0

5 months ago

0.3.0

5 months ago

0.2.0

5 months ago