Nodejs Runner
No credit card required
Nodejs Runner
No credit card required
This Actor allows you to quickly run arbitrary JavaScript code in a real Node.js environment, making it ideal for testing, debugging, or executing small scripts without setting up a local Node.js instance. The actor spawns a separate Node.js process to run the provided code and captures the logs.
You can access the Nodejs Runner programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1echo '{
2 "code": "console.log('\''Hello world!'\'');"
3}' |
4apify call martin.forejt/nodejs-runner --silent --output-dataset
Nodejs Runner API through CLI
The Apify CLI is the official tool that allows you to use Nodejs Runner locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
1npm i -g apify-cli
2apify login
Other API clients include:
Actor Metrics
4 monthly users
-
2 stars
>99% runs succeeded
Created in Dec 2024
Modified a minute ago