JavaScript SDK
JavaScript SDK
@fujiflag/js is the framework-agnostic FujiFlag SDK. It supports browsers and
Node.js, has no external dependencies, and can cache and poll flag values.
Install
Create a client
baseURL is optional. Use it when connecting to a self-hosted or local FujiFlag
API. cacheTTL and refreshInterval are optional and expressed in milliseconds.
Read one value
Read all values
Browser script tag
For the complete package surface, see the SDK README.