Run Jsc
Run JScript code and retrieve the result.
Install
npm install run-jsc
Usage
const runJsc = ; async { const result = await ; console; //=> 'I love 🦄 & 🐴'}
API
runJsc(input, args?, options?)
input
Type: function | string
The input function.
args
Type: array
Default: []
The arguments to pass to the function.
options
Type: object
cwd
Type: string
Default: process.cwd()
Current working directory of the child process.
Similar
- run-jxa - Run Jxa code.