Proxies nodejs's require in order to make overriding dependencies during testing easy while staying totally unobtrusive. If you want to stub dependencies for your client side modules, try proxyquireify, a proxyquire for browserify v2 or proxyquire-universal to test in both Node and the browser.
require dependency injection di inject swap test mock stubI don't have enough time to maintain this plugin as I would want to, so I'm looking for people who want to help out and be contributors/repository admins. Contact me! See package.json for contact information.
gulpplugin inject stylesheets webcomponents scripts indexWire Bower dependencies to your source code. Installing a Bower package with --save will add the package as a dependency in your project's bower.json file. This library reads that file, then reads the bower.json files for each of those dependencies. Based on these connections, it determines the order your scripts must be included before injecting them between placeholders in your source code.
bower package management inject script dependenciesStripe's Checkout makes it almost too easy to take people's money. This should make it even easier if you're building a react application. Requires babel for compiling. If anyone is having issues with that, open an issue and I'll do my best to better document the build process.
stripe-checkout react stripe checkout inject loaded easyThis is particularly useful for writing tests where mocking things inside your module-under-test is sometimes necessary before execution. inject-loader was inspired by, and builds upon ideas introduced in jauco/webpack-injectable.
webpack-loader loader webpack testing inject mock mockingmock-require is useful if you want to mock require statements in Node.js. I wrote it because I wanted something with a straight-forward API that would let me mock anything, from a single exported function to a standard library. The module you that you want to mock. This is the same string you would pass in if you wanted to require the module.
require dependency injection di inject swap test mock stubThis module reloads all style sheets associated with a specified url. This is primarily useful for LiveReload servers that wish to update style sheets without triggering a full page refresh.If you omit the url argument, all style sheets will be cache busted.
reload livereload live css inject css-reload css-inject lr budo development dev serverInject style tag to document head.Insert style tag to specific position of head element.
style css injectremark plugin to inject a given list of contributors into a table in a markdown file.By default this package searches for the contributors field in your project's package.json.
remark generation inject automatic contributors list table text markdownInsert some CSS into the page.opts.container - Which HTMLElement to use as the base mounting point, defaults to document.querySelector('head').
css insert dom browser browserify inject styles stylesheet style html head linkMainline your node JavaScript for universal consumption. Infuse bundles up your node JavaScript files by following the require("moduleName") statements in your source file(s), and then bundles it all up, and uglifies (minimizes) it into one JavaScript file.
js minimizer min obfuscate parser generator pre-processor processor ast inject code fuse infuse package packager combine combinerInjects a fake HTTP request/response into a node HTTP server for simulating server logic, writing tests, or debugging. Does not use a socket connection so can be run against an inactive server (server not in listen mode). Note how server.listen is never called.
http injection inject fake request serverRewiremock is a your favorite library. The better version of it. For mocha, ava, karma, and anything not-jest. By its nature rewiremock has same behavior as Mockery. But it can behave like others too. It covers any case. It is the right way to mock your dependencies or perform dependency injection.
mock proxyquire webpack dependency-injection nodejs mockery magic mock-library es6 require dependency injection mock-dependency di inject swap testGrunt task to inject scripts during development. Great for use with LiveReload via grunt-contrib-watch, web inspector remote via grunt-weinre, and Dev Tools snippets. Check out the sample script below. The path of the script(s) to be injected into the page.
gruntplugin snippet injectInject the LiveReload script snippet into a HTML response. This detects .htm and .html and ensures they have text/html accept headers, if not yet set.
inject live reload tiny-lr lr tiny tinyreload htmlAdd an event listener without causing any side effects. Adding an event listener to an emitter object will normally trigger certain side effects. E.g. the newListener event will be emitted for every new listener added. A MaxListenersExceededWarning process warning will be emitted if the emitter reaches is maximum listener count. Or a readable stream will enter flowing mode if a data listener is added.
eavesdrop eventemitter listen listener event events spy side-effect inject
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.