dyimp

0.0.2 • Public • Published

dyimp.js

ey ey ey! this is just another simple lib that might be help your life easier & more fun!

So, I dont like importing file like this

const moduleA = require('../../modules/moduleA');
// or
const moduleB = require('../../../../utils/modules/moduleB');

how if we could always importing file start from root dir huh?

const dyimp = require('dyimp');
const moduleA = dyimp('modules/moduleA');
const moduleB = dyimp('utils/modules/moduleB');

ok, just it!

Readme

Keywords

none

Package Sidebar

Install

npm i dyimp

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

847 B

Total Files

3

Last publish

Collaborators

  • adeyahya