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

itivrutaha

v3.0.0

Published

( इतिवृत्तः ) — An 👌 easy-to-use, 🛠️ configurable, Bun-first ⚡ console logger.

Downloads

33

Readme

itivrutaha is my first ever JavaScript (initially) project. It is a Bun-first (developed, tested with Bun but also works in Node) console logging module to be used in CLIs, GUI desktop apps & web servers.

Tweet me @vsnthdev, I would love to know your opinion/experience on this project 😍

🚀 Migrating from v2.x

Version 3 is a complete rewrite with several features removed, trimmed down and optimized, while modernizing the codebase and adding Bun.js support.

The v2.x.x versions can be found in the v2 branch containing the older version of itivrutaha.

⚠️ Major changes

  1. Luxon has been replaced in favor of date-format which is more lightweight.
  2. Removed automatic logs when app starts, and how long it ran when the app exists. (An additional utility will be shipped in a later version.)
  3. The verboseIdentifer and quietIdentifier config option has been removed.
  4. v3 no longer uses TypeScript classes, favors functional approach instead.
  5. Multiple scopes (previously contexts) are now support by single instance of itivrutaha unlike previous.
  6. File logging was completely removed.
  7. The :message variable has been replaced by :msg.
  8. Following variables are no longer supported :node_path, :script_path, :node_version, :v8_version, :filename, :openssl_version, :electron_version. These will be added again on request basis.

⚡️ Features

  1. Easy to customize according to your needs
  2. Flexible theming support with chalk
  3. Different log levels (ex. silent, verbose etc) (Planned)
  4. Ability to log without any ANSI characters (Planned)
  5. Support for uppercase message types (ex. INFO instead of info) (Planned)

💿 Installation

bun i itivrutaha
npm i itivrutaha # if you're using Node.js

🚴‍♂️ Quick Start

After itivrutaha has been installed, you start using it by the following way 👇

import { itivrutaha, defaultConfig } from 'itivrutaha'

const log = itivrutaha(defaultConfig)

// errors can be given directly, logs nicely
log.error(new Error('Ouch!'))

// additional data can also be given for extra context
log.note('Point to be noted', { someData: 'very useful' })

// entire thing can also be an object
log.okay({
    msg: 'Not an info message'
})

// a scope can be attached to easily identify
// which part of the application this log came from
log.success('Makes users happy', {}, 'web')

// entire thing can also be an object
log.info({
    msg: 'Nice to know something is happening',
    scope: 'web',
    extra: 'data',
    maybeAnError: new Error('Something broke') // will be printed with trace
})

// supports emoji, colors and theming
log.verbose("Always makes developer's life easy 😀")

🛠 Building

  • bun install — Installs required dependencies.
  • bun run dev — Watches for changes & runs TypeScript compiler.
  • bun run build — Freshly compiles TypeScript code.
  • npm run docs — Freshly builds by reading code and templates.

ℹ️ Note: You can run bun run examples/index.ts to test itivrutaha with the latest code.

📰 License

The itivrutaha project is released under the MIT license.

vsnth.dev  ·  YouTube @vsnthdev  ·  Twitter @vsnthdev  ·  Discord Vasanth Developer