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

@leyyo/common

v1.3.21

Published

Leyyo common library

Readme

Leyyo: Common

Common library for Leyyo framework

Import

  • npm i @leyyo/common

Usage (Runtime)

Test Cases

| Test Case | Error | Message | Method | |-----------|----------------|-----------------------------------------------------------|--------------------------------------| | 100 | DeveloperError | Invalid lifecycle stage | addLifecycleStage | | 101 | DeveloperError | Lifecycle stage could not be found [{stage}] | addLifecycleStage | | 102 | DeveloperError | Invalid lifecycle name [{stage}] | addLifecycleStage | | 103 | DeveloperError | Invalid lifecycle callback [{stage}/{name}] | addLifecycleStage | | 104 | DeveloperError | Invalid lifecycle stage | runLifecycleStage | | 105 | DeveloperError | Lifecycle stage could not be found [{stage}] | runLifecycleStage | | 106 | DeveloperError | Callback error during lifecycle order lambda [{stage}] | runLifecycleStage | | 107 | DeveloperError | Callback error during lifecycle callback [{stage}/{name}] | runLifecycleStage | | 108 | DeveloperError | Invalid lifecycle stage | setLifecycleOrderLambda | | 109 | DeveloperError | Lifecycle stage could not be found [{stage}] | setLifecycleOrderLambda | | 110 | DeveloperError | Invalid lifecycle callback [{stage}] | setLifecycleOrderLambda | | 120 | DeveloperError | Invalid component name | waitDeploy | | 121 | DeveloperError | Invalid caller callback [{name}] | waitDeploy | | 122 | DeveloperError | Callback error during caller's callback [{name}] | waitDeploy | | 123 | DeveloperError | Invalid component name | completeDeploy | | 124 | DeveloperError | Callback error during pending callback [{name}] | completeDeploy | | 130 | DeveloperError | Invalid event name | listenEvent | | 131 | DeveloperError | Invalid listener callback [{name}] | listenEvent | | 132 | DeveloperError | Invalid event name | deactivateEvent | | 133 | DeveloperError | Invalid event name | activateEvent | | 134 | DeveloperError | Invalid event name | emitEvent | | 140 | DeveloperError | Invalid repository array name | newRepoArray | | 141 | DeveloperError | Invalid repository list name | newRepoList | | 142 | DeveloperError | Invalid repository map name | newRepoMap | | 143 | DeveloperError | Invalid repository set name | newRepoSet | | 150 | DeveloperError | Invalid fqn name | setFqn | | 151 | DeveloperError | Empty fqn target [{fqn}] | setFqn | | 152 | DeveloperError | Invalid fqn target [{fqn}] | setFqn | | 220 | DeveloperError | Invalid error class | defineError | | 221 | DeveloperError | Invalid error options [{className}] | defineError | | 222 | DeveloperError | Invalid error options | defineLazyError | | 223 | DeveloperError | Invalid error name | defineLazyError | | 224 | DeveloperError | Invalid error class path [{className}] | defineLazyError | | 225 | DeveloperError | Invalid error class name | loadLazyError | | 226 | DeveloperError | Error was not defined [{className}] | loadLazyError | | 227 | DeveloperError | Callback error during loading lazy class [${name}] | loadLazyError | | 230 | DeveloperError | Invalid package name | addErrorKnownPackage | | 231 | DeveloperError | Invalid short name [{packageName}] | addErrorKnownPackage | | 232 | DeveloperError | Duplicated package name [{packageName}] | addErrorKnownPackage | | 180 | DeveloperError | Invalid enum data | defineEnum | | 181 | DeveloperError | Invalid enum options | defineEnum | | 182 | DeveloperError | Invalid enum name | defineEnum | | 183 | DeveloperError | Invalid enum load path | defineLazyEnum | | 184 | DeveloperError | Invalid enum options | defineLazyEnum | | 185 | DeveloperError | Invalid enum name | defineLazyEnum | | 186 | DeveloperError | Callback error during loading enum data | loadLazyEnum | | 187 | DeveloperError | Callback error during loading enum alternate data | loadLazyEnum | | 200 | DeveloperError | Invalid log formatter | setLogFormatter | | 201 | DeveloperError | Invalid log styler | setLogDeploymentStyler | | 202 | DeveloperError | Invalid log styler | setLogLocalStyler | | 203 | DeveloperError | Invalid context finder lambda | listen context:set-finder at logFn | | `` | DeveloperError | | |

Standards

  • Language: TS
  • Eslint: Yes
  • Static Code Analysis: Yes IntelliJ Code Inspections
  • DDD - Document Driven: Yes
  • DDD - Domain Driven: Yes
  • EDD - Exception Driven: Yes
  • TDD - Test Driven: Yes
  • LDD - Log Driven: Yes
  • 12FA - 12 Factor-App: 50% Partially

Dependencies

NO


Prepared by

  • Mustafa Yelmer
  • mustafayelmer(at)gmail.com
  • 2022-07-08