Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
securitybites committed Apr 18, 2019
0 parents commit 2c44531
Show file tree
Hide file tree
Showing 8 changed files with 595 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"extends": [
"standard",
"plugin:promise/recommended",
"plugin:node/recommended",
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double"],
"comma-dangle": ["error", "always-multiline"],
},
"env": {
"jest": true,
},
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
coverage/
.DS_Store
.idea/
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
![](img/hackerone_node.png)

# Hackerone - Node Client
> A Hackerone client written in Node.js to make life easier when interacting with the Hackerone API.
## How to Use:

Create the client object using your Hackerone API key and key name:
```
const Hackerone = new HackeroneClient(process.env.HACKERONE_API_KEY,
process.env.HACKERONE_API_KEY_NAME);
```

Get a specific report:

```
const reportDetails = await Hackerone.readReport("519221");
```

Query for all reports in the program:

```
const reports = await Hackerone.queryReports('lifeomic');
```


Query for reports using filters:

```
//Available filters to choose from: https://api.hackerone.com/docs/v1#/reports/query
const additionalFilters = {
"filter[reporter][]": "randomdeduction",
"filter[swag_awarded_at_null][]": "true"
};
const reports = await Hackerone.queryReports('lifeomic',
additionalFilters);
```



## Contributing

1. Clone this repo
2. Hack away
3. Create a new pull request

#### Author

Jesse Kinser

- H1: randomdeduction
- Twitter: @securitybites
Binary file added img/hackerone_node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2c44531

Please sign in to comment.