1.0.4 • Published 3 years ago

@remosi/rcm-client v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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");
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago