A Software Development Kit for working with Studio Killswitch
npm install @wral/sdk-killswitch``javascript
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");
`
* 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
*