Skip to content

maurosala/run-args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run external file with args

Usage

const run = require('@maurosala/run-args')

run(filePath, args)
  • filePath: path to the file to run
  • args: object with key-value to pass to the file

Example (check the example folder)

const run = require('@maurosala/run-args')

run(join(__dirname, 'brand-service.js'), { PORT: BRAND_SERVICE_PORT })

Note

ARGS: Must be an object key-value

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published