Ecosystem bridges · BUILT-IN MODULE
node
Node.js, npm, and npx bridge.
Quick start
use node
say try node.version
output = try node.eval "console.log(21 * 2)"
say outputAPI reference
node.versionReturn Node.js version. Fallible.
回傳 Node.js version. 此操作可能失敗。
node.run fileRun a Node.js file. Fallible.
執行 a Node.js file. 此操作可能失敗。
node.output fileRun Node.js and capture output. Fallible.
執行 Node.js and capture output. 此操作可能失敗。
node.eval codeEvaluate JavaScript with Node.js. Fallible.
執行並取得結果 JavaScript with Node.js. 此操作可能失敗。
node.npm argsRun npm arguments. Fallible.
執行 npm arguments. 此操作可能失敗。
node.npx argsRun npx arguments. Fallible.
執行 npx arguments. 此操作可能失敗。