npm.io
1.14.1 • Published 2 years ago

@trinsic/trinsic

Licence
ISC
Version
1.14.1
Deps
9
Size
4.0 MB
Vulns
12
Weekly
0
DeprecatedThis package is deprecated

Trinsic SDK for Browsers and Node

Installation

npm install @trinsic/trinsic
import { TrinsicService } from "@trinsic/trinsic";

If you have need to override the transport method (for instance, old versions of Node), you can do it in the following manner:

import { TransportProvider } from "@trinsic/trinsic";
TransportProvider.overrideTransport = XHRTransport(); // or other `nice-grpc-web` transports
// Proceed to make your SDK calls here

Documentation

See documentation here

Maintainers

Dev Environment Setup

Install the following requirements:

npm run build:proto

After this, you can run npm ci and npm run build.

The build script will generate the proto files by running the Generate-Proto.ps1 script. You can also run this script manually.