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

@myfunc/nest-utils

v1.0.1

Published

Nest utils by Myfunc

Readme

nest-utils

All modules are covered with tests.

Run Tests

All modules are covered with tests.

npm i
npm run test

Publishing to NPM

This package is automatically published to NPM when a new tag is pushed to GitHub.

Setup

  1. Create NPM Token:

    • Go to npmjs.com and login
    • Go to your profile → Access Tokens
    • Create a new token with "Automation" type
    • Copy the token
  2. Setup GitHub Environment "Release":

    • Go to your GitHub repository
    • Go to Settings → Environments
    • Create a new environment named "Release"
    • Add the NPM_TOKEN secret to this environment
    • Paste your NPM token as the value
  3. Publish a new version:

    # Build and test
    npm run build
    npm test
       
    # Create and push a new tag
    git tag v1.0.1
    git push origin v1.0.1

The GitHub Actions workflow will automatically:

  • Run tests
  • Build the package
  • Publish to NPM

Note: The workflow uses the "Release" environment for enhanced security and requires the NPM_TOKEN to be configured there.

Manual Publishing

If you need to publish manually:

npm run build
npm test
npm publish

Available modules

  • SystemModule - includes 3 core sharable modules:
    • StorageModule - Stable module for interacting with Redis (memory storage is supported in LocalCacheService). Fully compatible with @type-cacheble
    • CacheModule - Stable module for setup https://github.com/joshuaslate/type-cacheable decorator using “Storage module”
    • SyncModule - Mutex docs (RU) Stable module with Mutex and WaitMutex decorators that use “Storage module” for synchronization. Mutex is used for code synchronization, and guarantees that code will be executed only once at the same moment. Includes decorators: @Mutex, @WaitMutex, @IdempotencyLock, @IdempotencyRelease.
  • EosModule - For fetching data from EOS blockchain with a focus on security.
  • MyLogger - MyLogger docs (RU) Enforces logging approach in projects. Supports error parsing, request meta injections (userId/requestId/sessionId etc). Can be used with no Nest injection.
  • FeatureFlagModule - FeatureFlagModule docs (EN) Feature flag module base on Unleash library. Fully compatible with GitLab.

Utils

  • WaitAsync - Stable util for async waiting
  • Fairness - Provides utils for hashing validationg and generating random numbers and hashes according to the Provably Fair requirements. Includes Sync and Async versions of all methods.
  • JsonSerializer - JsonSerializer docs (RU) Custom serializer. Also can be used in StorageModule and CacheModule. Supports BigInt, Buffer, Decimal and Date types.