JSPM

require-reload

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6435
  • Score
    100M100P100Q131333F
  • License MIT

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

Package Exports

  • require-reload

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (require-reload) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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