layouter
v0.0.1
Published
Small utility for browser layout engine detection
Downloads
1
Readme
Layouter
Small plugin library for browser layout engine detection
Lightweight JavaScript-based plugin for browser layout engine detection. Written in vanilla Javascript, it doesn't depend on any other library
Installatiion
###As jQuery plugin Include script after the jQuery library:
###As standalone library Simply include this script
###As node.js module:
npm install layouter
var Layouter = require('layouter');
##Usage ###As jQuery plugin
$.layout.name
Returns browser name determined from user agent string
$.layout.version
Returns layout engine version as string
###Without jQuery
window.layout.name
Returns browser name determined from user agent string
window.layout.version
Returns layout engine version as string
###As node.js module for parsing user agent string
var layouter = new Layouter();
var layout = layouter.parse(uaString);
layout.name
Returns browser name determined from user agent string
layout.version
Returns layout engine version as string
Development
Test
npm test