https://github.com/rodgeraraujo/uses-js
A simple JavaScript file and module loader by namespace.
https://github.com/rodgeraraujo/uses-js
import javascript js module node require
Last synced: about 1 month ago
JSON representation
A simple JavaScript file and module loader by namespace.
- Host: GitHub
- URL: https://github.com/rodgeraraujo/uses-js
- Owner: rodgeraraujo
- License: mit
- Created: 2020-07-26T21:18:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T02:40:18.000Z (over 5 years ago)
- Last Synced: 2025-03-07T11:38:28.493Z (over 1 year ago)
- Topics: import, javascript, js, module, node, require
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Uses
Import the modules by name, not by the file path, simple JavaScript file and module loader.
[](https://badge.fury.io/js/uses-js) [](https://opensource.org/licenses/MIT)
### Installation
npm:
```shell
$ npm i uses-js
```
yarn:
```shell
$ yarn add uses-js
```
#### Example usage
This is a simple example of usage the lib.
```js
require('uses-js'); //require in any JS file to get `use` reference
const LocalModule = use('project-name/module-name');
const NodeModule = use('module-name');
```
## Changelog
All notable changes to this project will be documented here.
#### [0.1.0] - 2020-07-26
Initial release.
#### [0.1.1] - 2020-07-26
Added, a contributing guide file;
Updated the README, added `contributing` section;
## Contributing
If you want to contribute to the project and make it better, feel free to fork and contribute after reading the [CONTRIBUTING.md](https://github.com/rodgeraraujo/uses-js/blob/master/CONTRIBUTING.md) file.
## License
Licensed under the [MIT](https://github.com/rodgeraraujo/usejs/blob/master/LICENSE) license.
## Author đź‘˝
Made with ❤ by [Rogério Araújo](https://github.com/rodgeraraujo)