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

max-private-npm-package

v1.2.0

Published

A powerful utility to translate cryptic Discord API error codes into human-readable messages with an integrated terminal, logger, and professional runtime checks.

Readme

max-private-npm-package

Ein kleines Node.js Utility-Package für Discord-Projekte:

  • übersetzt häufige Discord API Error-Codes in lesbare Meldungen
  • bietet einen farbigen Logger für strukturierte Konsolenausgaben
  • enthält optional ein Terminal-Interface für laufende Prozesse
  • enthält professionelle Runtime-Checks wie bei einem Build-Tool
  • funktioniert mit CommonJS, ESM, TypeScript und Subpath-Imports

Installation

npm install max-private-npm-package

CommonJS

const { logger, discordError, runtimeChecks, terminal, startAll } = require('max-private-npm-package');

runtimeChecks.runRuntimeChecks();
discordError.init();
logger.success('Bot ist bereit.', 'BOT');

ESM

import tools, { logger, discordError, runtimeChecks, terminal, startAll } from 'max-private-npm-package';

runtimeChecks.runRuntimeChecks();
discordError.init();
logger.info('Discord Error Translator aktiv.', 'INIT');

TypeScript

import { logger, discordError } from 'max-private-npm-package';

discordError.logFriendlyError(50013, {
  message: 'Missing Permissions'
});

logger.warn('Prüfe Bot-Rechte.', 'DISCORD');

Subpath-Imports

const logger = require('max-private-npm-package/logger');
import logger from 'max-private-npm-package/logger';
import discordError from 'max-private-npm-package/discord-errors';
import runtimeChecks from 'max-private-npm-package/runtime-checks';
import terminal from 'max-private-npm-package/terminal';

API

logger

  • logger.info(message, context?)
  • logger.success(message, context?)
  • logger.warn(message, context?)
  • logger.error(message, context?)
  • logger.divider()
  • logger.getTimestamp()

discordError

  • discordError.init()
  • discordError.logFriendlyError(code, originalError?)
  • discordError.errorMap

terminal

  • terminal.initTerminal()

runtimeChecks

  • runtimeChecks.runRuntimeChecks(options?)
  • runtimeChecks.formatRuntimeReport(report)
  • runtimeChecks.printRuntimeReport(report, output?)
  • runtimeChecks.RuntimeCheckError
const { runtimeChecks } = require('max-private-npm-package');

const report = runtimeChecks.runRuntimeChecks({
  strict: false
});

if (!report.ok) {
  process.exit(1);
}

startAll()

Führt zuerst Runtime-Checks aus und startet danach Error-Translator, Terminal und Logger gemeinsam.

const { startAll } = require('max-private-npm-package');

startAll();

Unterstützte Import-Arten

| Art | Status | | --- | --- | | require(...) | unterstützt | | import ... from | unterstützt | | TypeScript Types | unterstützt | | Default Import | unterstützt | | Named Import | unterstützt | | Subpath Import | unterstützt | | Runtime Checks | unterstützt |

Entwicklung

npm test
npm run runtime:check
npm run pack:dry-run