All Projects → azu → Inlining Node Require

azu / Inlining Node Require

Licence: mit
This module inlining Node's require(), similar to browserify but more simple.

Programming Languages

javascript
184084 projects - #8 most used programming language

inlining-node-require Build Status

This module inlining Node's require().

It's similar to browserify, but more simple and more local domain, position closer to concat.

Installation

npm install inlining-node-require

Task

Usage

$ inlining-node-require -h
$ inlining-node-require index.js

Example

See example/

add.js

function add(x, y) {
    return x + y;
}
module.exports = add;

index.js

var add = require("./add");
add(1, 2);

Inlining above module.(entry point is index.js)

$ inlining-node-require index.js

result.js

function add(x, y) {
    return x + y;
}
add(1, 2);

Contributing

  1. Fork it!
  2. traCreate your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].