1.0.0 • Published 8 years ago
code42day-addthis v1.0.0
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