Skip to content

Releases: browserslist/browserslist-plausible

v1.0.1

12 Nov 23:01
Immutable release. Only release title and notes can be modified.
73f214e

Choose a tag to compare

What's Changed

Revises the README and package.json metadata to tidy things up a bit on GitHub and npm.

See: #2 and #4

Note: While attempting to release this via CI, I had made a few hiccups due to a misconfiguration that blocked deploys. Once I managed to deploy successfully, I realized that I'd accidentally had the tag name and version of out of sync. Please excuse that for this release, but future versions should look good. 👍

v1.0.0

12 Nov 22:27
Immutable release. Only release title and notes can be modified.
e646b25

Choose a tag to compare

v1.0.0 Release 🎉

Initializes the project and does its job. ^-^'

This generates a browserslist-stats.json file using data from your Plausible Analytics instance. Please see the --help for more information, or read the README.

Usage: browserslist-plausible [options] <site-id>

Generate a browserslist-stats.json file using data from your Plausible Analytics instance.

Arguments:
  site-id                    Domain of the website to query for.

Options:
  -o, --outputPath [string]  Location to write stats in JSON. (default: "browserslist-stats.json")
  -h, --host [string]        Host URL of your Plausible Analytics server. (default: "https://plausible.io")
  -O, --overwrite [boolean]  If to overwrite the output file if it already exists. (default: false)
  --version                  Output the current version of browserslist-plausible.
  --help                     Display this help message.

Basic Usage

Suppose you had a .browserslistrc file with the following query:

.browserslistrc

> 0.5% in my stats

Then, you can do the following commands in your terminal:

npx browserslist-plausible --host https://plausible.example.org example.org
✔ What is your Plausible API Key? *********************************************…
✔ Browserslists stats written to …/browserslist-stats.json

Run the following command to see the Browserslist coverage for your stats:
npx browserslist --coverage --stats=browserslist-stats.json
npx browserslist --coverage --stats=browserslist-stats.json
These browsers account for 87.9% of all users in custom statistics