n0de
v1.0.2
Published
Better pre-require modules for node
Downloads
8
Maintainers
Readme
n0de
A simple and easy way to run node with already required modules, usually used for manual testing.
How to installed ?
$ [sudo] npm install -g n0de
How does it work ?
$ n0de lo:lodash
> typeof lo
'function'
>
The module need to be installed otherwise you need to run the cmd with -i
option
$ n0de -i :lodash
You can load multiple modules
$ n0de lo:lodash req:request chalk:chalk
You can use module name as the variable name
$ n0de :lodash
> typeof lodash
'function'
>
You can run a file with already required modules
$ n0de :lodash file.js
PS : The underscore for lodash doesn't work, feel free to contribute if you can fix it.