<commit_before>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
-------------------------------------------------------------------------------

```js
var twitterIntent = require('twitter-intent');
var href = twitterIntent.tweet.url({
  text: 'Tweet me!',
  hashtags: ['node.js', 'npm']<commit_msg>Added ES6 Example<commit_after>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']
{'fraction_non_alphanumeric': 0.34790528233151186, 'fraction_numerical': 0.0018214936247723133, 'mean_word_length': 3.577777777777778, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3240285', 'n_tokens_mistral': 512, 'n_tokens_neox': 481, 'n_words': 74}