# twitter-share-count

> Get number of shares on Twitter for a URL

Latest version **0.1.1** (published 2018-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install twitter-share-count
pnpm add twitter-share-count
yarn add twitter-share-count
bun add twitter-share-count
```

## 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.1.1 |
| Published | 2018-02-12 |
| First published | 2018-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Peter Bagi |
| Maintainers | buggy1985 |

## Links

- npm: https://www.npmjs.com/package/twitter-share-count
- Repository: https://github.com/buggy1985/twitter-share-count
- Homepage: https://github.com/buggy1985/twitter-share-count#readme
- Issues: https://github.com/buggy1985/twitter-share-count/issues
- npm.io page: https://npm.io/package/twitter-share-count

## Dependencies (1)

- [twitter](https://npm.io/package/twitter.md) ^1.7.1

## Recent versions

- 0.1.1 (latest) — 2018-02-12
- 0.1.0 — 2018-02-07

## README

# twitter-share-count
Returns the number of shares on Twitter for a URL.
It uses the Twitter Search API.

## Usage

Install it using NPM:

    npm i twitter-share-count -S

Get your auth keys from your [Twitter Apps](https://apps.twitter.com/) account (you might need to create a new app).

Then use it in your project:

    var twitterShareCount = require( 'twitter-share-count' );
    
    var auth = {
      consumer_key: 'YOUR_CONSUMER_KEY',
      consumer_secret: 'YOUR_CONSUMER_SECRET',
      access_token_key: 'YOUR_ACCESS_TOKEN_KEY',
      access_token_secret: 'YOUR_ACCESS_TOKEN_SECRET'
    };
    
    twitterShareCount(auth, "http://www.example.com/")
       .then(function(result){
           console.log(result); // returns '{ shares: 7 }'
       });

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