count-shares-fix

1.0.4 • Public • Published

count-shares

Returns JSON with a number of shares for a URL.

**This is a modified copy of the original. Removed twitter, odnoklassniki, and the others. Only facebook is left.

{
    "facebook": 5461703,
}

Example

var countShares = require( 'count-shares' );

countShares.get( 'http://google.com', function( err, result ) {  } );

Methods

get( url, callback[, networks] )

url: {String} full URL. www.domain.com and domain.com are different websites for Twitter and Odnoklassniki.

callback( err, result ): {Function} callback that will get the results and errors (if any)

networks: (optional) {Array} or {String} available networks: facebook, twitter, linkedin, odnoklassniki, pinterest, vk (vkontakte). Need more? Contribute!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    4
  • 1.0.3
    0
  • 1.0.2
    0

Package Sidebar

Install

npm i count-shares-fix

Weekly Downloads

4

Version

1.0.4

License

BSD

Last publish

Collaborators

  • teebu