JSPM

@neofork/devlogr

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q37104F
  • License MIT

A simple, maintainable TypeScript logger with emoji support, themes, listr2 task management, and multiple output formats

Package Exports

  • @neofork/devlogr
  • @neofork/devlogr/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@neofork/devlogr) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@neofork/devlogr

Because deployment tools deserve better than sad console.log()s.

devlogr demo animation

⚑ The logger for UX-friendly deployment tools ⚑
CLI-native, CI-compliant, emoji-sprinkled delight. No setup. All signal.

🎯 Built for CLI tools. Like, actually.

Most loggers are backend-first or some sad cousin of console.log. devlogr isn’t.

This is structured logging with style, made for devtools, task runners, release scripts, and CLI utilities that actually run in terminalsβ€”whether it's your local shell or your CI pipeline.

No brittle hacks. No bland output. Just focused feedback, clean visuals, and useful contextβ€”designed for the humans running your tools.


πŸš€ Quickstart

npm install @neofork/devlogr
import { createLogger } from '@neofork/devlogr';

const log = createLogger('my-cli');

log.title('πŸ”§ Setup');
log.info('Starting process');
log.success('Complete!');

log.startSpinner('Working...');
log.updateSpinnerText('Still going...');
log.completeSpinnerWithSuccess('All done!');

✨ Features That Make DevOps Swoon

  • 🎨 Looks Amazing – Styled output with color, emoji, and Unicode where supported
  • 🧠 Made for Humans – Clear, scannable messages designed for fast reading
  • πŸŒ€ Animated Spinners – Fully interactive, CI-safe feedback loops
  • βš™οΈ Zero Config – Drop-in defaults, full customization optional
  • 🧱 CLI-Native Design – Terminal-aware and CI-friendly
  • πŸ“„ JSON Mode – Structured logs when you need machine parsing
  • πŸ” Safe Logging – Handles circular refs and edge cases gracefully
  • πŸ§ͺ Fully Tested – 200+ tests across scenarios
  • πŸ™… No Visual Junk – Disables emoji, color, or Unicode when terminals can't handle them

🧩 Logging Methods

log.error('Something broke');
log.warning('This might be an issue');
log.info('FYI');
log.debug('Debugging info');
log.success('It worked!');
log.task('Running something...');
log.title('πŸš€ Deployment Phase');
log.plain('No formatting here.');

πŸ•Ή Spinner Control

log.startSpinner('Loading...');
log.updateSpinnerText('Still loading...');
log.succeedSpinner('Loaded');
log.failSpinner('Failed');
log.completeSpinnerWithSuccess('Mission accomplished');

πŸ“š Examples Directory

Want to see DevLogr in action? Check out our comprehensive examples:

πŸ‘‰ View Examples

The examples include:

  • All logging methods
  • Task sequencing and spinner chaining
  • JSON output mode
  • Environment config toggles
  • Integration with tools like listr2

Run any example with: npm run example:<name>


πŸ“– API Documentation

Complete API documentation is available at: https://neoforkdev.github.io/devlogr/

Generate Documentation Locally

npm run docs          # Generate TypeDoc documentation
npm run docs:serve    # Generate and serve documentation locally

The documentation is automatically generated and deployed:

  • Latest: Updated on every push to main β†’ /latest/
  • Versioned: Created for each git tag β†’ /v0.0.1/, etc.

βš™οΈ Environment Variables

VariableDescriptionExample
DEVLOGR_LOG_LEVELSet log leveldebug
DEVLOGR_OUTPUT_JSONStructured logstrue
DEVLOGR_SHOW_TIMESTAMPTimestampsfalse, true, iso
DEVLOGR_NO_COLORDisable colorstrue
DEVLOGR_FORCE_COLORForce colortrue
DEVLOGR_NO_EMOJINo emojistrue
DEVLOGR_NO_UNICODEASCII onlytrue
NO_COLORGlobal disable1
NO_EMOJIGlobal disable emojis1
NO_UNICODEGlobal disable Unicode1

πŸ› οΈ Development Scripts

npm run format        # Check code formatting
npm run format:fix    # Fix formatting
npm run lint          # Lint check
npm run lint:fix      # Fix linting issues
npm run check         # Run all checks
npm run fix           # Fix everything

🧠 Smart Defaults, Powerful Control

  • Terminal detection for auto-adjusted output
  • JSON-first mode disables visual effects for clean CI/CD output
  • Timestamps are optional and configurable
  • Visuals adapt for broken or minimal terminals

πŸ“œ License

MIT β€” Use it, fork it, log it.


🀝 Contribute

Pull requests welcome. Tests required. Style optional but encouraged.