A node module providing utility methods to detect which social browser is a client using.
npm install social-browser --save
var socialbrowser = require('social-browser');
var browser = socialbrowser.detect();
if (browser.major === "facebook") {
console.log('User is using Facebook client browser.');
}
npm test
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.
- 0.0.1 Initial release