remoteconfigs-client
v0.0.7
Published
Get your RemoteConfig Configurations and Settings from your front-end javascript with this easy to use npm package
Downloads
4
Readme
Installation
$ npm i remoteconfigs-client
Usage
const rcRepo = require('remoteconfigs-client');
or
import { RemoteConfigsRepository } from 'remoteconfigs-client';
Example
import { RemoteConfigsRepository } from 'remoteconfigs-client';
fetchRemoteConfigs = async () => {
const rcRepo = new RemoteConfigsRepository('API_TOKEN');
const configs = await rcRepo.GetAllConfigurations();
console.log(configs);
}
or if you dont like async/await
import { RemoteConfigsRepository } from 'remoteconfigs-client';
fetchRemoteConfigs = () => {
const rcRepo = new RemoteConfigsRepository('API_TOKEN');
rcRepo.GetAllConfigurations().then((configs) => {
console.log(configs);
});
}