twitter-intent
v0.0.3
Published
Utilities for building twitter intents
Downloads
67
Readme
Twitter Intent
A utility for building twitter intents
Example
ES5
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
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-intentTesting
Lint and run test suite:
$ npm testLicense
MIT
