Skip to content

iexitdev/term-log-modern

term-log-modern

Small structured terminal logger for JavaScript and TypeScript.

npmlog is no longer supported. This package provides quiet, level-based terminal logging with npm-style level helpers and a machine-readable event hook.

Install

npm install term-log-modern

Usage

import { createLogger } from "term-log-modern";

const log = createLogger({ level: "info" });

log.info("install", "starting");
log.warn("cache", "miss");

API

  • createLogger(options?)
  • logger.silly|verbose|info|warn|error(prefix, message, meta?)
  • logger.log(level, prefix, message, meta?)
  • logger.onLog(listener)

Migration Position

term-log-modern is an independent alternative or migration helper for projects moving away from npmlog. It is not affiliated with the original package maintainers or project.

For release context, see the local migration guide, examples, compatibility notes, source metadata, and adoption plan.

About

Small structured terminal logger with npmlog-style level helpers.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors