A utility for building twitter intents
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>');
Clone this repository:
$ npm install twitter-intent
Lint and run test suite:
$ npm test
MIT