-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2c44531
Showing
8 changed files
with
595 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
coverage/ | ||
.DS_Store | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.