forked from reacherhq/check-if-email-exists
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reacherhq#289): add haveibeenpwned check
- Loading branch information
1 parent
a4fe57e
commit 61cf447
Showing
14 changed files
with
1,148 additions
and
11 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,20 @@ | ||
# Api-fetcher | ||
|
||
This is a simple tool to fetch an url given. It will return the response body in the stdout. | ||
|
||
It bypasses Cloudflare anti-bot protection. | ||
|
||
## Usage in development | ||
|
||
```bash | ||
npm install | ||
npm run start <url> | ||
``` | ||
|
||
## Usage in production | ||
|
||
Use `node` command to not have to install `npm`. | ||
|
||
```bash | ||
node main.js <url> | ||
``` |
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,11 @@ | ||
const { gotScraping } = require('got-scraping'); | ||
|
||
const url = process.argv[2]; | ||
if (!url) { | ||
console.error('Please provide an email'); | ||
process.exit(1); | ||
} | ||
|
||
gotScraping | ||
.get(url) | ||
.then( ({ body }) => console.log(body)) |
Oops, something went wrong.