Caniuse-cmd

caniuse-cmd

caniuse.com on CLI!

caniuse-cmd brings the power of caniuse on to the command line, it makes use of caniuse-db module which provides raw browser/feature support data for the same.

Install it:

1
npm install --global caniuse-cmd

Sample usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
nmotw> caniuse webrtc --short
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0%
  IE ✘  Edge ✘  Firefox ✘ 2+ ✔ 22+ᵖ Chrome ✘ 4+ ✔ 23+ᵖ Safari ✘  Opera ✘ 9+ ✔ 18+ᵖ

nmotw> caniuse webrtc --short -a
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0%
  IE ✘  Edge ✘  Firefox ✘ 2+ ✔ 22+ᵖ Chrome ✘ 4+ ✔ 23+ᵖ Safari ✘  Opera ✘ 9+ ✔ 18+ᵖ

nmotw> caniuse webrtc --short --abbrv
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0%
  IE ✘  Edge ✘  Firefox ✘ 2+ ✔ 22+ᵖ Chrome ✘ 4+ ✔ 23+ᵖ Safari ✘  Opera ✘ 9+ ✔ 18+ᵖ

nmotw> caniuse webrtc --short --abbrev
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0%
  IE ✘  Edge ✘  FF ✘ 2+ ✔ 22+ᵖ Chr. ✘ 4+ ✔ 23+ᵖ Saf. ✘  Op. ✘ 9+ ✔ 18+ᵖ

nmotw> caniuse webrtc --short --abbrev --browser ff
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0%


nmotw> caniuse webrtc --long
WebRTC Peer-to-peer connections ✔ 55.36% ◒ 0% [W3C Working Draft]
  Method of allowing two users to communicate directly, browser to browser using the RTCPeerConnection API.
  #JSAPI

  IE ✘
  Edge ✘
  Firefox ✘ 2+ ✔ 22+ᵖ
  Chrome ✘ 4+ ✔ 23+ᵖ
  Safari ✘
  Opera ✘ 9+ ✔ 18+ᵖ

P.S: Do cehckout the CLI flags

GIF FTW!

caniuse-cmd.gif

Thanks to Sam Gentle for bringing this to the CLI.

Suggest a module

Comments