Join us at TNW Conference 2022 for insights into the future of tech →

The heart of tech

This article was published on August 10, 2015

Use this handy command line tool to check if your code works across browsers

Use this handy command line tool to check if your code works across browsers
Owen Williams
Story by

Owen Williams

Former TNW employee

Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their word Owen was a reporter for TNW based in Amsterdam, now a full-time freelance writer and consultant helping technology companies make their words friendlier. In his spare time he codes, writes newsletters and cycles around the city.

Browser compatibility is something all Web developers spend a lot of time working on. A handy Node package makes it easy to see if the shiny new feature you’re trying out is compatible with enough browsers to implement it.

Can I use’s NPM package is an extension of its useful website that makes it easy to query how well a standard is adopted across browsers and various devices.

macterm

When you’re curious if you can use something like Web sockets, it’s as simple as typing ‘caniuse websockets’ at the terminal and you’ll get an instant answer about how well it’ll work across browsers.

You’ll need Node and NPM first, then you can type ‘npm install -g caniuse-cmd’ into your terminal to get it installed and ready for use.

It’s a nice little tool that’ll make your development workflow even better — no more jumping outside of your coding environment to the Web browser to check compatibility.

Read Next: Watching people code could be the next big thing in live streaming video