config-get-fresh

1.0.3 • Public • Published

Config Get Fresh

The problem

The config package doesn't reload values from disk when you call config.get.
This is a problem when you are working with Helm/K8s that updates a Configmap on a helm upgrade.

The solution

This is very small package but very usefull because it clears the config module cache before requiring it.
So, on each call it will read from the disk again.
Solving the problem of helm upgrade.

Usage

const configGetFresh = require(`config-get-fresh`);
const timeout = getGetFresh(`timeout`);

Readme

Keywords

none

Package Sidebar

Install

npm i config-get-fresh

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

1.34 kB

Total Files

3

Last publish

Collaborators

  • fernandobhz