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

cumberland-audit

v1.0.1

Published

An auditing module for all your sausage auditing needs

Readme

cumberland-auditslack

Cumberland Audit is a flexible auditing solution for recording system actions. You can create an entry for any action along with a user id and query the information for reporting purposes.

npm install cumberland-audit

Dependencies

You will need a MongoDB service running on the environment you are using cumberland-audit from. Setup instructions can be found on the MongoDB website: https://docs.mongodb.com/manual/administration/install-community/ Once you have a MongoDB location, this must be passed in to cumberland-audit when initializing, along with a database name:

const dbUrl = `mongodb://localhost:27017/cumberland-test`
const dbName = 'test-database'
const cumberland = require('../cumberland')(dbUrl, dbName)

You can have multiple dbNames on the same db to allow for testing. They will be handled as separate MongoDB collections.

Usage

cumberland-audit has two functions, fill and chomp:

fill

cumberland.fill({action: 'login', user: 'test-user-1'})

Parameters:

  • action (String)(required): The system action to record
  • user (String)(required): The user identifier
  • {custom} (optional): Add as many custom variables to store as you like, to record information on the system action. For example the fields that changed in the system action.

chomp

const options = {action: 'login', query: {user: 'test-user-1'}}
cumberland.chomp(options, function(results) { ... })

Parameters: options

  • action (String)(optional): The system action to search for
  • user (String)(optional): User identifier to search for
  • {custom}: Search using the custom variables you defined in cumberland.fill() callback A function to be performed on the results once the asynchronous chomp request has completed. The data will be available as an array of objects, as specified below:
[ { _id: 57da6979c50cf73df4d75fae,
    action: 'unit-test',
    user: 'test-user',
    date: '2016/09/15',
    time: '10:27:21' },
  { _id: 57da69d9c8fd2039d0823b01,
    action: 'unit-test',
    user: 'test-user',
    date: '2016/09/15',
    time: '10:28:57' } ]