experiment in leveraging template strings to enable multiple requires
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

travis-build-status npm-dependencies standard-js npm-node-version npm-version license

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`