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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@supernpm2024/unde-delectus-corporis-commodi

v1.0.0

Published

Fast query string parser and has most features of `qs`

Downloads

106

Readme

@supernpm2024/unde-delectus-corporis-commodi

Fast query string parser and has most features of qs

Install

npm install @supernpm2024/unde-delectus-corporis-commodi

Usage

const qs = require('@supernpm2024/unde-delectus-corporis-commodi');
const str = 'a=1&b=2&c[]=3&c[]=4&d[a][b][c]=5';
console.log(qs.parse(str));
// { a: '1', b: '2', c: ['3', '4'], d: { a: { b: { c: '5' } } } }

Benchmark

> node benchmark/index.mjs

cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
runtime: node v18.14.0 (x64-linux)

benchmark                         time (avg)             (min … max)       p75       p99      p995
-------------------------------------------------------------------- -----------------------------
• simple
-------------------------------------------------------------------- -----------------------------
@supernpm2024/unde-delectus-corporis-commodi                     215.12 ns/iter  (190.79 ns … 326.6 ns) 231.31 ns 314.23 ns 325.66 ns
qs                              3.76 µs/iter      (3.53 µs … 4.2 µs)   3.85 µs    4.2 µs    4.2 µs
fast-querystring (no nested)  156.86 ns/iter (134.91 ns … 696.73 ns) 164.41 ns 292.89 ns 321.29 ns

summary for simple
  @supernpm2024/unde-delectus-corporis-commodi
   1.37x slower than fast-querystring (no nested)
   17.48x faster than qs

• array
-------------------------------------------------------------------- -----------------------------
@supernpm2024/unde-delectus-corporis-commodi                     606.92 ns/iter (548.09 ns … 844.72 ns) 657.29 ns 844.72 ns 844.72 ns
qs                              6.76 µs/iter     (6.55 µs … 7.19 µs)   6.88 µs   7.19 µs   7.19 µs
fast-querystring (no nested)  477.43 ns/iter (416.57 ns … 605.23 ns) 523.46 ns 582.79 ns 605.23 ns

summary for array
  @supernpm2024/unde-delectus-corporis-commodi
   1.27x slower than fast-querystring (no nested)
   11.13x faster than qs

• deep object
-------------------------------------------------------------------- -----------------------------
@supernpm2024/unde-delectus-corporis-commodi                       3.84 µs/iter   (3.19 µs … 439.42 µs)   3.56 µs    7.8 µs   9.47 µs
qs                             19.48 µs/iter     (16.84 µs … 345 µs)     18 µs  36.89 µs  62.15 µs
fast-querystring (no nested)    1.25 µs/iter     (1.12 µs … 1.68 µs)   1.31 µs   1.68 µs   1.68 µs

summary for deep object
  @supernpm2024/unde-delectus-corporis-commodi
   3.07x slower than fast-querystring (no nested)
   5.07x faster than qs