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 🙏

© 2024 – Pkg Stats / Ryan Hefner

console-ultimate

v4.1.0

Published

Node-compatible console object with extra features

Downloads

80

Readme

What's this?

This is an opinionated console for Node with some default styling and additional features. The main focus is to be Node-compatible console with more pretty look and feel. There's also some additional features. Turn it on with one line and get all the benefits at once.

What's included?

  • Fully Node-compatible API. So console-ultimate can replace console globally.
  • Nicely looking log, info, warn, error. They are colored, so more distinctive in terminal. Also some unicode decorations included.
  • Better stack traces and overall error formatting. Stack trace is cleared from internal entries (console.error, console.trace).
  • Nice grouping (console.group) with visual indentation and pseudographics.
  • console.table with adequate table width, including ansi-colored things, nice borders and colors.
  • FP-friendly loggers that can passthrough value, so they can be used in pipes (.then, .map etc…).
  • All other stuff, like console.count and console.time.
  • Deprecated methods are also supported for compability (console.debug, console.dirxml).

Differences between v3 and v4

By the time of v3 the package was implemented with the help of transitional package called esm. The package, in fact, CJS, but uses this package for sugars and as an experiment with early ESM syntax.

v4 is a direct upgrade to standard ESM with the same functionality and modern dependencies.

Both versions provide export maps.

Install

npm i console-ultimate

Turn on

/* replace console instance globally */
import 'console-ultimate'

/* get instance with default options AND replace globally */
import console from 'console-ultimate'

/* get instance with default options (NOT replacing global instance) */
import console from 'console-ultimate/default'

/* upgrade global instance with certain options */
import upgrade from 'console-ultimate/upgrade'

/* upgrade */
upgrade({ stdout })

/*
  instantiate your own custom instance
  via `Console`, a Node-compatible constructor */
import Console from 'console-ultimate/Console'

let console = Console({ stdout })

console.log(console)

Things to be done

  • Better thru and partial.
  • Retrieve (get formatted string instead of writing to stream).
  • Advanced dir flags (like hidden & noinspect). (https://nodejs.org/api/util.html#util_util_inspect_object_options)
  • Table props.
  • ignoreErrors
  • debug-like API with sub-instantiating, creating sybsystem-wise consoles.
  • enable/disable instance.
  • Proxy console.
  • Browser-friendly.
  • node-inspector integration.

License

ISC, © 2024 Strider.