Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luanmuniz/social-counter
Module that give you the numbers of followers and likes you have
https://github.com/luanmuniz/social-counter
Last synced: about 1 month ago
JSON representation
Module that give you the numbers of followers and likes you have
- Host: GitHub
- URL: https://github.com/luanmuniz/social-counter
- Owner: luanmuniz
- Created: 2014-11-21T23:04:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T21:39:59.000Z (over 6 years ago)
- Last Synced: 2024-09-13T03:35:03.413Z (2 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
Social Counter
===================
[![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url] [![NPM Version][node-image]][node-url][![Node Build][nodei-image]][nodei-url]
Module that give you the numbers of followers and likes you have
## How it works
First initialize the module
```javascript
var socialCounter = require('social-counter'),
socialCounterPromise;socialCounterPromise = socialCounter.init({
'pinterest': {{YourPinterestUsername}},
'twitter': {{YourTwitterUsername}}
});
```After this, the `socialCounterPromise` will return a promise with the return and the numbers you want
```javascript
socialCounterPromise.then(function() {
var twitterNumber = socialCounter.getTwitter(),
pinterestNumber = socialCounter.getPinterest();console.log(twitterNumber); // return a integer with the number of followers you have on twitter
console.log(pinterestNumber); // return a integer with the number of followers you have on pinterest
});
```### Development
Install Grunt CLI
`npm install -g grunt-cli`Install the dependences
`npm install`## Contributing
Please, check the [Contributing](CONTRIBUTING.md) documentation, there're just a few steps.
## Support or Contact
Having trouble? Or new ideas? Post a new issue! We will be glad to help you!
## License
[MIT License](http://luanmuniz.mit-license.org) © Luan Muniz
[travis-url]: https://travis-ci.org/luanmuniz/social-counter
[travis-image]: https://travis-ci.org/luanmuniz/social-counter.png?branch=master
[depstat-url]: https://david-dm.org/luanmuniz/social-counter
[depstat-image]: https://david-dm.org/luanmuniz/social-counter.png
[nodei-image]: https://nodei.co/npm/social-counter.png
[nodei-url]: https://nodei.co/npm/social-counter
[node-image]: https://badge.fury.io/js/social-counter.svg
[node-url]: http://badge.fury.io/js/social-counter