addthis-snippet
v1.0.2
Published
Load addthis.com snippet asynchronously.
Downloads
1,550
Readme
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