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

@dburnham1212/lotide

v1.0.1

Published

lotide library

Readme

Lotide

A mini clone of the Lodash library.

Purpose

BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.

This project was created and published by me as part of my learnings at Lighthouse Labs.

Usage

Install it:

npm install @username/lotide

Require it:

const _ = require('@username/lotide');

Call it:

const results = _.tail([1, 2, 3]) // => [2, 3]

Documentation

The following functions are currently implemented:

  • assertArraysEqual: (used for testing) Determines if two arrays are equal to one another and prints out a message if the assertion passes or fails
  • assertEqual: (used for testing) Determines if two values are equal to one another and prints out a message if the assertion passes or fails
  • assertObjectsEqual: (used for testing) Determines if two objects are equal to one another and prints out a message if the assertion passes or fails
  • countLetters: Used to count the number of times a character appears in a string and returns an object with keys for each character and their respective counts
  • countOnly: Counts the number of times a string appears in an array and returns an object with keys for each string and their respective counts
  • eqArrays: Checks if two arrays are equal. Returns true if they are and false if they are not.
  • eqObjects: Checks if two objects are equal. Returns true if they are and false if they are not.
  • findKey: Checks an object to see if the object stores a key based off of the result of comparing it against a callback function. Will return the first key that matches the callback parameters.
  • findKeyByValue: Checks an object to see if the object stores a key by comparing it to a value. If the value stored in the key matches the value we have specified return the key.
  • flatten: Will take an array and if the array is nested will return an array of where the nested elements have been added to one single unnested array in order.
  • head: Takes in an array and returns its first element. If the length of the array is 0 returns undefined.
  • letterPositions: Takes a string and returns an object with the positions of the letters in the string (ignoring spaces).
  • map: Takes an array and applies a callback function to each of the values stored within the array. It returns an array with the altered values.
  • middle: Takes in an array and returns an array with the value stored at the middle of the array for odd array lengths. For even array lengths stores the two values at the midpoint in an array and returns that.
  • tail: Takes in an array and returns the array without the first element.
  • takeUntil: Takes in an array and returns an array that stores the values in it until a certain callback functions parameters have been met.
  • without: Takes in two arrays and returns an array whose values are equal in both arrays.