npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

taw-social-sharing

v0.1.2

Published

A simple jQuery plugin for displaying social media share buttons with counters.

Readme

TAW Social Sharing - Easy, clean social sharing buttons with optional share counters.

TAW Social Sharing is a simple, clean, and easy-to-use social sharing jQuery plugin.

Demo

View Demo

Getting Started

  1. Download the minified js file (taw_social_sharing.min.js) OR download the package or install it with npm:

    $ npm install taw-social-sharing
  2. Add link to font-awesome.css (used for social media logos)

    <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
  3. Add link to jquery.js and plugin js file taw_social_sharing.js

      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
      <script src="taw_social_sharing.min.js"></script>
  4. Initialize plugin with options:

    <script type="text/javascript">
      jQuery(function($){
        social_share.init({
          counters: true,
          margin: 0,
          namespace: 'social-sharing'
        });
      });
    </script>
  5. Add element with the namespace class. Default is 'social-sharing'.

    <div class="social-sharing"></div>

Preview

TAW Social Sharing Preview

Options

TAW Social Sharing includes a few options to customize the look and behavior of the plugin.

An example of some alternative init options:

{
  shares: ["facebook", "twitter", "pinterest"],
  url: "http://google.com",
  image: 'http://lorempixel.com/200/200',
  counters: false,
  margin: 10,
  namespace: 'share-btns',
  rounded: true
}

shares :Array

An array of shares. Default is ['facebook', 'twitter', 'linkedin', 'pinterest']

url :String

A custom url to share. The current page's url is used by default.

image :String

A custom image for Pinterest. Default looks for an Open Graph meta tag: <meta property="og:image" content="http://someurl.com/theimage.jpg">.

counters :true|false

A boolean specifying whether or not to show the counter. Defaults to true.

margin : Number

Specifies a margin in pixels above and below the element.

namespace : String

Creates a custom namespace. Default is social-sharing. Useful if there are conflicts with existing stylesheets.

rounded : true|false

A boolean specifying whether or not to round the corners. Defaults to false.

License

MIT © Travis A. Wagner