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

nvdtb

v1.0.4

Published

small table utils

Readme

nvdtb

  • nvdtb is a simple util for small-table ,such as config or init some const

install

  • npm install nvdtb

usage

###cvc

const nvdtb = require(nvdtb);
const Dtb = nvdtb.Cudtb


var dtb = new Dtb(4,'state','anti_state','key','anti_key')
dtb.state = ['undefined','pending','resolved','rejected']
dtb.anti_state = ['undefined','pending','rejeted','resolved']
dtb.key = ['undefined','pending','rslt','exception']
dtb.anti_key = ['undefined','pending','exception','rslt']


> dtb
    state | anti_state |       key |  anti_key
----------------------------------------------
undefined |  undefined | undefined | undefined
----------------------------------------------
  pending |    pending |   pending |   pending
----------------------------------------------
 resolved |    rejeted |      rslt | exception
----------------------------------------------
 rejected |   resolved | exception |      rslt
----------------------------------------------


> dtb.cvc('state','resolved','anti_key')
'exception'

###sort

const Dtb = require("./index").Cudtb
var dtb = new Dtb(3,'name','class','year')
dtb.name = ['john','jane','dave']
dtb.class = ['A','B','B']
dtb.year = [15,12,10]

> dtb
name | class | year
-------------------
john |     A |   15
-------------------
jane |     B |   12
-------------------
dave |     B |   10
-------------------
>

dtb.sort()                 default use the compare sequence of inited: ['name','class','year']
> dtb                  
name | class | year
-------------------
dave |     B |   10
-------------------
jane |     B |   12
-------------------
john |     A |   15
-------------------
>


dtb.sort(["year","class","name"])

> dtb
name | class | year
-------------------
dave |     B |   10
-------------------
jane |     B |   12
-------------------
john |     A |   15
-------------------
>

APIS

{
  cmmn: {
    kvl_to_entries: [Function: kvl_to_entries],
    entries_to_kvl: [Function: entries_to_kvl],
    kvl_to_dict: [Function: kvl_to_dict],
    dict_to_kvl: [Function: dict_to_kvl],
    entries_to_dict: [Function: entries_to_dict],
    dict_to_entries: [Function: dict_to_entries],
    is_list_unique: [Function: is_list_unique],
    prepend_str: [Function: prepend_str]
  },
  basic: {
    init_row: [Function: init_row],
    init_dtb: [Function: init_dtb],
    dtb_to_cols: [Function: dtb_to_cols],
    cols_to_dtb: [Function: cols_to_dtb],
    dtb_to_mat: [Function: dtb_to_mat],
    dtb_to_tmat: [Function: dtb_to_tmat],
    unzip: [Function: unzip],
    zip: [Function: zip],
    transform: [Function: transform],
    creat_row: [Function: creat_row],
    get_cnl: [Function: get_cnl],
    get_colnum: [Function: get_colnum],
    get_cnl_from_dtb: [Function: get_cnl_from_dtb],
    get_cnl_from_cols: [Function: get_cnl_from_cols],
    get_row: [Function: get_row],
    get_col: [Function: get_col],
    get_val: [Function: get_val],
    get_cvl: [Function: get_cvl],
    get_rvl: [Function: get_rvl],
    set_row: [Function: set_row],
    prepend_row: [Function: prepend_row],
    insert_row: [Function: insert_row],
    append_row: [Function: append_row],
    del_row: [Function: del_row],
    set_col: [Function: set_col],
    prepend_col: [Function: prepend_col],
    insert_col: [Function: insert_col],
    append_col: [Function: append_col],
    del_col: [Function: del_col]
  },
  unicol: {
    is_cvl_unique: [Function: is_cvl_unique],
    is_col_unique: [Function: is_col_unique],
    'is_dtb_col$unique': [Function: is_dtb_col$unique],
    get_rn_with_cvl: [Function: get_rn_with_cvl],
    get_rn_with_col: [Function: get_rn_with_col],
    cvc: [Function: cvc],
    Dtb: [Function: Dtb]
  },
  Cudtb: [Function: Dtb]
}

RESTRICT

  • each column elements must be unique to each other
  • for full support , refer to the below python projects
  • https://github.com/ihgazni2/dtable
  • https://github.com/ihgazni2/qtable

LICENSE

  • ISC