New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

zgo.at/cantuse

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zgo.at/cantuse

  • v0.0.0-20211020031631-0c22a624a833
  • Go
  • Socket score

Version published
Created
Source

cantuse is like caniuse.com, except that it lists the browsers in which a feature won't work, instead of listing in which it will. I find this a more useful way to look at the data.

Right now this is just a basic commandline utility. A web version will be added soon™.

Install it with go install zgo.at/cantuse@latest, which will put the binary in ~/go/bin.

It uses the same data as caniuse.com (https://github.com/Fyrd/caniuse); you'll need to fetch the data.json yourself:

curl https://raw.githubusercontent.com/Fyrd/caniuse/master/data.json > data.json

Use just cantuse to display all data, or cantuse arrow to search by feature name. Use -ignore to ignore some browsers and always consider them "supported"; this accepts a comma-separated list of the browser + version as it appears in the output; for example:

$ cantuse -ignore 'IE 11'
$ cantuse -ignore 'IE 11,Opera Mini all'

Browsers with a usage lower than 0.05% are not displayed individually to reduce noise (chances are you don't care about 0.009% of people reported as using IE5.5, or 0.004% usage of Firefox 2). It's still counted in the total supported number though.

Partial support is counted as "supported"; see caniuse.com for more detailed support notes.

FAQs

Package last updated on 20 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc