Skip to content
/ run-func Public

Run exported function from package.json scripts

Notifications You must be signed in to change notification settings

DVLP/run-func

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-func

Run exported JavaScript functions directly from command line

Installation globally

npm i -g run-func

Usage from CLI

run-func script.js functionName param1 param2

Installation locally

npm i -S run-func

Usage in package.json

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

With other node modules

"scripts": {
  "test": "run-func some-module myFunc \"string as parameter\""
},
"dependencies": {
  "some-module": "1.0.0"
}

4GB node flag

run-func-mem instead of run-func

About

Run exported function from package.json scripts

Resources

Stars

Watchers

Forks

Packages

No packages published