code42day-addthis
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"name": "code42day-addthis", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "Load addthis.com snippet asynchronously.", | ||
@@ -17,3 +17,5 @@ "author": { | ||
], | ||
"dependencies": {}, | ||
"dependencies": { | ||
"code42day-load": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
@@ -25,2 +27,5 @@ "jshint": "^2.9.4" | ||
}, | ||
"browser": { | ||
"load": "code42day-load" | ||
}, | ||
"files": [ | ||
@@ -30,2 +35,2 @@ "index.js", | ||
] | ||
} | ||
} |
[![NPM version][npm-image]][npm-url] | ||
[![Build Status][travis-image]][travis-url] | ||
[![Dependency Status][gemnasium-image]][gemnasium-url] | ||
@@ -18,7 +17,29 @@ | ||
```js | ||
var code42dayAddthis = require('code42day-addthis'); | ||
var addthis = require('code42day-addthis'); | ||
code42dayAddthis('Rainbow'); | ||
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)` | ||
- [addthis_config](http://www.addthis.com/academy/the-addthis_config-variable/) | ||
- [addthis_share](http://www.addthis.com/academy/the-addthis_share-variable/) | ||
## License | ||
@@ -31,6 +52,3 @@ | ||
[travis-url]: https://travis-ci.org/code42day/code42day-addthis | ||
[travis-image]: https://img.shields.io/travis/code42day/code42day-addthis.svg | ||
[gemnasium-image]: https://img.shields.io/gemnasium/code42day/code42day-addthis.svg | ||
[gemnasium-url]: https://gemnasium.com/code42day/code42day-addthis |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2143
8
1
53
1
+ Addedcode42day-load@^1.0.1
+ Addedcode42day-load@1.0.1(transitive)