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

json-hand

v0.0.8

Published

upgraded JSON for hand-writing with back-compatibility

Downloads

24

Readme

json-hand

upgraded JSON for hand-writing with back-compatibility. Play it

example

simple

a:1 b:true c:null d:hello

means:

{"a":1, "b":true, "c":null, "d":"hello"}

object

a:b:k b:c:1;d:e:2;f:3:4

means:

{"a":{"b":"k"}, "b":{"c":1, "d":{"e":2}, "f":{"3":4}}}

array

[1 2 [3 b:4] {c:d:5; e:6}]

means

[1, 2, [3, {"b":4}], {"c":{"d":5, "e":6} }]

why you will like this JSON style?

  1. avoid hand-writing(write JSON as a human) pain
  2. remove any unnecessary element
  3. that's all

what does it do?

  1. , can be totally replaced by any space separators
  2. { and } can be removed in many situations
  3. ' and " are both supported for strings
  4. (while they can both be removed if strings can be detected)
  5. one and only one thing is necessarily introduced here: ; ;, ;; ;;, and so on

install

the easiest way to install json-hand is from npm:

npm install json-hand

require it in your code:

const jsonh = require('json-hand')

also, you can use script tag in browser

<script src="https://unpkg.com/json-hand/dist/index.min.js"></script>

this will create a global variable jsonh.

usage

you can use it like this:

let obj = jsonh.parse(`abc:1 d:2 c:[d:3 e:f:g;h:i]`)
console.log(jsonh.format(obj))

jsonh.json translates a json-hand string to json

jsonh.json(`abc:1 d:2 c:[d:3 e:f:g;h:i]`)
//is equivalent to
JSON.stringify(jsonh.parse(`abc:1 d:2 c:[d:3 e:f:g;h:i]`), null, 2)

a cli tool jh who translates json-hand to json is a bonus for convenience. if you install json-hand globally, you can use it like this

npm install -g json-hand
jh a:1,b:2

output is

{
  "a": 1,
  "b": 2
}

you can use jh with other tools who want json:

curl -d `jh a:1,b:2` ...

one thing needs explaination

; is functioning almost same as space, except for its associativity and precedence

a:b;c:d just means a:b c:d, and while you write x:a:b;c:d, it can be recognized as x:{a:b;c:d}

in a context where ; has already been used, you can use ;, for higher precedence

space and , has a precedence of 1, ; is 2, ;,(same as ,;) is 3, ;; is 4, and so on

an example can explain them all:

top1:some:some:node1:value1
              ;node2:subnode1:value2
                   ,;subnode2:value3
              ;node3:value4
top2:a:b;c:d

means

{
  "top1": {
    "some": {
      "some": {
        "node1": "value1",
        "node2": {
          "subnode1": "value2",
          "subnode2": "value3"
        },
        "node3": "value4"
      }
    }
  },
  "top2": {
    "a": "b",
    "c": "d"
  }
}

last

that's all. it has to be EXTREMEly simple from day one. it's also well tested and stable.

it's still not suggested for serious production use until 1.x.x version, but so long as it's simple and actively maintained, you can give it a try.