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

aduse

v1.0.3

Published

The library includes basic repeated usage functions.

Downloads

19

Readme

Aduse 📝

Everyday use functions.

Installation 🚀

Via npm:

$ npm install aduse

Usage

    cont aduse = require('aduse');

    var toBeCapitalized = 'hello world';
    // Capitalize String
    console.log(aduse.cap(toBeCapitalized));

OR

    const { cap } = require('aduse');

    var toBeCapitalized = 'hello world';
    // Capitalize String
    console.log(cap(toBeCapitalized));

Library Includes

unique(array)

Remove duplicate values from an array

removeindex(array,index)

Remove an object from an array

findindex(array,[comparewith,value])

Find an index of object in array

sum(array)

Sum all the values in the array

soras(array, key, boolean)

Sort an array of objects by a key with string value. Boolean for Asc & Desc

soran(array, key, boolean)

Sort an array of objects by a key with number value. Boolean for Asc & Desc

exists(array, key, value)

Checking if key contains a value in array

min(array)

Return min value from array

max(max)

Return max value from array

obj(array)

Return first object of array or convert single array to object

len(array)

Get array length

hash(length)

Generate A Random Hash String

token6()

Generate A Random 6 digit token

token4()

Generate A Random 4 digit token

replace(str, replace, by)

Replace a string in string

upper(str)

Convert the string to uppercase

lower(str)

Convert the string to lowercase

cap(str)

Capitalize the first letter of the string

capword(str)

Capitalize the first letter of each word in string

trim(str)

Trim a string

pads(str,limit)

Adding 0 to the start of the string

split(str, opt = '')

Split the string into an array

join(str,opt = '')

Join array into a string

removechar(str, opt)

Remove a character and capitalizing the first letter of the word

empty(val)

Check if string, array or object is empty or null

url(val)

Check if valid URL

email(val)

Check if valid Email

iban(val)

Check if Iban is valid