Run JavaScript code
You can run server-side JavaScript code right from Fleet provided that you have installed and configured Node.js on your computer as described in Configure a Node.js interpreter.
Create a package.json file with a
start
script in thescripts
field:"scripts": { "start": "node <file to run> }Click the Run icon in the gutter next to the
start
script and select Run 'start'.Alternatively, press ⌘ R to open the Run&Debug popup and select start from the list.
Last modified: 26 May 2024