You are viewing a single comment's thread from:
RE: dead.pool의 2018-08-29 이것저것 스크랩
Can I use alias with NodeJS require function?
I have an ES6 module that exports two constants:
export const foo = "foo";
export const bar = "bar";
I can do the following in another module:import { foo as f, bar as b } from 'module';
consol...from : stackoverflow.com