Coder Social home page Coder Social logo

mastervitronic / fresh-require Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the4thamigo-uk/fresh-require

0.0 2.0 0.0 6 KB

Bypass the require cache when requiring a module – works with both node and browserify

License: Other

JavaScript 100.00%

fresh-require's Introduction

fresh-require

Bypass the require cache when requiring a module – works with both node and browserify.

Usage

NPM

fresh(module, require)

Where module is the name of the module you're requiring, as you would normally pass to require. require should be your file's local require function.

To use this package properly with browserify, you need to include fresh-require/transform as a transform:

browserify -t fresh-require/transform ./index.js

Then you should be able to use the package as normal:

var fresh = require('fresh-require')

var async1 = require('async')
var async2 = fresh('async', require)

License

MIT. See LICENSE.md for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.