Skip to content

wrepl/jdoodle

Repository files navigation

JDoodle API

Unofficial API Wrapper for JDoodle REPL Website.

Check valid languageCode and versionIndex at JDoodle Docs

Installation

npm i jdoodle-api

Usage

const jdoodle = require("jdoodle-api");
// or
import jdoodle from "jdoodle-api";

// https://docs.jdoodle.com/compiler-api/compiler-api#what-languages-and-versions-supported
const language = {
	languageCode: "nodejs",
	versionIndex: 2
};

const script = "console.log('Hello World!')";

jdoodle(language, script).then((result) => {
	console.log(result.output); // Hello World!
});

Releases

No releases published

Packages

No packages published