New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ideone-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ideone-node

Encapsulation of ideone for node.js

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

ideone for node.js

NPM version build status node version npm download npm license

How to use

npm install --save ideone-node

Usage

const Ideone = require('ideone-node');
const ins = new Ideone('token','custom id');
const source = 'print("hello world");',input='';
ins.setMode(112);// 112 means javascript, other language support id can be seen in the ideone site.
ins.run(source,input).then(data => console.log(data.output))
ins.support().then(support => console.log(support)) // 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.js
const config = {
    custimId:'xxx',
    accessToken:'xxxxxx'   
}

module.exports = config;

then,

npm run test

LICENSE

MIT

Keywords

ideone

FAQs

Package last updated on 01 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts