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

@mxrosenthal/lotide

v1.0.1

Published

Mini clone of the lodash library. Created in the first week of Lighthouse Labs bootcamp.

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 @mxrosenthal/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • head(...): Takes in an array of anylength and returns the value in the 0th indicie.

  • tail(...): Takes in an array and returns the same array without the 0th indicie.

  • middle(...): Middle returns an array containing the value at the center of the given array. Should the given array be of even length, the returned array contains the two values which sit next to the center.

  • without(...): Without takes in two arguments, an array and what to leave out and returns the array ommiting what should be excluded.

  • takeUntil(...): Function gets passed an array and a callback function. takeUntil loops through the array from the start and pushes every value onto the returned array. If a value in the passed array triggers false in the callback then the loop exits and returns the array including all values up to but not included the stopping value.

  • map(...): Function gets passed an array and a callback function. takeUntil loops through the array from the start and transforms each value according to the callback function and returns an array of transformed values.

  • letterPositions(...): As the function loops through the passed string, it updates an object which gets a key for each unique letter in the string. Each key is assigned an array which get pushed the indicie of every occurence of that letter.

  • flatten(...): Iterates through a series of nested arrays and returns a 1D array with every value.

  • findKeyByValue(...): Gets passed an object and a value and returns the first key associated with that value.

  • findKey(...): An object and a callback function are passed in. The function loops through the object keys and returns the first key which satisfies the callback function.

  • eqObjects(...): 2 objects are passed in and the function asserts whether all key:value pairs match and returns true if that is the case, false otherwise.

  • eqArrays(...): 2 arrays are passed in and the function asserts whether all indicies match and returns true if that is the case, false otherwise.

  • countOnly(...): Pass in an array of strings and an object which specifies which strings to count. Example inputs: countOnly(firstNames, {'Jason': true, 'Karima': true, 'Fang': true}); The function returns an object with each true name as a key with a value equal to the number of time that name occured in a list of 'firstNames' in this case.

  • countLetters(...): Works similar to countOnly(), only this function gets passed a string. An object is returned where each key is a unique letter in the string and the associated value represents the number of occurrences of that letter in the string.