Socket
Book a DemoInstallSign in
Socket

config-get-fresh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config-get-fresh

## The problem

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 17 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.