xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

run js code from node command line repl All In One

run js code from node command line repl All In One

$ node -e "console.log('app')"

# macOS
$ node -e "console.log('process.platform =', process.platform);"
process.platform = darwin

# Windows
$ node -e "console.log('process.platform =', process.platform);"
# process.platform = win32

https://stackoverflow.com/questions/30782693/run-function-in-script-from-command-line-node-js

https://nodejs.dev/learn/run-nodejs-scripts-from-the-command-line

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-10-14 13:56  xgqfrms  阅读(42)  评论(0编辑  收藏  举报