# detect-bat-publishers

> Tool to detect Brave Browser publishers

Latest version **0.0.4** (published 2018-07-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install detect-bat-publishers
pnpm add detect-bat-publishers
yarn add detect-bat-publishers
bun add detect-bat-publishers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-07-10 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 21 |
| Maintainers | maxencec |
| Keywords | brave browser, detect, publishers, basic attention token |

## Links

- npm: https://www.npmjs.com/package/detect-bat-publishers
- Repository: https://github.com/BATgrowth/detect-bat-publishers
- Homepage: https://batgrowth.com
- Issues: https://github.com/BATgrowth/detect-bat-publishers/issues
- npm.io page: https://npm.io/package/detect-bat-publishers

## Dependencies (7)

- [tap](https://npm.io/package/tap.md) ^12.0.1
- [chai](https://npm.io/package/chai.md) ^4.1.2
- [mocha](https://npm.io/package/mocha.md) ^5.2.0
- [request](https://npm.io/package/request.md) ^2.87.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1
- [underscore](https://npm.io/package/underscore.md) ^1.9.1
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2018-07-10
- 0.0.3 — 2018-07-09
- 0.0.2 — 2018-07-09
- 0.0.1 — 2018-07-09
- 1.0.0 — 2018-07-09

## README

# detect-bat-publishers
A npm package used to detect Brave Browser / Basic Attention Token publishers using 3 different methods:
- Brave API call (the most reliable way)
- DNS lookup
- Fetching brave-payments-verification.txt

The package is used to build the list of Brave Bowser publishers on https://batgrowth.com/publishers

It was inspired by the following gist: https://gist.github.com/da2x/6e2ef4a30f476f8aec4aca7bbadbc772

You can Download, unzip and parse to JSON the Alexa Top 1 Million websites .csv in order to have a decent data sample to try this package on:
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip

## Installation

This module is installed via npm:

```
npm i detect-bat-publishers
```

## Usage
```javascript

let check = require('detect-bat-publishers');

// Return a promise with true/false
// Use a DNS lookup
check.isWebsiteVerifiedByDnsRecord('batgrowth.com')

// Return a promise with true/false
// Fetch brave-payments-verification.txt
check.isWebsiteVerifiedByTxtVerificationFile('batgrowth.com')

// Return a promise with true/false
// Use Brave official API (recommended)
check.isWebsiteVerifiedByBraveApiCall('batgrowth.com')
```

---
_Source: https://npm.io/package/detect-bat-publishers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
