blue-alias
v1.0.0
Published
node alias manage
Downloads
2
Readme
blue-alias
node module alias manage
methods
setAlias(alias:{name:path}):void
set alias in this instance,path is resolve path
getAlias(name):string
get name path
in node env,you try set BlueAlias instance in global
const path = require('path');
const alias = new BlueAlias();
alias.setAlias({
name: path.resolve(__dirname, `../someModule`)
});
//set alias in global
global['alias'] = alias;