https://github.com/clazex/noderq
A module providing short-hands for some commands
https://github.com/clazex/noderq
cli node node-module npm npm-package
Last synced: about 1 month ago
JSON representation
A module providing short-hands for some commands
- Host: GitHub
- URL: https://github.com/clazex/noderq
- Owner: Clazex
- License: mit
- Created: 2021-05-11T11:25:00.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-07T16:43:32.000Z (about 5 years ago)
- Last Synced: 2025-02-05T21:56:12.640Z (over 1 year ago)
- Topics: cli, node, node-module, npm, npm-package
- Language: JavaScript
- Homepage: https://npmjs.com/package/noderq
- Size: 598 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# noderq
*A module providing short-hands for some commands*
## Usage
```bash
# In terminal
npx noderq [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`.
| Character | Module |
| :-------: | :-----------------------------: |
| b | @babel/register |
| c | coffeescript/register |
| e | esm |
| p | ./.pnp |
| s | source-map-support/register |
| t | ts-node/register |
| T | ts-node/register/transpile-only |
| v | v8-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`).