# twitter-share

> Generate a Twitter web intent URL

Latest version **0.0.1** (published 2018-08-06) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2018-08-06 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tiago Alves |
| Maintainers | letiagoalves |
| Keywords | twitter, intent, share, link, browser |

## Links

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

## 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.1 (latest) — 2018-08-06

## README

# twitter-share

Generate a Twitter share intent URL

## Instalation

```bash
$ npm install --save twitter-share
```

## Usage

```javascript
const twitterShare = require('twitter-share');

// create all the links!!!
const params = {
    text: 'Tweet text', // optional String
    url: 'Tweet url', // optional String
    hashtags: ['some', 'cool', 'hashtags'], // optional Array of Strings
    via: 'twitterusername', // optional String
    related: [{
        username: 'letiagoalves',
        description: 'developer'
    }, {
        username: 'twitter',
        description: 'social network'
    }], // optional Array of Objects,
    inReplyTo: 1337, // optional Number
};
const tweetLink = twitterShare(params);
```

## Contributing
Feel free to contribute with improvements or bugfixes.

## License

twitter-share is [MIT licensed](./LICENSE).

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