require-root-symlink

0.0.5 • Public • Published

require-root-symlink

Making components first-class for node.js with symlinks

INSTALL

npm install require-root-symlink

USAGE

  • In index.js on top add next code: require('require-root-symlink')(__dirname);

  • When you will run your nodejs application require-root-symlink module will check and create symlink: node_modules/_ to .

  • Now you can use _ in require string:

    var Config = require('/Config.js'); var App = require('/engine/App.js'); ..............................

CHANGELOG

October 30, 2016 (version: 0.0.4)

  • Refactoring
  • Remove todos, console.log, etc.

September 29, 2016

  • first release

/require-root-symlink/

    Package Sidebar

    Install

    npm i require-root-symlink

    Weekly Downloads

    3

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • alexander.mykhailenko