Git Product home page Git Product logo

browserslist.dev's Introduction

browserslist.dev

A website to display compatible browsers from browserslist string.

Predefined list

You can pass additional parameters in the URL to show a predefined list of browsers. If you pass the parameters as ?ref=pspdfkit&version=2020.4.0, the website will show data from data/pspdfkit/2020.4.0.json. The JSON file stores data in the following format:

interface JSON {
  // list of supported browsers
  supportedBrowsers: string[];
  // browserslist configuration
  config: string[];
  // Title of the page. You can enter a HTML string
  title: string;
  // version of browserslist
  browserslist: string;
  // version of caniuse-lite used to generate data
  caniuse?: string;
}

You can see a sample JSON file here.

Bundling

All the data present in the JSON files is present in the props of the main React Component. This is possible because of the SSG capabilities of Next.js.

Development

  • Clone the repo
  • Run the development build: yarn dev

License

MIT

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.