twitter-intent
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Twitter Intent

Build Status Coverage Status

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

Testing

Lint and run test suite:

$ npm test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i twitter-intent

Weekly Downloads

5

Version

0.0.3

License

MIT

Unpacked Size

9.18 kB

Total Files

12

Last publish

Collaborators

  • rjz