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 🙏

© 2025 – Pkg Stats / Ryan Hefner

urism

v1.0.0

Published

Convert your JS object from/to human readable URI.

Downloads

983

Readme

urism

Convert your JS object from/to human readable URI.

Build Status

Example

TO DO

Why

  • You want put arbitrary complex json data to querystring, but you find none of existing libraries support it. They do not support booleans, and can't distinguish numbers and strings, or can't represent specific values, such as null, undefined, NaN, Infinity and cyclic references.
  • You want your querystring is human readable, and you don't want to pack your data to base64 or other formats.
  • You want your querystring is safe for browsers and servers, and spec compliant. Most formats using brackets for array and object. It's unsafe.
  • You want your values keep their literal as close as possible, so you can copy it from browser's location bar and paste to other places without addition modifications.

How

  • Specific values encoded to aliases. true -> "$true", null -> "$null", NaN -> "$nan" ...
  • Reserved characters and non-ascii characters encoded to percent escaped sequence. "#" -> "%23", " " -> "%20", "你好" -> "%E4%BD%A0%E5%A5%BD"
  • Number(s) keep their literal except specific values NaN, Infinity, -Infinity. Numbers will encoded to exponential format if it's shorter.
  • String(s) will encoded in raw mode if ambiguity. Eg. It looks like number, array, object or alias. Raw mode start with marker "?". End with marker "?". "1-2-3" -> "1-2-3", "123" -> "?123?".
  • Object(s) except root object start with marker "+". {a:1, b:2} -> "+a=1&b=2;"
  • Boolean(s) and undefined(s) as object property have syntax sugar. {a: true, b: undefined, c: false} -> "+a&-b;".
  • Array(s) start with marker ":". End with marker ";". [1,2,3] -> ":1,2,3;".
  • Cyclic references encoded to aliases. var a = {}; a.a = a; a -> "0$+a=$0;".
  • Date(s) and RegExp(s) encoded to call form of alias. new Date(2019, 10, 11) -> "$date:2019-11-11+08;".
  • Root object do not have start/end markers and prefixed with "?". {a: 1} -> "?a=1"
  • End markers except call form can omit if no ambiguity like HTML end tag.
  • For more details, please see code.

Contribution

Buy me a coffee if this library save your time.

Things to Contribute

  • Refine README and example.
  • Proposal new rules or improvement on existing rules.
  • Fix bugs and add tests.