1.0.9 • Published 3 years ago

@orquestadev/browser v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years 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

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago