Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pdehaan/heartbleed

#Nodejs wrapper for heartbleed API using request/promise.
https://github.com/pdehaan/heartbleed

Last synced: 15 days ago
JSON representation

#Nodejs wrapper for heartbleed API using request/promise.

Awesome Lists containing this project

README

        

# heartbleed

Node.js wrapper for heartbleed API using request/promises.

## Usage:

### 1. Install:

```bash
$ npm i heartbleed -S
```

### 2. Use:

```javascript
var heartbleed = require("heartbleed");

heartbleed("github.com").then(function (data) {
console.log(JSON.stringify(data, null, 2));
}, function (err) {
console.error(err);
});
```

### 3. Output:
```bash
$ node index
```

```json
{
"code": 1,
"data": "",
"error": "",
"host": "github.com",
"status": "safe"
}
```