Socket
Socket
Sign inDemoInstall

browserslist

Package Overview
Dependencies
1
Maintainers
1
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

3

ChangeLog.md

@@ -0,1 +1,4 @@

## 0.1.2
* Do not create global `browserslist` var (by Maxime Thirouin).
## 0.1.1

@@ -2,0 +5,0 @@ * Sort browsers by name and version.

2

index.js

@@ -16,3 +16,3 @@ var caniuse = require('caniuse-db/data').agents;

// browserslist('IE >= 10, IE 8') //=> ['ie 11', 'ie 10', 'ie 8']
browserslist = function (selections, opts) {
var browserslist = function (selections, opts) {
if ( typeof(opts) == 'undefined' ) opts = { };

@@ -19,0 +19,0 @@

{
"name": "browserslist",
"version": "0.1.1",
"version": "0.1.2",
"description": "Get browsers versions that matches given criterias like in Autoprefixer",

@@ -13,3 +13,3 @@ "keywords": ["caniuse", "browsers"],

"dependencies": {
"caniuse-db": "^1.0.30000043"
"caniuse-db": "^1.0.30000048"
},

@@ -16,0 +16,0 @@ "devDependencies": {

# Browserslist [![Build Status](https://travis-ci.org/ai/browserslist.svg)](https://travis-ci.org/ai/browserslist)
Get browsers versions that matches given criterias.
Get browser versions that match given criteria.
Useful for tools like [Autoprefixer].
You can select browsers by passing a string. This library will use Can I Use
data to return you a appropriate list of all versions.
data to return the appropriate list of all matching versions.
For example, last version of each major browser and version, which is used more
that 5% in global usage statistics:
For example, the last version of each major browser and version,
with a usage of over 5% in global usage statistics:

@@ -18,6 +18,6 @@ ```js

if you don't provide an argument, Browserslist will look for a `browserslist`
config file in current or parent directories.
If you don't provide an argument, Browserslist will look for a `browserslist`
config file in current or parent directories.
If no config file is found, Browserslist will use default list:
If no config file is found, Browserslist will use the default list:
`> 1%, last 2 versions, Firefox ESR, Opera 12.1`.

@@ -30,3 +30,2 @@

[Autoprefixer]: https://github.com/postcss/autoprefixer
[two-letter contry codes]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

@@ -37,6 +36,6 @@ ## Queries

* `last 2 versions`: the last 2 versions for each major browser.
* `last 2 Chrome versions`: the last versions of a specific browser.
* `> 5%`: versions selected by global usage statistics.
* `> 5% in US`: uses USA usage statistics. It accepts [two-letter contry codes].
* `last 2 versions`: the last 2 versions for each major browser.
* `last 2 Chrome versions`: the last 2 versions of Chrome browser.
* `> 5%`: versions selected by global usage statistics.
* `> 5% in US`: uses USA usage statistics. It accepts [two-letter country code].
* `Firefox > 20`: versions of Firefox newer than 20.

@@ -47,3 +46,3 @@ * `Firefox >= 20`: versions of Firefox newer than or equal to 20.

* `Firefox ESR`: the latest [Firefox ESR] version.
* `iOS 7`: the browser version directly.
* `iOS 7`: the iOS browser version 7 directly.

@@ -53,2 +52,4 @@ Blackberry and Android WebView will not be used in `last n versions`.

[two-letter country codes]: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
## Browsers

@@ -86,4 +87,4 @@

If list is missing, Browserslist will look for a config file.
You can provide a `path` option (that can be a file) to find config file
If a list is missing, Browserslist will look for a config file.
You can provide a `path` option (that can be a file) to find the config file
relatively to it.

@@ -96,4 +97,4 @@

Browserslist’s config should has `browserslist` name and splits browsers queries
by new line. You can write comment after `#`:
Browserslist’s config should be named `browserslist` and have browsers queries
split by a new line. You can write a comment after `#`:

@@ -100,0 +101,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc