https://github.com/adrielcodeco/pii-moduleloader
https://github.com/adrielcodeco/pii-moduleloader
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adrielcodeco/pii-moduleloader
- Owner: adrielcodeco
- License: mit
- Created: 2018-07-10T19:06:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T17:41:54.000Z (over 7 years ago)
- Last Synced: 2026-01-02T13:54:29.555Z (5 months ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Pii moduleLoader](https://github.com/adrielcodeco/pii-moduleloader)
Pii moduleLoader is a hack for require
[](http://standardjs.com)
[](https://travis-ci.org/adrielcodeco/pii-moduleLoader)
[](https://ci.appveyor.com/project/adrielcodeco/pii-moduleLoader/branch/master)
[](https://coveralls.io/github/adrielcodeco/pii-moduleLoader?branch=master)
[](https://npmjs.org/package/@pii/moduleLoader)
## Documentation
* [Quick Start](https://github.com/adrielcodeco/pii-moduleloader/quick-start.html)
* [Examples](https://github.com/adrielcodeco/pii-moduleloader/examples.html)
## Examples
Here is a simple example to get you started:
index.js
```js
import useAlias from '@pii/moduleLoader'
useAlias('@src', require.resolve(./src))
require('@src/test.js')
```
src/test.js
```js
console.log('file loaded')
```
### License
This project is [MIT licensed](./LICENSE).