Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.74 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.74 KB

Take the pain out of managing all your app configurations that are scattered all over the Internet. With RemoteConfigs, you can manage all your app configurations from a central dashboard and reference them in your applications using our simple REST API.

RemoteConfigs, Inc. is a Red Ruby IT (Pty) Ltd. company.

npm version

Build status

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);
    });
}