Social Counter
Module that give you the numbers of followers and likes you have
How it works
First initialize the module
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
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 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 © Luan Muniz