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

hibearnate-logger

v1.0.6

Published

A logging package for use with hiBEARnate

Readme

hiBEARnate-logger

###hiBEARnate-logger is a supporting package for the hiBEARnate server.

For more information on hiBEARnate, you can find us on seriousbears.net or #seriousbears on quakenet.

To install:

npm install hibearnate-logger

To use the console logger:

var logger = require('hibearnate-logger');

logger.log('some text!');

hiBEARnate-logger will output a line to your console with a timestamp:

[2015-09-19 17:52:00] some text!

If you want to log information specific to a route, you can use the logRoute method. You must pass the request object, and it's best to specify a new property of the request object titled route (or we'll write "UNKNOWN" for you).

request.route = 'OnAir'; logger.routeLog(request, 'Starting');

Would yield:

[2015-09-19 17:52:00] GET OnAir: Starting

hiBEARnate-logger also provides a logging middleware:

app.use(logger.logRequest)

Each request to the system will generate a log on the console with the following information:

  • Timestamp
  • Request Method (GET, PUT, etc.)
  • Request Source IP
  • Request path (/api/something/else)

[2015-09-19 17:52:00] Main: Incoming GET request from 192.168.1.1 to /api/request

####Changelog: v1.0.6 (2015-09-22)

  • Fixed some issues with this README.md file
  • Added proper license to package.json
  • Tracked the LICENSE.txt file

v1.0.5 (2015-09-19)

  • Rearranged the order that variables from the request are logged when calling routeLog (and updated usage to actually reflect the method name)

v1.0.4 (2015-09-19)

  • It helps when you actually export the function you need to use!

v1.0.3 (2015-09-19)

  • Updates to package.json

v1.0.2 (2015-09-19)

  • Attempting to resolve an issue where the module cannot be found by renaming the js file.

v1.0.1 (2015-09-19)

  • Added a routeLog method to log info specific to messages in routes. Speculating that eventually each request will get a unique ID, logging this would be added to this method.

v1.0.0 (2015-09-19)

  • Broke logging out into a separate module installable with npm. This is an attempt to get the whole of hiBEARnate to be a little easier to maintain!