@wral/sdk-killswitch
v0.0.1
Published
A Software Development Kit for working with Studio Killswitch
Downloads
5
Keywords
Readme
Killswitch SDK
Usage
import templateClient from "@wral/sdk-killswitch/v1";
const client = killswitchClient({
apiKey: "YOUR_TOKEN",
baseUrl: "https://api.example.com/template",
});
const feature = await client.getFeatureStatus("my-feature");
Client API
api(path, fetchOptions)
- fetch wrapper for API requestsdisable(featureName)
- kill a featureenable(featureName)
- re-enable a killed a featurelistFeatures()
- list features and their statesgetFeatureStatus(featureName)
- get feature status