Socket
Socket
Sign inDemoInstall

require-reload

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    require-reload

Reload a require'd module/file. Useful for hot-reloading classes.


Version published
Weekly downloads
2.5K
decreased by-8.51%
Maintainers
1
Install size
4.41 kB
Created
Weekly downloads
 

Readme

Source

require-reload

require-reload facilitates hot-reloading files in node.js. Each call will re-fetch the file/module and require it.

var reload = require('require-reload'),
    api = reload('api.js');
//time passes and I change api
api = reload('api.js');

Keywords

FAQs

Last updated on 11 Feb 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc