@remosi/rcm-client

1.0.4 • Public • Published

rcm-client

Fast, unopinionated, minimalist config manager for node.

const RCM = require("rcm-client");

const config = new RCM({
  token: "xxx",
  decode: true, // Decode supported format (JSON/YAML)
});

config
  .load("config name")
  .then((config) => console.log(config))
  .catch((error) => console.log(error));

Service Provider

The service provided by Remosi Technology OU, before use first you should register for Remosi Cloud Services. For more information visit Remosi website

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 10 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

$ npm i @remosi/rcm-client

Config watch

With config watch you will be able to keep track config changes

config.on("update", (info) => {
  console.log(`config ${info.configName} updated and ${info.action} required!`);
  console.log("Latest config:" + info.content);
});

// Start watching
config.watch("config name");

Readme

Keywords

Package Sidebar

Install

npm i @remosi/rcm-client

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

7.49 kB

Total Files

4

Last publish

Collaborators

  • mostafavi