@wral/sdk-killswitch
v0.2.0
Published
A Software Development Kit for working with Studio Killswitch
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 killed features and their stateslistAllFeatures()- list all features documented and their statesgetFeatureStatus(featureName)- get feature status
