0.1.2 • Published 3 years ago

exec-func v0.1.2

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

exec-func

Exec exported JavaScript functions directly from command line.

Comes from run-func, modified to support es module type, eg, modules with "type": "module" in package.json config.

Installation globally

npm i -g exec-func

Usage from CLI

exec-func script.js functionName param1 param2

Usage in package.json

"scripts": { "myFunc": "exec-func script.js myFunc param1 param2" }

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago