JS Evaluation Workflow for Alfred 3
You can evaluate JavaScript right within your Alfred.
This workflow uses NodeJS for evaluating your JavaScript, so you need to pass path for your NodeJS interpreter.
- Add this workflow to your workflows
- Get path to your NodeJS executable and copy it to clipboard via running
which node | pbcopy
- Open Alfred Settings, navigate to Workflows tab, find Evaluate JavaScript workflow and press [x] button
- In the right column of opened window (Workflow Environment Variables) paste path to your NodeJS interpreter into variable named interpreter. Create it if it doesn't exists.
js javascript_code
MIT © Vitaliy Ribachenko