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

nv-facutil-new

v0.0.1

Published

nv-facutil-new =============== - nv-facutil-new have some simple utils to avoid use "new Xxx" as possible as can

Downloads

2

Readme

nv-facutil-new

  • nv-facutil-new have some simple utils to avoid use "new Xxx" as possible as can

install

  • npm install nv-facutil-new

usage

example

    const fac_new = require("nv-facutil-new");


    > fac_new.ary(5)
    [ <5 empty items> ]
    >
    > fac_new.u8ary(10)
    Uint8Array(10) [
      0, 0, 0, 0, 0,
      0, 0, 0, 0, 0
    ]
    >
    > fac_new.bi64ary(4)
    BigInt64Array(4) [ 0n, 0n, 0n, 0n ]
    >

    > var agen = fac_new.async_gen('a','b','yield a;  yield b;')
    > var ag = agen(100,200)
    > p = ag.next()
    Promise { <pending> }
    > p
    Promise { { value: 100, done: false } }
    > p = ag.next()
    Promise { <pending> }
    > p
    Promise { { value: 200, done: false } }
    > p = ag.next()
    Promise { { value: undefined, done: true } }
    > p
    Promise { { value: undefined, done: true } }
    >


    > class Klass {constructor(p0,p1){this.prop0=p0;this.prop1=p1;}}
    undefined
    > var o = fac_new.$new(Klass,999,888)
    undefined
    > o
    Klass { prop0: 999, prop1: 888 }
    >

API

for non-builtin Class

    fac_new.$new                  

creator-func for most-builtin Class

    fac_new.ary                   fac_new.arybuf                fac_new.async_func            fac_new.async_gen
    fac_new.bi64ary               fac_new.bu64ary               fac_new.buf                   fac_new.date
    fac_new.dv                    fac_new.f32ary                fac_new.f64ary                fac_new.i16ary
    fac_new.i32ary                fac_new.i8ary                 fac_new.map                   fac_new.normal_func
    fac_new.proxy                 fac_new.regexp                fac_new.sarybuf               fac_new.set
    fac_new.sync_gen              fac_new.u16ary                fac_new.u32ary                fac_new.u8ary
    fac_new.u8cary                fac_new.wkmap                 fac_new.wkref                 fac_new.wkset

built-in class abbr

    fac_new.A                     fac_new.AB
    fac_new.AF                    fac_new.AGF                   fac_new.BI64A                 fac_new.BU64A
    fac_new.BUF                   fac_new.DT                    fac_new.DV                    fac_new.F32A
    fac_new.F64A                  fac_new.I16A                  fac_new.I32A                  fac_new.I8A
    fac_new.MP                    fac_new.O                     fac_new.P                     fac_new.PRX
    fac_new.RGX                   fac_new.SAB                   fac_new.SF                    fac_new.SGF
    fac_new.ST                    fac_new.U16A                  fac_new.U32A                  fac_new.U8A
    fac_new.U8CA                  fac_new.WMP                   fac_new.WRF                   fac_new.WST

srch tool

    fac_new.$$abbr2cls            fac_new.$$cls2abbr            fac_new.$$cls2fabbr           fac_new.$$cls2func
    fac_new.$$fabbr2cls

LICENSE

  • ISC