ideone for node.js
How to use
npm install --save ideone-node
Usage
const Ideone = ;const ins = 'token''custom id';const source = 'print("hello world");'input='';ins;// 112 means javascript, other language support id can be seen in the ideone site.insins // Get suppor language array
method
- setMode(id) set the language where you need
- run(source,input) set the source code which you run and the input data,return a Promise
- support get the support languages, return a Promise
node
node > 8 because the package use async/await syntax
Update
v0.0.3 add Tese,License and fix a bug
run test
Set your token and customId in the root's config.js.For example:
//config.jsconst config = custimId:'xxx' accessToken:'xxxxxx' moduleexports = config;
then,
npm run test
LICENSE
MIT