@osohq/node
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

Base Oso SDK

The Base Oso SDK provides helpers for interacting with Oso Cloud. If you are using a web framework, we recommend using the integration specific to that web framework.

Please Note: The SDK is currently released as a developer preview. Do not use this SDK for production workloads.

Install

npm install --save @osohq/node
yarn add @osohq/node

Usage

The Oso SDK should be initialized as early as possible in the main entry module.

import { init } from '@osohq/node';

init({
    apiKey: 'YOUR_API_KEY',
    // ...
})

After the Oso SDK is initialized, you may access it by calling globalOso():

import { globalOso } from '@osohq/node';

oso = globalOso();

The Oso SDK may be further configured by setting relevant fields in the ConfigOptions object passed on init.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @osohq/node

    Weekly Downloads

    0

    Version

    0.3.2

    License

    Apache-2.0

    Unpacked Size

    22.4 kB

    Total Files

    28

    Last publish

    Collaborators

    • oso-mike
    • vrama628
    • oso-gabe
    • samjs