1.0.0 • Published 8 years ago

code42day-addthis v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

NPM version Dependency Status

code42day-addthis

Load addthis.com snippet asynchronously.

Install

$ npm install --save code42day-addthis

Usage

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

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