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

utilikitty

v1.0.3

Published

Utility package for javascript/typescript with many utils.

Readme

UtiliKitty

This npm package provides various useful functions to enhance your productivity while working on your projects!

Install

npm i utilikitty

AlternatingCase();

Alternates the case of characters in a string.

import { AlternatingCase } from "utilikitty";

const string = "This is soo cool!";

AlternatingCase(string); // -> tHiS Is sOo cOoL!
AlternatingCase(string, true); // -> ThIs iS SoO CoOl!

ChunkNumber();

Takes a number and breaks it down into smaller parts of a specified size.

import { ChunkNumber } from "utilikitty";

ChunkNumber(100, 50); // -> [ 50, 50 ]
ChunkNumber(400, 125); // -> [ 125, 125, 125, 25 ]
ChunkNumber(100, 23); // -> [ 23, 23, 23, 23, 8 ]

RandomElement();

Returns a random element from the provided array.

import { RandomElement } from "utilikitty";

const array = ["kitty", "cat", "kitten", "meow"];

RandomElement(array); // -> cat

RandomElements();

Returns random elements from the provided array.

import { RandomElements } from "utilikitty";

const array = ["kitty", "cat", "kitten", "meow"];

RandomElements(array); // -> [ 'kitty', 'cat', 'meow' ]

RandomFloat();

Returns a random float from the provided min and max.

import { RandomFloat } from "utilikitty";

RandomFloat(1, 5); // -> 3.1556571313461994

RandomInt();

Returns a random int from the provided min and max.

import { RandomInt } from "utilikitty";

RandomInt(1, 5); // -> 2

RangeArray();

Extracts a subset of elements from an array based on specified indices from and to

import { RangeArray } from "utilikitty";

const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

RangeArray(array, 4, 6); // -> [ 5, 6, 7 ]
RangeArray(array, 2, 7); // -> [ 3, 4, 5, 6, 7, 8 ]

RemoveDuplicates();

Removes all duplicate elements within an array, you can use the path argument for a property of an array of objects.

import { RemoveDuplicates } from "utilikitty";

const array01 = ["cat", "kitty", "cat", "cat"];
const array02 = [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 1 }, { id: 3 }];

RemoveDuplicates(array01); // -> [ 'cat', 'kitty' ]
RemoveDuplicates(array02, "id"); // -> [ { id: 1 }, { id: 2 }, { id: 3 } ]

StringifyArray();

Turns an array into a string with separators.

import { StringifyArray } from "utilikitty";

const array = ["Cat", "Kitty", "Meow"];

StringifyArray(array); // -> Cat, Kitty & Meow
StringifyArray(array, " . ", " and "); // -> Cat . Kitty and Meow

TrimArray();

Trims an array to a specified length. Appends an optional remainder message to the new array, replacing {num} with the number of elements omitted.

import { TrimArray } from "utilikitty";

const array = ["cat", "kitty", "kitten", "dog"];

TrimArray(array, 2); // -> ["cat", "kitty"]
TrimArray(array, 2, "+{num} more"); // -> ["cat", "kitty", "+2 more"]

TrimString();

Trims a string to a specified length and adds a ellipsis to the end.

import { TrimString } from "utilikitty";

const string = "The kitty is very cute!";

TrimString(string, 10); // -> The kitty ...
TrimString(string, 10, ">>>"); // -> The kitty >>>