@hmcts/feature-toggle-client
v1.0.0
Published
JavaScript client for feature togggle
Downloads
6
Maintainers
Keywords
Readme
@hmcts/feature-toggle-client
This is a client library for interacting with the Feature Toggle API Feature Toggle API.
API available with clients
- FeatureToggleService provides a thin wrapper around creating FeatureToggleClientFactory
- FeatureToggleClientFactory is responsible for creating FeatureToggleClient
- FeatureToggleClient is responsible for interfacing with the Feature Toggle API
To add library
$ yarn add @hmcts/feature-toggle-client
or
$ npm install @hmcts/feature-toggle-client
Getting Started
Prerequisites
Running the application
Install dependencies by executing the following command:
$ yarn install
Developing
Code style
We use TSLint with StandardJS rules
Running the linting:
yarn lint
Running the tests
Mocha is used for writing tests.
Run them with:
$ yarn test
For test coverage:
$ yarn test:coverage
License
This project is licensed under the MIT License - see the LICENSE file for details