0.0.1 • Published 10 years ago
layouter v0.0.1
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 layoutervar Layouter = require('layouter');##Usage ###As jQuery plugin
$.layout.nameReturns browser name determined from user agent string
$.layout.versionReturns layout engine version as string
###Without jQuery
window.layout.nameReturns browser name determined from user agent string
window.layout.versionReturns layout engine version as string
###As node.js module for parsing user agent string
var layouter = new Layouter();
var layout = layouter.parse(uaString);layout.nameReturns browser name determined from user agent string
layout.versionReturns layout engine version as string
Development
Test
npm test0.0.1
10 years ago