Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decache

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decache

decache (Delete Cache) lets you delete modules from node.js require() cache; useful when testing your modules/projects.

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
increased by1.26%
Maintainers
1
Weekly downloads
 
Created

What is decache?

The decache npm package is designed to delete modules from the cache in Node.js. This is particularly useful during development when you want to ensure that the latest version of a module is reloaded without having to restart the Node.js process.

What are decache's main functionalities?

Module cache deletion

This feature allows you to remove a specific module from the Node.js require cache. After decaching, the next time you require the module, Node.js will reload it from the filesystem, ensuring you have the latest version without restarting your application.

const decache = require('decache');

decache('./myModule');

let myModule = require('./myModule'); // This will reload the module from file

Other packages similar to decache

Keywords

FAQs

Package last updated on 13 Jul 2015

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