Nodejs Runner avatar
Nodejs Runner

Pricing

Pay per usage

Go to Store
Nodejs Runner

Nodejs Runner

Developed by

Martin Forejt

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

4

Total users

35

Monthly users

14

Runs succeeded

>99%

Last modified

6 hours 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.

$echo '{
< "code": "console.log('\''Hello world!'\'');"
<}' |
<apify 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

$npm i -g apify-cli
$apify login

Other API clients include: