Import the modules by name, not by the file path, simple JavaScript file and module loader.
npm:
$ npm i uses-js
yarn:
$ yarn add uses-js
This is a simple example of usage the lib.
require('uses-js'); //require in any JS file to get `use` reference
const LocalModule = use('project-name/module-name');
const NodeModule = use('module-name');
All notable changes to this project will be documented here.
Initial release.
Added, a contributing guide file;
Updated the README, added `contributing` section;
If you want to contribute to the project and make it better, feel free to fork and contribute after reading the CONTRIBUTING.md file.
Licensed under the MIT license.
Made with ❤ by Rogério Araújo