Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs spawn set env variable

spawn( 'node', ['app.js'], { env: { ...process.env, NODE_ENV: 'test' } }})
 
PREVIOUS NEXT
Tagged: #nodejs #spawn #set #env #variable
ADD COMMENT
Topic
Name
6+2 =