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-tary-shared-basic

v1.0.3

Published

nv-tary-shared-basic ================= - nv-tary-shared-basic creat a shared-array-buffer AND a TypedArray-view - creat many-view of same shared-array-buf - parallel parser using, normally USELESS

Readme

nv-tary-shared-basic

  • nv-tary-shared-basic creat a shared-array-buffer AND a TypedArray-view
  • creat many-view of same shared-array-buf
  • for parser in worker-thread using, normally USELESS

install

  • npm install nv-tary-shared-basic

usage

example

        > var rslt = x.creat_many(128,["u8","u64","f32"])

        > rslt
        {
          buf: SharedArrayBuffer {
            [Uint8Contents]: <00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 28 more bytes>,
            byteLength: 128
          },
          view: {
            u8: Uint8Array(128) [
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0,
              ... 28 more items
            ],
            bu64: BigUint64Array(16) [
              0n, 0n, 0n, 0n, 0n, 0n,
              0n, 0n, 0n, 0n, 0n, 0n,
              0n, 0n, 0n, 0n
            ],
            f32: Float32Array(32) [
              0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0, 0, 0, 0, 0,
              0, 0, 0, 0, 0
            ]
          }
        }
        >

        rslt.view.f32[0] = 1.33333333333333333333


        > rslt
        {
          buf: SharedArrayBuffer {
            [Uint8Contents]: <ab aa aa 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 28 more bytes>,
            byteLength: 128
          },
          view: {
            u8: Uint8Array(128) [
              171, 170, 170, 63,           //========>  use this to serialize float
              0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0, 0, 0, 0, 0, 0, 0, 0, 0,
                0,   0,   0,  0,
              ... 28 more items
            ],
            bu64: BigUint64Array(16) [
              1068149419n,               //========>
              0n,
                       0n, 0n,
                       0n, 0n,
                       0n, 0n,
                       0n, 0n,
                       0n, 0n,
                       0n, 0n,
                       0n, 0n
            ],
            f32: Float32Array(32) [
              1.3333333730697632,   //========>
              0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0,
                               0, 0
            ]
          }
        }
        >

APIS

    const DFLT_CFG = ()=>({
    > x.DFLT_CFG()
    { use_float: false, signed: false, clamped: false }
    >
    
    const NAMES = [
         "u8","u8c","u16","u32",
         "bu64","u64",
         "i8","i16","i32",
         "bi64","i64",
         "f32","f64"
    ];


    
    const SAB = SharedArrayBuffer;
    const U8  = Uint8Array;
    const U8C = Uint8ClampedArray;
    const U16 = Uint16Array;
    const U32 = Uint32Array;
    const I8  = Int8Array;
    const I16 = Int16Array;
    const I32 = Int32Array;
    const F32 = Float32Array;
    const F64 = Float64Array;
    const BI64 = BigInt64Array;
    const I64  = BI64;
    const BU64 = BigUint64Array;
    const U64  = BU64;

    const _u8 = (sab) => new U8(sab);
    const u8 = (byte_sz) => {
    const _u8c = (sab) => new U8C(sab);
    const u8c = (byte_sz) => {
    const _u16 = (sab) => new U16(sab);
    const u16 = (byte_sz) => {
    const _u32 = (sab) => new U32(sab);
    const u32 = (byte_sz) => {
    const _bu64 = (sab) => new BU64(sab);
    const bu64 = (byte_sz) => {
    const _i8 = (sab) => new I8(sab);
    const i8 = (byte_sz) => {
    const _i16 = (sab) => new I16(sab);
    const i16 = (byte_sz) => {
    const _i32 = (sab) => new I32(sab);
    const i32 = (byte_sz) => {
    const _bi64 = (sab) => new BI64(sab);
    const bi64 = (byte_sz) => {
    const _f32 = (sab) => new F32(sab);
    const f32 = (byte_sz) => {
    const _f64 = (sab) => new F64(sab);
    const f64 = (byte_sz) => {
    const _$unsigned = (sab,view_sz=8,clamped=false) => {
    const $unsigned = (byte_sz,view_sz=8,clamped=false) => {
    const _$signed = (sab,view_sz=8) => {
    const $signed = (byte_sz,view_sz=8) => {
    const _$float = (sab,view_sz=64) => {
    const $float = (byte_sz,view_sz=64) => {
    const DFLT_CFG = ()=>({
    const _creat = (sab,view_sz,cfg=DFLT_CFG()) => {
    const creat = (byte_sz,view_sz,cfg=DFLT_CFG()) => {
    const parse_name_to_cfg = (name) => {
    const _creat_many = (sab,names=["u8","u64"]) => {
    const creat_many = (byte_sz,names=["u8","u64"])=> {

LICENSE

  • ISC