0.1.4 • Published 11 years ago

normalize-browser-names v0.1.4

Weekly downloads
13
License
-
Repository
github
Last release
11 years ago

normalize-browser-names

normalize browser names

build status

example

var normalize = require('normalize-browser-names');

console.dir(normalize(['ie8','ff/12.']));
console.dir(normalize({'ie':8,'ff':[12,'5.']}));
$ node example/normalize.js
{ iexplore: [ '8.0' ], firefox: [ '12.0' ] }
{ iexplore: [ '8.0' ], firefox: [ '12.0', '5.0' ] }

methods

var normalize = require('normalize-browser-names')

normalize(browsers)

Given an array of browser version strings or an object mapping browser names to arrays of browser versions or a single browser version, return an object mapping browser names to arrays of string versions.

For the aliases used, consult the source of this module in index.js.

install

With npm do:

npm install normalize-browser-names

license

MIT

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago