npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ip-rating-check

v1.0.0

Published

Parse and compare IP ingress-protection codes (IEC 60529): decide if a device rated IPX7 survives a specific exposure.

Readme

ip-rating-check

Parse an IP ingress-protection code (as defined in IEC 60529) and answer the two questions people actually ask about it:

  1. What does IPX7 mean?
  2. If a speaker is IPX5, is it fine at the pool?

The library uses only the letters "IP" plus two digits. The optional supplementary letters (H, M, S, W) are not modelled.

Install

npm i ip-rating-check

Use

const { parse, covers } = require('ip-rating-check');

parse('IP67');
// {
//   code: 'IP67',
//   solid: 6,  solidMeans:  'dust-tight',
//   liquid: 7, liquidMeans: 'immersion 1m 30min'
// }

// Is an IP67 speaker fine at "IPX5" (jets from a hose)?
covers('IP67', 'IPX5');   // true

// Is an IPX4 (splashes only) speaker fine in a pool (IPX7)?
covers('IPX4', 'IPX7');   // false

The digits, verbatim

First digit — solids: 0 none · 5 dust-protected · 6 dust-tight. Second digit — liquids: 4 splashes · 5 low-pressure jets · 7 30 min at 1 m · 8 continuous submersion.

Notes

An X in either position means "not tested" — an IPX7 device may or may not be dust-tight. A retailer should not print "IP67" on a product that was only certified IPX7.

We use this library on the product-detail pages at CairoVolt to render the ingress claims on a Soundcore speaker in a way that matches what the certificate actually says. Reference for the mapping: the summary of IEC 60529 on Wikipedia.

License

MIT.