paint-brush
Executing any Node.js module or .js file via CLI without creating any command-line interface at allby@DiegoZoracKy
7,462 reads
7,462 reads

Executing any Node.js module or .js file via CLI without creating any command-line interface at all

by Diego ZoracKy1mJanuary 5th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recently I published <a href="https://github.com/DiegoZoracKy/magicli" target="_blank">MagiCLI</a>, which is a module built to create automagically a <a href="https://hackernoon.com/tagged/cli" target="_blank">CLI</a> for any given module. It's just needed to include it as a dependency, require the module, and then a CLI is ready. However, even though this tool is there, to be used, if a developer (end user) wants to execute some existing module published on npm via CLI, there was still a dependency. The maintainer of a module have to include <a href="https://hackernoon.com/tagged/magicli" target="_blank">MagiCLI</a> in order to provide the command-line interface. Well, not anymore 😉.
featured image - Executing any Node.js module or .js file via CLI without creating any command-line interface at all
Diego ZoracKy HackerNoon profile picture
Diego ZoracKy

Diego ZoracKy

@DiegoZoracKy

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite