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

bthis-handle-it-lite

v1.0.0

Published

Simple error handling package.

Readme

handle-it-lite ( error handling package )

A simple error catching an handling application. On error application will log an save in a error-log folder, error messages formatted in the date and time of error.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

For development environment only

Prerequisites

What dependences you need to install the software and how to install them as followed for MacOS

  1. NodeJS - As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.
    • Learn more : https://nodejs.org/en/about/
  2. Npm - npm makes it easy for JavaScript developers to share and reuse code, and makes it easy to update the code that you’re sharing, so you can build amazing things.
    • Learn more : https://www.npmjs.com/get-npm
  3. Homebrew - Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
    • Learn more - https://brew.sh
  • Recommended install with brew.
    • past the following into your Terminal
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install nodeJS & npm with brew : past the following into your terminal

$ brew install node
  • After install is complete check install using the following in your terminal.
    For node - node -v this will print out a version number like this v10.6.0.
    Now do the same for npm as followed npm -v output will look something like this 6.2.0.

To learn more please visit - node & npm install.


Installing

A step by step series of examples that tell you how to get a development env running

  1. Step one
    In your project root dir ('./') use the following command in your terminal.
$ npm i bthis-handle-it-lite --save-dev

End with an example of getting some data out of the system or using it for a little demo .

Example of usage.

  1. Example One.
var handleErr = require('handle-it-lite');

var error = handleErr.error('User defined error message.', errStack);

console.error(error);
// === Output === //
// User defined error message. Please check error logs for more details, "./error-logs/MM-DD-YYYY.log"
  1. Example Two.
var handleErr = require('handle-it-lite');

var error = (errorMessage, errStack) => {
  return handleErr.error(errorMessage, errStack);
}

console.error(error('User defined error message.', errStack));
// === Output === //
// User defined error message. Please check error logs for more details, "./error-logs/MM-DD-YYYY.log"
  1. Example three.
const handleIt = require('./handle-it');

var err = {
  readWrite: 'File corrupt or unable to save file.',
  notFound: 404 + ' Not Found.',
  standard: 'Error :  please see log file.'
};
var error = ((errMessage, stackTrace) => {
      return handleIt.error(errMessage, stackTrace);
});

error(err.notFound, 'stackTrace');
// === Output === //
// 404 Not Found. --> Please check error logs for more details, "./error-logs/7-17-2018.log"

Syntax

| Option | Description | | ------ | ----------- | | errMessage | String | | errStack | Default error stack || String |


All error messages will be logged in project root dir ('./') called 'error-logs/mm-dd-yyyy.log'
Full path will look like : './error-logs/7-20/2018.log'


Deployment

This product is for development testing only.


Built With

NodeJS - An asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications.

FS - Node.js as a File Server. The Node.js file system module allows you to work with the file system on your computer.


Authors


License

MIT

This project is licensed under the MIT License - see the LICENSE.md file for details.
Yay Free software!