pathmodify - In a nutshell, rewrite (AKA alias, map) `require()` IDs / paths / directories to different values in browserify

  •        10

This is a browserify plugin that's meant to do the same kind of thing as aliasify and remapify, but in a more elegant, powerful way. This hasn't been tested extensively yet, so consider it experimental. But some of the other alternatives already in common use don't really even work, so.... Avoid having to use cumbersome relative paths (../../../../../../..) in your browserified application, and still be able to apply transforms programatically: browserify().transform(something).

https://github.com/jmm/pathmodify

Dependencies:

readable-stream : 1.x

Tags
Implementation
License
Platform

   




Related Projects

babel-plugin-module-resolver - Custom module resolver plugin for Babel

  •    Javascript

A Babel plugin to add a new resolver for your modules when compiling your code using Babel. This plugin allows you to add new "root" directories that contain your modules. It also allows you to setup a custom alias for directories, specific files, or even other npm modules. This plugin can simplify the require/import paths in your project. For example, instead of using complex relative paths like ../../../../utils/my-utils, you can write utils/my-utils. It will allow you to work faster since you won't need to calculate how many levels of directory you have to go up before accessing the file.

debowerify - A browserify transform to enable the easy use of bower components in browserify client javascript projects

  •    Javascript

A browserify transform to enable the easy use of bower components in browserify client javascript projects. This can be used in conjunction with deamdify to require AMD components from bower as well.

css-modulesify - A browserify plugin to load CSS Modules

  •    Javascript

A browserify plugin to load CSS Modules. Please note that this is still highly experimental.

karma-browserify - A fast Browserify integration for Karma that handles large projects with ease

  •    Javascript

karma-browserify is a fast Browserify integration for Karma that handles large projects with ease. Get the plug-in via npm.

livereactload - Live code editing with Browserify and React

  •    Javascript

Live code editing with Browserify and React. Hot reloading is de facto in today's front-end scene but unfortunately there isn't any decent implementation for Browserify yet. This is shame because (in my opinion) Browserify is the best bundling tool at the moment.


react-rocket-boilerplate - A boilerplate written in ES6 using ReactJS (along with React Router and RefluxJS), SASS, Gulp, and Browserify

  •    Javascript

A boilerplate using ReactJS (along with React Router and RefluxJS), SASS, Gulp, and Browserify that also utilizes Gulp best practices from this resource. Now that gulp dev is running, the server is up as well and serving files from the /build directory. Any changes in the /app directory will be automatically processed by Gulp and the changes will be injected to any open browsers pointed at the proxy address.

browserify-hmr - Hot Module Replacement plugin for Browserify

  •    Javascript

Open http://localhost:8080/ and try updating label.jsx and interval.js. Hot module replacement works by re-executing updated modules. The Hot Module Replacement API must be used to define which modules can accept updates, and what to do when a module is going to be updated.

tsify - Browserify plugin for compiling TypeScript

  •    Javascript

Note that when using the Browserify CLI, compilation will always halt on the first error encountered, unlike the regular TypeScript CLI. This behavior can be overridden in the API, as shown in the API example. Also note that the square brackets [ ] in the example above are required if you want to pass parameters to tsify; they don't denote an optional part of the command.

exorcist - Externalizes the source map found inside a stream to an external .js.map file

  •    Javascript

Externalizes the source map found inside a stream to an external .map file or stream. Works with both JavaScript and CSS input streams.

http-browserify - node's http module, but for the browser

  •    Javascript

The http module from node.js, but for browsers.When you require('http') in browserify, this module will be loaded.

grunt-browserify - Grunt task for node-browserify

  •    Javascript

Grunt task for node-browserify. This plugin requires Grunt ~0.4.0.

disc - :chart_with_upwards_trend: Visualise the module tree of browserify project bundles and track down bloat

  •    Javascript

Disc is a tool for analyzing the module tree of browserify project bundles. It's especially handy for catching large and/or duplicate modules which might be either bloating up your bundle or slowing down the build process.The demo included on disc's github page is the end result of running the tool on browserify's own code base.

browserify-shim - 📩 Makes CommonJS incompatible files browserifyable.

  •    Javascript

For a version compatible with browserify@1.x run npm install browserify-shim@1.x instead. For a version compatible with the v2 API npm install browserify-shim@2.x instead.

WebMonkeys - Massively parallel GPU programming on JavaScript, simple and clean.

  •    Javascript

Allows you to spawn thousands of parallel tasks on the GPU with the simplest, dumbest API possible. It works on the browser (with browserify) and on Node.js. It is ES5-compatible and doesn't require any WebGL extension. set/get allow you to send/receive data from the GPU, and work creates a number of parallel tasks (monkeys) that can read, process and rewrite that data. The language used is GLSL 1.0, extended array access (foo(index), usable anywhere on the source), setters (foo(index) := value, usable on the end only), and int i, a global variable with the index of the monkey.

buffer - The buffer module from node.js, for the browser.

  •    Javascript

With browserify, simply require('buffer') or use the Buffer global and you will get this module.The goal is to provide an API that is 100% identical to node's Buffer API. Read the official docs for the full list of properties, instance methods, and class methods that are supported.

xhr - A small xhr wrapper

  •    Javascript

A small XMLHttpRequest wrapper. Designed for use with browserify, webpack etc. API is a subset of request so you can write code that works in both node.js and the browser by using require('request') in your code and telling your browser bundler to load xhr instead of request.

collections - This package contains JavaScript implementations of common data structures with idiomatic interfaces

  •    Javascript

This package contains JavaScript implementations of common data structures with idiomatic iterfaces, including extensions for Array and Object. You can use these Node Packaged Modules with Node.js, Browserify, Mr, or any compatible CommonJS module loader. Using a module loader or bundler when using Collections in web browsers has the advantage of only incorporating the modules you need. However, you can just embed <script src="collections/collections.min.js"> and all of the collections will be introduced as globals. ⚠️ require("collections") is not supported.

sheetify - :sparkles: Modular CSS bundler for browserify

  •    Javascript

Modular CSS bundler for browserify. Works with npm modules like browserify does. Sheetify is very good for namespacing static css assets in your javaScript code. Currently there is no support for dynamic variables within sheetify, however you could achieve this by setting the inline style property of an element.

angularjs-gulp-browserify-boilerplate - Boilerplate using AngularJS, SASS, Gulp, and Browserify and utilizing best practices

  •    Javascript

❗️ Warning: This boilerplate is no longer maintained and I would not recommend starting a new project with it. A boilerplate using AngularJS, SASS, Gulp, and Browserify that also utilizes these best AngularJS practices and Gulp best practices from this resource.

multilevel - Expose a LevelDB over the network

  •    Javascript

Expose a levelDB over the network, to be used by multiple processes, with levelUp's API.multilevel works in the browser too - via browserify - and has full support for binary data. For getting a connection between browser and server I recommend either websocket-stream, which treats binary data well, or engine.io-stream, which has websocket fallbacks.