Code Monkey home page Code Monkey logo

browsersl.ist's Introduction

Browserslist Website

Browserslist logo by Anton Popov

This website uses Browserslist and Can I Use to display the compatible browsers for a browsers query.

browsersl.ist

HTTP API

You can use the site API in your own applications.

https://browsersl.ist/api/browsers?q=defaults&region=alt-ww

Response example

// https://browsersl.ist/api/browsers?q=>defaults+and+supports+es6-module&region=alt-as

{
  "query": ">0.3%",
  "lint": [
    {
      "id": "countryWasIgnored",
      "message": "Less than 80% coverage in `China`, `Nigeria`, `Tanzania`, `Ghana`, and `Uganda` regions"
    }
  ],
  "region": "alt-as",
  "coverage": 88.44,
  "versions": {
    "browserslist": "4.21.3",
    "caniuse": "1.0.30001381"
  },
  "browsers": [
    {
      "id": "chrome",
      "name": "Chrome",
      "coverage": 17.06,
      "versions": {
        "102": 0.72,
        "103": 16.32
      }
    }
    ...
  ]
}

Errors

If you send a request with an error, you will receive error message with the status 400.

// https://browsersl.ist/api/browsers?q=>0%&region=XX

{
  "message": "Unknown region name `XX`."
}

Development

We recommend to install Prettier and EditorConfig plugins to your text editor.

To run a local copy for development:

  1. Install correct versions of Node.js and pnpm. There are two ways:

    • With asdf version manager:

      asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
      asdf plugin-add pnpm https://github.com/jonathanmorley/asdf-pnpm.git
      asdf install
    • Manually by check versions in .tool-versions.

  2. Install dependencies:

    pnpm install
  3. Run local server with client-side watcher.

    pnpm start

To run local server in production mode:

pnpm ssdeploy run

browsersl.ist's People

Contributors

ai avatar jonrohan avatar sashachabin avatar dependabot-preview[bot] avatar ariarzer avatar greenkeeper[bot] avatar xhmikosr avatar greenkeeperio-bot avatar igorlukanin avatar timer avatar yash-singh1 avatar alex996 avatar awkaiser avatar gcmznt avatar ypcrumble avatar sergeyvinogorov avatar yago avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.