tweet-selection

Tweet selected text. Like Medium but out of the box.

Usage no npm install needed!

<script type="module">
  import tweetSelection from 'https://cdn.skypack.dev/tweet-selection';
</script>

README

tweet-selection


tweet-selection

Last version Dev Dependencies Status NPM Status Donate

Tweet selected text. Like Medium but out of the box.

Install

npm install tweet-selection --save

or

bower install tweet-selection --save

Usage

Note: You need to use a DOM Selector.

API and default values are:

$('body').tweetSelection({
  height: 300,
  width: 600,
  minimumTextSelected: 3,
  shareClass: '.tweet-selection'
  ellipsis: '…',
  quoteLeft: '“',
  quoteRight: '”'
})

Also support the rest of the query optional parameters for Tweet Web intent.

License

MIT © Kiko Beats