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

@xanadude2112/lotide

v1.3.0

Published

a library of various functions

Downloads

19

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, Thomas Azran, as part of my learnings at Lighthouse Labs.

Usage

Location

https://www.npmjs.com/package/@xanadude2112/lotide?activeTab=readme

Install it:

npm install @xanadude2112/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • head(): this function is designed to retrieve the first item of an array,
  • tail(): this functions is designed to retrieve every item after the first item of an array,
  • middle(): this functions is designed to retrieve the 'center' of an array. if the array is odd, only one value will be retrieved, if the array is even, the two most center values will be retrieved,
  • assertArraysEqual(): this functions is designed to assert whether the inputed array is equal to the expected array,
  • assertEqual(): this function is given two parameters; actual and expected. it is designed to gage whether the actual parameter is equal to the expected parameter,
  • assertObjectsEqual(): this function is designed to assert if one object parameter is equal to another object parameter,
  • countLetters(): this function takes one parameter in the form of a string, and relays an object that counts the amount of time each letter in the sentence shows up,
  • countOnly(): this function takes in an object that has conditions based on whether an name string is expected to show up or not in an array. it then takes the array and relays how many times the array item appears,
  • eqArrays(): this function takes in two parameters of arrays and asserts whether they are equal to each other or not,
  • eqObjects(): this function takes in two parameters of objects and asserts whether they are equal to each other or not,
  • findKey(): when specified and passed an object value, this function retrieves the first instance of the key of said value,
  • findKeyByValue(): this function takes the value of an object as a parameter and returns its respective key,
  • flatten(): this function is designed to take simple nested arrays and print out their contents on the same level,
  • letterPositions(): this function is designed to take in a parameter in the form of a string and relay the index of a chosen letter of the string,
  • map(): this is a breakdown of the .map() function,
  • takeUntil(): thiss function takes two parameters, an array and a callback function. it is designed to relay the array until a specfied index of the array identified in the callback,
  • without(): this function takes two parameters; an array and items the user wishes to be omitted from the array. it then returns the array without the omitted item