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

@upgradle/dygytallib

v1.0.2

Published

lib for extra methods

Readme

DygytalLib

A library of some basic functions, that not exist this easy way right now in JavaScript. It has Node and Pure JS implementation, they are just a bit different. let's see how to use it at pure.

<script src="@upgradle/dygytallib/pure/dygytal"> </script> 
<script> 
write('24'.reverse.toInt()+5) // 47 
</script> 

And now on node.

const methods = require('@upgradle/dygytallib/node/dygytal');
methods.write('23'.reverse);

allEqual

after selecting an array or set, you can return boolean true or false, if every one of elem are same.

let set= new Set();
set.add(1);
set.add(2);
write(set.allEqual); //false

reverse

reversing string of integer. Even the float numbers. Can be helpful at information security. You may reverse MD5 on both server and client, so it won't be easy to understan.

let int=125.39;
write(int.reverse);//39.521

replaceAll(value)

replacing all elements that equal to the given value.

let str = 'hello'
write(str.replaceAll('l','2')) //he22o

deleteAll(value)

deleting all elements that equal to the given value.

[1,1,2,1,3,1].deleteAll(1) //[2,3]

deleteIndex(index)

deleting element from array with given index. [1,2,3].deleteIndex(0)//[2,3]

deleteElementFromLeft(value)

deleting first element from left, from array with given value. [1,2,3,1].deleteElementFromLeft(1) // [2,3,1]

deleteElementFromRight(value)

deleting first element from right, from array with given value. [1,2,3,1].deleteElementFromRight(1) // [1,2,3]

elem(index)

returning the element from set with given index.

let set= new Set();
set.add(1);
set.add(2);
write(set.elem(1)); //2

write(_)

writing a value as console.log , but if the value undefiend, than printing stack trace, that's not breaking programm, but showing exact line of Undefiend. It can be used like this in Pure js

write(undefined);
// Trace: Undefiend!
//     at write (C:\Users\yukim\WebstormProjects\dygytalLib\pure\dygytal.js:68:17)
//     at Object.<anonymous> (C:\Users\yukim\WebstormProjects\dygytalLib\pure\dygytal.js:162:1)
//     at Module._compile (internal/modules/cjs/loader.js:702:30)
//     at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
//     at Module.load (internal/modules/cjs/loader.js:612:32)
//     at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
//     at Function.Module._load (internal/modules/cjs/loader.js:543:3)
//     at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
//     at startup (internal/bootstrap/node.js:238:19)
//     at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

And like this in node

require('./node_modules/dygytalLib/node/dygytal').write(undefined);

getURL()

returning current URL value. Working only for Pure, as you can't get URL of Node js.

write(getURL) //printing your curent URL

insert(index)

returning array with inserted one more value before given index.

arr.insert(1,[])
write(arr)//[ 1, [], 2 ]

toInt()

returning integer from given string. let num = '35'.toInt()+5 // 40

findFieldByName(json,fieldName)

returning a value from JSON by given name

let jason = {
    Cool:{
        Age:0,
        Sage:1
    },
    NotCool:{
        Name:'',
        Flame:'',
        Arr:[2,2,[1],{Name:'Lol'},1]
    }
};
write(findFieldByName(jason ,'Arr'));  //[ '2', '2', [ '1' ], { Name: 'Lol' }, '1' ]