Share selection text

A lightweight (8Kb minified, 2.9Kb gzipped) JavaScript library to let users share their text selections to social networks, in desktop browsers. (Yes, like Medium)

Lightweight, 2.9Kb gzipped.

Start using with 2 lines of code.

No dependencies at all.

Tiny and comprehensive API.

Usage

Default

Share selection text to Twitter is the default option.

Complete

The complete API offers full customization and share to Twitter and Facebook.

Documentation

Read the documentation and find the best installation for your use case, alongside with configuration and extension options.