# twitter-intent

> Utilities for building twitter intents

Latest version **0.0.3** (published 2020-09-06) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2020-09-06 |
| First published | 2015-06-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | RJ Zaworski |
| Maintainers | rjz |

## Links

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

## Recent versions

- 0.0.3 (latest) — 2020-09-06
- 0.0.2 — 2016-07-31
- 0.0.1 — 2015-06-21

## README

Twitter Intent
===============================================================================

[![Build Status](https://travis-ci.org/rjz/twitter-intent.svg?branch=master)](https://travis-ci.org/rjz/twitter-intent)
[![Coverage Status](https://coveralls.io/repos/github/rjz/twitter-intent/badge.svg?branch=master)](https://coveralls.io/github/rjz/twitter-intent?branch=master)


A utility for building [twitter intents](https://dev.twitter.com/web/intents)

Example
-------------------------------------------------------------------------------

ES5
```js
var twitterIntent = require('twitter-intent');
var href = twitterIntent.tweet.url({
  text: 'Tweet me!',
  hashtags: ['node.js', 'npm']
});

console.log('<a href="' + href + '">Click me!</a>');
```

ES6
```js
import twitterIntent from 'twitter-intent';

const href = twitterIntent.tweet.url({
  text: 'Tweet me!',
  hashtags: ['node.js', 'npm']
});

console.log('<a href="' + href + '">Click me!</a>');
```

Installation
-------------------------------------------------------------------------------

Clone this repository:

    $ npm install twitter-intent

Testing
-------------------------------------------------------------------------------

Lint and run test suite:

    $ npm test

License
-------------------------------------------------------------------------------

MIT

[coveralls]: https://coveralls.io
[gh-pages]: https://pages.github.com
[hoganjs]: http://twitter.github.io/hogan.js
[istanbul]: https://github.com/gotwarlost/istanbul
[jshint]: http://www.jshint.com
[mocha]: https://github.com/visionmedia/mocha
[scrawl]: https://github.com/caolan/scrawl
[travis]: https://travis-ci.org
[nodesecurity]: https://nodesecurity.io/

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