0.0.2 • Published 6 years ago

dyimp v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

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!