• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Rust
  • License
    MIT License
  • Created about 3 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Rust-ported Browserslist.

browserslist-rs

The tool like Browserslist, but written in Rust.

Project Status

Can I use this library?

If you don't rely on the features mentioned in the Limitations section, you can use it.

We have supported most widely or most frequently used queries, and there are over 100 tests to make sure it works correctly.

For more detail about development status, please see Project #1.

Usage

Please refer to crate documentation.

Try as Rust crate example

You can try and inspect query result by running example with Cargo:

cargo run --example inspect -- <query>

You can also specify additional options, for example:

cargo run --example inspect -- --mobile-to-desktop 'last 2 versions, not dead'

To get more help, you can run:

cargo run --example inspect -- -h

Limitations

The features below aren't supported currently:

  • Custom usage like > 0.5% in my stats.
  • Custom usage like cover 99.5% in my stats.
  • Extending custom config like extends browserslist-config-mycompany.

Credits

Thanks Andrey Sitnik for creating the JavaScript-based Browserslist which is under MIT License.

License

MIT License

Copyright (c) 2021-present Pig Fang

More Repositories

1

browserslist

🦔 Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-preset-env
JavaScript
12,975
star
2

caniuse-lite

A smaller version of caniuse-db, with only the essentials!
JavaScript
541
star
3

update-db

CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
JavaScript
327
star
4

browsersl.ist

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

browserslist-ga

🦔 Target browsers tailored to your audience using Google Analytics
JavaScript
302
star
6

browserslist-useragent

🦔A utility to match a browserslist query with user agent strings
TypeScript
298
star
7

browserslist-useragent-regexp

A utility to compile browserslist query to a RegExp to test browser useragent.
TypeScript
247
star
8

browserslist-example

What tools and how uses Browserslist
CSS
203
star
9

browserslist-ga-export

Generate browserslist-stats.json using Browserslist-GA without logging into a Google Account.
JavaScript
69
star
10

lint

Linter for Browserslist config
JavaScript
35
star
11

browserslist-useragent-ruby

Ruby
29
star
12

typo

Package to help in popular typo: browserlist instead of browserslist
JavaScript
20
star
13

map-to-chrome

Map versions of Chromium-based browsers to their equivalent Chrome versions.
JavaScript
18
star
14

browserslist-vscode

VS Code syntax highlight extension for browserslist and .browserslistrc files
15
star
15

vim-browserslist

syntax highlighting for browserslist config files
Vim Script
12
star