1.0.9 • Published 1 year ago

@orquestadev/browser v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Orquesta Javascript SDK

Install

npm

npm install @orquestadev/browser

yarn

yarn add @orquestadev/browser

Usage

You can get your workspace API key from the settings section in your workspace.

In ES6/Typescript, import the OrquestaClient class:

import { OrquestaClient } from '@orquestadev/browser';

For CommonJS, require the package:

const { OrquestaClient } = require('@orquestadev/browser');

Query a rule

const client = new OrquestaClient({
  apiKey: 'my_workspace_api_key',
});

const result = await client.query('my_rule_key', 'my_default_value', {
  environments: 'production',
});

Query a domain of rules

const client = new OrquestaClient({
  apiKey: 'my_workspace_api_key',
});

const domainRules = await client.queryDomain('my_domain_key', {
  environments: 'production',
});
1.0.9

1 year ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago