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, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/15406413.html
未经授权禁止转载,违者必究!