Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc