
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
hackerearth-node
Advanced tools
Node JS library for using HackerEarth API
This library helps you to compile your code with HackerEarth API v3
Using HackerEarth API you can compile and run your code using their codeTable
npm install hackerearth-node
var hackerEarth=require('hackerearth-node'); //require the Library
//Now set your application
var hackerEarth=new hackerEarth(
'**********', //Your Client Secret Key here this is mandatory
'' //mode sync=1 or async(optional)=0 or null async is by default and preferred for nodeJS
);
var config={};
config.time_limit=1; //your time limit in integer
config.memory_limit=323244; //your memory limit in integer
config.source=''; //your source code for which you want to use hackerEarth api
config.input=""; //input against which you have to test your source code
config.language="C/C++/Py/C#"; //optional choose any one of them or none
``` javascript
//compile your code
hackerEarth.compile(config,function(err,response){
if(err) {
//deal with error
} else {
//deal with response
}
});
```
Using Promises
//compile your code
hackerEarth.compile(config)
.then(result => {
//Handle Result
})
.catch(err => {
//Handle Error
});
``` javascript
//compile your code
hackerEarth.run(config,function(err,response){
if(err) {
//deal with error
} else {
//deal with response
}
});
```
Using Promises
//compile your code
hackerEarth.run(config)
.then(result => {
//Handle Result
})
.catch(err => {
//Handle Error
});
FAQs
nodeJS library for using HackerEarth API
We found that hackerearth-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.