Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vesln/socialcount
Get social stats for given url
https://github.com/vesln/socialcount
Last synced: about 1 month ago
JSON representation
Get social stats for given url
- Host: GitHub
- URL: https://github.com/vesln/socialcount
- Owner: vesln
- License: mit
- Created: 2014-01-09T10:35:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-11T10:09:32.000Z (over 8 years ago)
- Last Synced: 2024-10-17T14:08:09.159Z (about 2 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM
version](https://badge.fury.io/js/socialcount.png)](http://badge.fury.io/js/socialcount)
[![Build Status](https://secure.travis-ci.org/vesln/socialcount.png)](http://travis-ci.org/vesln/socialcount)# Important Notice
I'm no longer actively maintaining this project. If you are interested supporting it - [ping me on twitter](https://twitter.com/vesln).
The only thing that I will ask you is to not change the API drastically. If you are planning on doing that - better start a brand new project.If you want me to transfer you only the name on npm, I'd be happy to only if the project **does not have any downloads on npm lately**. In case it's being
downloaded, there are people that depend on it and might step up and start maintaining, so I will not transfer it to you, regardless if you want to release
a new major version etc.If you have any other questions, let me know.
Thanks!
Veselin
# socialcount
## Synopsis
Get social stats for given url
## Supported sources:
- Google+> Feel free to fork, add a new source and send a pull request
## Usage
```js
var social = require('socialcount');var opts = {
facebook: true,
plus: true,
tweets: true,
};social('http://awesome.io', opts, function(err, res) {
res.facebook.count; // total
res.facebook.shareCount;
res.facebook.likeCount;
res.facebook.commentCount;// tweets
res.tweet.count;// +
res.plus.count;
});
```## Installation
```js
$ npm install socialcount
```### Notes for Node 0.11 users
The Google+ counts won't work due to SSL bug.
## License
The MIT License (see LICENSE)