normalize-browser-names
normalize browser names
example
var normalize = ;consoledir;consoledir;
$ node example/normalize.js
{ iexplore: [ '8.0' ], firefox: [ '12.0' ] }
{ iexplore: [ '8.0' ], firefox: [ '12.0', '5.0' ] }
methods
var normalize =
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