1.0.2 • Published 5 years ago

modulegala-js v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

modulegala-js

A simple way to alias a module in NodeJS.

Build Status

Install

npm: run the command npm install modulegala-js

yarn: run the command yarn add modulegala-js

Usage

Loads the module in the entrypoint file your application.

  1. Adds modulegala configuration in your package.json file, like below.
        "modulegala": {
            "@foo": "path-to-foo-source-folder",
            "@bar": "path-to-bar-source-folder"
        }
    }
  • To register the aliasing system, copy the following line and paste it in your application's root file. require('modulegala-js');

Contributor

  1. Manyanda Chitimbo manyanda.chitimbo@gmail.com