require-as-template-string
is an experiment in leveraging some features of the JavaScript language to make require
a lil' bit less of a burden.
usage
set the "module to preload" via the --require
option.
(see node --help
for more info.)
node --require require-as-template-string index.js
index.js
const url = r`url`
const [url,net] = r`url,net`
rr
as alternative api for requiring multiple modules
rr`url,net` === r`url,net`