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

@tabnas/hoover

v0.2.1

Published

This plugin allows the [Tabnas](https://github.com/tabnas/jsonic) JSON parser to support string hoovering (unquoted internal spaces).

Readme

@tabnas/hoover

A tabnas parser-engine syntax plugin that adds configurable block-delimited string parsing — hoovering up unquoted strings with internal spaces. Define custom string formats with start/end delimiters, escape sequences, and context-sensitive matching. Its only dependency is the engine; it extends whatever grammar you register.

npm install @tabnas/parser @tabnas/hoover

Requires @tabnas/parser >=2 as a peer dependency. The engine ships no grammar, and hoover is grammar-agnostic: it adds an alternate to the val rule, so register a grammar that defines val first, then the hoover plugin. If val is absent, use(Hoover, …) throws a clear error.

npm version build

Documentation

  • Tutorial — zero to a working triple-quote parser.
  • How-to guide — escapes, trimming, delimiter consumption, rule-context matching.
  • Reference — every export, option, and type.
  • Concepts — how the matcher works and why.

The Go port lives in ../go with its own four-quadrant docs.

Quick example

hoover extends a grammar you supply. This self-contained example registers a tiny inline host grammar (a single value plus a parenthesised group, the same shape as test/minigrammar.ts) before the hoover plugin, then parses triple-quoted strings — which preserve internal whitespace.

const { Tabnas } = require('@tabnas/parser')
const { Hoover } = require('@tabnas/hoover')

// Tiny host grammar defining the `val` rule hoover plugs into.
function grammar(tn) {
  tn.options({
    fixed: { token: { '#OP': '(', '#CP': ')' } },
    rule: { start: 'val' },
  })
  tn.token('#OP')
  tn.token('#CP')

  tn.rule('val', (rs) => {
    rs.bo((r) => { r.node = undefined })
    rs.bc((r, ctx) => {
      r.node =
        undefined === r.node
          ? undefined === r.child.node
            ? 0 === r.os ? undefined : r.o0.resolveVal(r, ctx)
            : r.child.node
          : r.node
    })
    rs.open([{ s: '#OP', p: 'group', b: 1 }, { s: '#VAL' }])
    rs.close([{ s: '#ZZ' }, { s: '#CP', b: 1 }])
  })

  tn.rule('group', (rs) => {
    rs.bc((r) => { r.node = r.child.node })
    rs.open([{ s: '#OP', p: 'val' }])
    rs.close([{ s: '#CP' }])
  })
}

const j = new Tabnas()
  .use(grammar)
  .use(Hoover, {
    block: [
      { name: 'triplequote', start: { fixed: "'''" }, end: { fixed: "'''" } },
    ],
  })

j.parse("'''hello world'''")  // => "hello world"
j.parse("('''x''')")          // => "x"

See the tutorial for a step-by-step walkthrough.

License

MIT. Copyright (c) Richard Rodger and other contributors.