1.0.2 • Published 6 years ago

addthis-snippet v1.0.2

Weekly downloads
675
License
MIT
Repository
github
Last release
6 years ago

NPM version Dependency Status

addthis

Load addthis.com snippet asynchronously.

Install

$ npm install --save addthis-snippet

Usage

var addthis = require('addthis-snippet');

var config = {
    pubid: 'ra-XXXXXXXXXXXX'
};

var share = {
  passthrough : {
    twitter: {
      via: "TWITTER USERNAME"
    }
  }
};

addthis(config, share, function () {
  // window.addthis is now set and can be used to further configure addthis
});

API

addthis(addthis_config, addthis_share, callback)

License

MIT © Damian Krzeminski