0.2.0 • Published 3 years ago

noderq v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

noderq

A module providing short-hands for some commands

Usage

# In terminal
npx noderq <magic string> [node options]...
# Remove `npx` prefix when in `package.json`

The node used is the same one that executed this command.

Magic String Reference

A magic string contains a sequence of characters, each represents for a module to be require-d using -r.

CharacterModule
b@babel/register
ccoffeescript/register
eesm
p./.pnp
ssource-map-support/register
tts-node/register
Tts-node/register/transpile-only
vv8-compile-cache

All modules have to be installed separately.

Modules will be require-d in the order in which the corresponding character in the magic string appear, except for v8-compile-cache, who will always be the first one to be require-d.

Specially, the l character in the magic string will cause locally installed node to be used instead (using npx --no-install node).