Nodejs Runner avatar
Nodejs Runner

Pricing

Pay per usage

Go to Store
Nodejs Runner

Nodejs Runner

Developed by

Martin Forejt

Maintained by Community

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.

5.0 (1)

Pricing

Pay per usage

2

Monthly users

4

Runs succeeded

>99%

Last modified

an hour ago

You can access the Nodejs Runner programmatically from your own applications by using the Apify API. You can also 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:

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.