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

nv-cli-abject

v1.0.5

Published

nv-cli-abject =============== - nv-cli-abject - cli tool, generate a special-class for small-array of fixed-size AND named-index

Readme

nv-cli-abject

  • nv-cli-abject
  • cli tool, generate a special-class for small-array of fixed-size AND named-index

install

  • npm install nv-cli-abject -g

usage

    Usage: nv_abject [options]
    Options:
        -c, --clsname           clsname
        -p, --prop_names        property names splited by spaces
        -h, --help              usage

example

     nv_abject -c 'Cls' -p id name value ___local___

        class Cls {
            #values = [undefined,undefined,undefined,undefined]
            ////
            i2n(i)         {return(Cls.cnl[i])}
            n2i(n)         {return(Cls.cnl.indexOf(n))}
            ////
            get indexes_()   {return(Cls.cnl.map((r,i)=>i))}
            get keys_()      {return(Cls.cnl.slice(0))}
            get values_()    {return(this.#values.slice(0))}
            ////
            get oentries_()  {return(Cls.cnl.map((k,i)=>[k,this.#values[i]]))}
            get dict_()      {return(Object.fromEntries(this.oentries_))}
            get aentries_()  {return(Cls.cnl.map((k,i)=>[i,this.#values[i]]))}
            get oary_()      {return(Object.fromEntries(this.aentries_))}
            get entries_()   {return(Cls.cnl.map((k,i)=>[i,k,this.#values[i]]))}
            ////
            * iv_iter()    {
                for(let i=0;i<Cls.cnl.length;i++) {
                    yield([i,this.#values[i]])
                }
            }
            * kv_iter()    {
                for(let i=0;i<Cls.cnl.length;i++) {
                    yield([Cls.cnl[i],this.#values[i]])
                }
            }
            ////
            [Symbol.iterator]() {
                let _gen = function *() {
                    for(let i=0;i<Cls.cnl.length;i++) {
                        yield([this.#values[i],Cls.cnl[i],i])
                    }
                }
                return(_gen())
            }
            ////

            get id()    {return(this.#values[0])}
            set id(v)   {this.#values[0]=v}
            get [0]()    {return(this.#values[0])}
            set [0](v)   {this.#values[0]=v}


            get name()    {return(this.#values[1])}
            set name(v)   {this.#values[1]=v}
            get [1]()    {return(this.#values[1])}
            set [1](v)   {this.#values[1]=v}


            get value()    {return(this.#values[2])}
            set value(v)   {this.#values[2]=v}
            get [2]()    {return(this.#values[2])}
            set [2](v)   {this.#values[2]=v}


            get ___local___()    {return(this.#values[3])}
            set ___local___(v)   {this.#values[3]=v}
            get [3]()    {return(this.#values[3])}
            set [3](v)   {this.#values[3]=v}

            ////
        }
        
        
        Cls.cnl = ['id','name','value','___local___']

LICENSE

  • ISC