wandboxjs
v2.0.2
Published
Basic wandbox api wrapper.
Downloads
9
Readme
wandboxjs
Wandbox API Wrapper for Node.js TS Rewrite
Installation
Just type npm i wandboxjs
and you are ready to go!
Usage
ES5 Syntax
const { compiler } = require("wandboxjs");
compiler("python", "print(1)").then((result) => console.log(result.result)); // -> 1
ES6 Syntax
import { compiler } from "wandboxjs";
const main = async () => {
result = await compiler("python", "print(1)");
console.log(result.result); // -> 1
};
main();