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

@eliza504/lotide

v1.0.1

Published

clone of lotide done by me

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

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • const head = require('./head');

  • const tail = require('./tail');

  • const middle = require('./middle');

  • const countLetters = require('./countLetters');

  • const countOnly = require('./countOnly');

  • const findKey = require('./findKey');

  • const findKeyByValue = require('./findKeyByValue');

  • const flatten = require('./flatten');

  • const letterPositions = require('./letterPositions');

  • const map = require('./map');

  • const assertArraysEqual = require('./assertArraysEqual');

  • const assertEqual = require('./assertEqual');

  • const assertObjectsEqual = require('./assertObjectsEqual');

  • const eqArrays = require('./eqArrays');

  • const eqObjects = require('./eqObjects');

  • const takeUntil = require('./takeUntil');

  • const without = require('./without');*

  • const assertArraysEqual = function(actual, expected) : function takes in two arrays and outputs whether they are equal or not

  • const assertEqual = function(actual, expected): function takes in two values and outputs if they are equal or not

  • const assertObjectsEqual = function(actual, expected): function takes in two objects and outputs whether they are equal or not

  • const countLetters = function(sentence): countLetters takes in function and outputs the number of occurences for each letter within it

  • const countOnly = function(allItems, itemsToCount): function takes in an array of items and returns a count of occurences for all the items that were called in the object

  • const eqArrays = function(a, b): function takes in two arrays and outputs whether they are equal or not

  • const eqObjects = function(object1, object2): function takes in two objects and outputs whether they are equal or not

  • const findKey = function(object, callback): function takes in an object and outputs the first key that meets the criteria of the callback function

  • const findKeyByValue = function(object, value): function takes an object and a value and outputs first key that matches the said value

  • const flatten = function(fullArray): function takes in an array that contains nested arrays and returns a flattened versions

  • const head = function(array): function returns first index of a given array

  • const letterPositions = function (sentence): function takes in a sentence and outputs and object with the positions of each letter

  • const map = function(array, callback): function takes in an array and outputs the results of each index passing through callback function

  • const middle = function(array): function that returns middle of a given array

  • const tail = function(array): function returns the last index for a given array

  • const takeUntil = function(array, callback): function that will take an array and loop through it until output matches callback function

  • const without = function(itemsArray, itemsToRemove): function takes in an array and outputs array after removing selected items