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

@boopathidev/easy-utils-ts

v1.0.1

Published

Lightweight TypeScript utility library

Readme

easy-utils-ts

A lightweight and easy-to-use TypeScript utility library with common helper functions for string, array, object, date, crypto, OTP, validation, and number operations.

Features

  • ✅ String Utilities
  • ✅ Array Utilities
  • ✅ Object Utilities
  • ✅ Multi-Dimensional Object Search
  • ✅ Date & Time Utilities
  • ✅ OTP Generator
  • ✅ MD5 Hash
  • ✅ AES Encrypt / Decrypt
  • ✅ Number to Words (Indian Format)
  • ✅ Currency Formatter
  • ✅ Email Validation
  • ✅ Mobile Validation
  • ✅ PAN Validation
  • ✅ Aadhaar Validation
  • ✅ GST Validation
  • ✅ Random ID Generator
  • ✅ UUID Generator
  • ✅ Debounce & Throttle
  • ✅ TypeScript Support

Installation

npm

npm install easy-utils-ts

Scoped Package

npm install @boopathidev/easy-utils-ts

Import

Individual Functions

import {
    capitalize,
    generateOTP,
    numberToWords
} from "easy-utils-ts";

Utils Object

import { Utils } from "easy-utils-ts";

Utils.capitalize("hello world");

String Utilities

capitalize("hello world");
// Hello world

titleCase("hello world");
// Hello World

upper("hello");
// HELLO

lower("HELLO");
// hello

firstLetter("Boopathi");
// B

initials("Boopathi Thangarasu");
// BT

Array Utilities

arrayEquals([1,2],[1,2]);

deepArrayEquals(
    [{id:1}],
    [{id:1}]
);

unique([1,2,2,3]);
// [1,2,3]

intersection(
    [1,2,3],
    [2,3,4]
);
// [2,3]

Object Utilities

getNestedValue(
    obj,
    "user.profile.name"
);

setNestedValue(
    obj,
    "user.profile.name",
    "Boopathi"
);

deepClone(obj);

Multi-Dimensional Search

findValueByKey(
    data,
    "city"
);

findByKeyValue(
    data,
    "id",
    100
);

removeByKeyValue(
    data,
    "status",
    "Deleted"
);

updateByKeyValue(
    data,
    "id",
    1,
    {
        name: "John"
    }
);

Date Utilities

formatDate(new Date());

formatDateTime(new Date());

formatTime(new Date());

isToday(new Date());

addDays(
    new Date(),
    10
);

subtractDays(
    new Date(),
    5
);

getAge(
    "1998-12-10"
);

Number Utilities

formatCurrency(
    100000
);

// ₹1,00,000.00

formatNumber(
    123456789
);

// 12,34,56,789

Number To Words

numberToWords(
    1250.50
);

// One Thousand Two Hundred Fifty Rupees and Fifty Paise Only

amountToWords(
    100000
);

// One Lakh Rupees Only

OTP Generator

generateOTP();

// 482915

generateOTP(4);

// 7294

generateOTP(
    8,
    "alphanumeric"
);

// A92XK7LQ

Crypto

MD5

md5("Admin@123");

Verify

verifyMD5(
    "Admin@123",
    hash
);

AES Encrypt

encrypt(
    "Hello World",
    "secret"
);

AES Decrypt

decrypt(
    cipher,
    "secret"
);

Validation

isEmail(
    "[email protected]"
);

isMobile(
    "9876543210"
);

isPAN(
    "ABCDE1234F"
);

isAadhaar(
    "123412341234"
);

isGST(
    "22AAAAA0000A1Z5"
);

isURL(
    "https://example.com"
);

isStrongPassword(
    "Admin@123"
);

Misc Utilities

Random ID

randomId();

// ax83md29

UUID

uuid();

Sleep

await sleep(1000);

Debounce

const save = debounce(
    () => {
        console.log("Saved");
    },
    500
);

Throttle

const scroll = throttle(
    () => {
        console.log("Scrolling");
    },
    1000
);

Example

import { Utils } from "easy-utils-ts";

const otp =
    Utils.generateOTP(6);

const hash =
    Utils.md5("Admin@123");

const amount =
    Utils.numberToWords(
        25000.75
    );

console.log(otp);
console.log(hash);
console.log(amount);

Requirements

  • Node.js >= 18
  • TypeScript >= 5

Author

Boopathi Dev

GitHub: https://github.com/boopathidev

npm: https://www.npmjs.com/~boopathidev


License

MIT License

Copyright (c) 2026 Boopathi Dev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files, to deal in the Software without restriction.