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

@thiagopi/ts-utils-kit

v1.0.4

Published

TypeScript utility functions

Readme

@thiagopi/ts-utils-kit

TypeScript utility functions published as an npm package.

Install

npm install @thiagopi/ts-utils-kit

Usage

import {
  generatePassword,
  mask,
  maskCEP,
  maskCNPJ,
  maskCPF,
  maskDate,
  maskPhoneNumber,
} from "@thiagopi/ts-utils-kit";

generatePassword({ total: 20, uppercase: true, numbers: true });
maskCPF("12345678901"); // "123.456.789-01"

Development

npm install
npm test
npm run build

Releasing

This repo uses GitHub Actions to publish to npm. Workflows live in .github/workflows/.

Alpha release (pull request)

Open a PR targeting main, then leave a comment with exactly:

release-alpha

You can also use /release-alpha.

Only repository owners, members, and collaborators can trigger the workflow. Fork PRs are not supported.

The Release Alpha workflow will:

  1. Run tests and build the package from the PR head commit
  2. Publish to npm with the alpha dist-tag
  3. Post install instructions on the PR and in the Actions job summary

Alpha versions use the format {package.json version}-alpha.pr{PR number}.{run number} (for example, 1.0.0-alpha.pr42.3).

Install an alpha build:

# Specific PR alpha version (shown in the PR comment)
npm install @thiagopi/[email protected]

# Latest alpha tag
npm install @thiagopi/ts-utils-kit@alpha

Stable release (main)

When changes are merged into main, the Release workflow publishes a stable version automatically.

The workflow will:

  1. Bump the patch version when the current package.json version is already on npm (using the latest npm version as the baseline)
  2. Run tests, build, and publish to npm with the latest dist-tag
  3. Tag the merge commit and create a GitHub release

package.json on main is not updated by the release workflow so it stays compatible with branch protection. To ship a minor or major release, bump the version in a pull request before merging (for example, 1.0.01.1.0).

Install a stable release:

# Specific version
npm install @thiagopi/[email protected]

# Latest stable tag
npm install @thiagopi/ts-utils-kit@latest

GitHub setup

  1. Add an npm automation token as the repository secret NPM_TOKEN.
  2. In Settings → Actions → General, set workflow permissions to Read and write permissions so the alpha workflow can comment on PRs.
  3. Merge the workflow files to main. Comment-triggered workflows run from the default branch.

Adding a new helper with Cursor

This repo includes a Cursor skill that guides adding and exporting new utilities.

Skill: export-helper
Location: .cursor/skills/export-helper/SKILL.md

How to use it

  1. Open this project in Cursor.

  2. Ask the agent to add a helper and reference the skill. For example:

    Add a maskRG helper and export it from the package. Use the export-helper skill.

    Or:

    @export-helper add a currency formatter utility

  3. The agent will follow the skill workflow:

    • Create the helper under src/
    • Add tests (*.test.ts or *.spec.ts)
    • Export from the group barrel (if applicable) and src/index.ts
    • Run npm run build && npm test

What the skill defines

| Topic | Convention | |-------|------------| | Standalone helper | src/<name>/index.ts | | Grouped helpers | src/<group>/<name>/index.ts (e.g. src/mask/) | | Types | T prefix (TGeneratePassword) | | Imports in TS | Use .js extensions for ESM | | Public API | Explicit named exports in src/index.ts |

For copy-paste templates, see .cursor/skills/export-helper/examples.md.

Manual workflow (without Cursor)

If you prefer to add helpers yourself, follow the checklist in the skill:

  1. Implement the helper under src/
  2. Add tests next to it
  3. Re-export from the group index.ts (if part of a group like mask)
  4. Add named exports to src/index.ts
  5. Run npm run build && npm test

Scripts

| Command | Description | |---------|-------------| | npm test | Run tests | | npm run build | Build dist/ for publishing | | npm run check | Lint and format with Biome |

License

MIT