require-as-template-string
v0.0.3
Published
[![travis-build-status](https://travis-ci.org/christian-fei/require-as-template-string.svg?branch=master)](https://travis-ci.org/christian-fei/require-as-template-string) [![npm-dependencies](https://img.shields.io/badge/dependencies-none-blue.svg?style=f
Downloads
9
Readme
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`