This package has been deprecated

Author message:

Facebook api doesn't work anymore

social-counter

2.0.0 • Public • Published

Social Counter

Build Status Dependency Status NPM Version

Node Build

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

Package Sidebar

Install

npm i social-counter

Weekly Downloads

2

Version

2.0.0

License

none

Last publish

Collaborators

  • luanmuniz