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

@polgubau/fuzzy

v1.0.4

Published

A small and lightweight fuzzy-finder for JavaScript and TypeScript.

Downloads

13

Readme

Branches Functions Lines Statements Coverage total

Last commit Last Update Version License Downloads Checked with Biome

@polgubau/utils

A collection of modern typescript utilities.

📦 Installation

Install the package via npm or pnpm:

npm install @polgubau/utils
# or
pnpm add @polgubau/utils

What and why

Over the past few years, TypeScript has become almost my second mother tongue after Spanish.
I kept noticing how often I was rewriting the same utilities "debounce", "throttle", or "copy to clipboard" across different projects. Instead of reinventing the wheel every time, I decided to build a small library with the utilities I use the most in my daily work.

@polgubau/utils is a lightweight utility library designed to simplify common JavaScript and TypeScript tasks. It's modular, framework-agnostic, tree-shakable, and optimized for performance.

What this is NOT ⚠️

  • A catch-all library that solves every problem.
  • A replacement for Lodash or Underscore.
  • A package that will unnecessarily inflate your bundle size.

What this IS ✅

  • A collection of small, focused utility functions.
  • Modular, tree-shakable and lightweight both for CJS and ESM.
  • Designed to be simple, efficient, and easy to use.
  • Fully typed, with TypeScript definitions included.

Installation

Install the library using your package manager of choice:

pnpm add @polgubau/utils

Usage

Import the utilities you need from the package:

import { copyToClipboard } from "@polgubau/utils";

For even better optimization, you can import specific modules or functions as needed:

import { copyToClipboard } from "@polgubau/utils/functions";
import { shuffle } from "@polgubau/utils/arrays";

Available Modules

  • Storage: Utilities for working with localStorage and sessionStorage.
  • Accessibility: Helpers to improve web accessibility.
  • Arrays: Functions to manipulate arrays efficiently.
  • Comparators: Utility functions for sorting and comparing data.
  • Functions: Higher-order functions and utility methods.
  • Numbers: Mathematical and number-related utilities.
  • Objects: Object manipulation and transformation helpers.
  • Parsers: Functions for parsing different types of data as JSON.
  • Texts: String and text processing utilities.

Example

Using the arrays module:

import { limitArray } from "@polgubau/utils/arrays"; 
const { limitedArray } = limitArray([1, 2, 3, 4, 5]); 
console.log(limitedArray); // [1, 2]

TypeScript Support

As it should always be, this library includes full TypeScript support with type definitions included.

🛠 Development

Building the project

The easiest way to work with the project monorepo is to run

pnpm dev

in the root directory. This will start a watch build for the package and start a local server to preview the documentation page.

📜 License

This project is licensed under the MIT License.


Made with ❤️ by Pol Gubau Amores