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 🙏

© 2026 – Pkg Stats / Ryan Hefner

termlog

v1.1.4

Published

Console log to terminal

Downloads

1

Readme

Termlog

Console log to terminal

What it does

termlog send the browser console log to your terminal

It also comes with a nodejs REPL so you can do some basic draft code

When to use it

  • While you developing your front-end app and you have to switch back and forth between IDE and browser
  • When you test app on mobile and need to check log. (See Debug on mobile)

How to use it?

There are 2 ways and it depends on your preferences

Recommended way

  1. Install the termlog binary : npm install --save-dev termlog ( you also can install globally with npm install -g termlog )
  2. Start server npx termlog or termlog if you install globally
  3. Go to the entry file of your project (I.e: app.jsx for React or main.js for Vue)
  4. Insert these two lines:
import termlog from "termlog"
termlog()
  1. You should now see log being streamed to your terminal

Note: with this approach you might want to remove two lines above in production

By default termlog will not run if it detects production mode using NODE_ENV, but you shouldn't rely on that

I don't want to add dependencies to my project

  1. Install the termlog binary : npm install -g termlog
  2. Start server termlog
  3. Go to your browser and open the console window
  4. Copy code inside index.js file without the last export line into console
  5. Enter termlog() into console
  6. You should now see log being streamed to your terminal

Note: with this approach you have to do all steps 3-6 every-time you refresh your browser tab

Advanced options

With termlog command:

  • --out path: Save log to file
  • --port port: Change server port
  • --addr addr: Change server address
  • --show levels: Select log levels to display (info | warning | error | debug). Multiple levels are seperated by ,

use .show levels while the server running to select again

With termlog package:

termlog({ host: "localhost", port: 3456 })

Debug on mobile

To be able to stream log from your app running on mobile you need to:

  • Start term log with 0.0.0.0 by running npx termlog --addr 0.0.0.0
  • Find your private IP address
    • MacOS: run ipconfig getifaddr en0 if you're on wifi and
    • Linux: run hostname -I
    • Windows: run ipconfig and find in the printed result. It should be under 192.168.x.x
  • Inside your project init tconfig with: termlog({host: "YOUR_PRIVATE_IP"})

How it works

Termlog have 2 components:

  • server.js - a websocket server to receive log message and display on terminal.
  • index.js - termlog function to override default behavior of console object by capture arguments and send to websocket server

Future release

  • [ ] Install using <script/> tag
  • [ ] (Maybe) An extension to start termlog on browser so we don't have to install dependencies
  • [ ] (If possible) Browser console REPL instead of nodejs REPL