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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jinju

v0.0.1

Published

Opinionated Node CLI Toolkit

Readme

Opinionated Node CLI Toolkit

npm (latest) npm (beta) GitHub Workflow Status


API

Jump to:

Celebrate

celebrate(message: string, context?: string)

Renders a celebration message, with optional context. If context is provided it is rendered dimmer than the message.

[!TIP] Much like success, it can be used as a different type of positive message, like completing the process.

Example

import { celebrate } from 'jinju';

celebrate('Complete!');

celebrate('Complete!', 'On server A');

Debug

debug(message: string)

Renders a debug message.

[!TIP] Provides additional information without distracting from the core message output.

Example

Debug is enabled by default.

import { debug } from 'jinju';

debug('Found record');

You can disable debug message by setting the config's debug value to false. In the example below the debug message will not be output.

import { config, debug } from 'jinju';

config.debug = false;

debug('Found record');

Fail

fail(message: string, context?: string)

Renders a failure message, with optional context. If context is provided it is rendered dimmer than the message.

[!TIP] Can be used to indicate a failure or error.

Example

import { fail } from 'jinju';

fail('Could not read file');

fail('Could not read file', './config.json');

Spinner

Returns a spinner instance.

[!TIP] Showing feedback during asynchronous processes.

spinner.start(message: string)

Starts the spinner with the provided message.

spinner.text

Can be used to update the spinner's message.

spinner.stop()

Stops the spinner and removes it from the output.

Note If you don't call spinner.stop(), the process will not end until explicitly exited.

Example

import { spinner } from 'jinju';

spinner.start('Running some process');

await someProcess();

spinner.text = 'Running another process';

await anotherProcess();

spinner.stop();

Success

success(message: string, context?: string)

Renders a success message, with optional context. If context is provided it is rendered dimmer than the message.

[!TIP] Can be used to indicate an action has resolved as expected.

Example

import { success } from 'jinju';

success('Connected to server');

success('Connected to server', 'https://a.server.com');

Warn

warn(message: string, context?: string)

Renders a warning message, with optional context. If context is provided it is rendered dimmer than the message.

[!TIP] Can be used to provide awareness to a non-ideal resolution.

Example

import { success } from 'jinju';

success('Connected to server');

success('Connected to server', 'https://a.server.com');

© 2025 Mike Simmonds