social-browser

0.1.0 • Public • Published

social-browser

A node module providing utility methods to detect which social browser is a client using.

Installation

  npm install social-browser --save

Usage

  var socialbrowser = require('social-browser');
  var browser = socialbrowser.detect();
  if (browser.major === "facebook") {
    console.log('User is using Facebook client browser.');
  }

Tests

   npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.0.1 Initial release

/social-browser/

    Package Sidebar

    Install

    npm i social-browser

    Weekly Downloads

    1

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • alexnj