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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dksladjsla/lotide

v1.0.2

Published

A collection of javascript functions for easier/faster implementation

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

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • assertArraysEqual: this function takes two arrays as input and prints assertion passed if two arrays are the same and assertion failed if not.
  • assertEqual: this function takes two arguments that are primitive type and pritns assertion passed if two arguments are the same and assertion failed if not.
  • assertObjectsEqual: this function takes two objects as input and prints assertion passed if two objects are the same and assertion failed if not.
  • countLetter: this function takes a string and returns the object that contains each letters as key and the he number of key occurrences as value.
  • countOnly: this function counts the number of the items that are passed by user and return the object that contains item as key and count as value.
  • eqArrays: this function returns true if two arrays are the same and false if not.
  • eqObjects: this function returns true if two objects are the smae and false if not.
  • findKey: this function takes an object and a function that takes an object. this function returns a key when the arugment function returns true with the object.
  • flatten: this function takes an array and unnest the array if nested.
  • head: this function takes an array and returns the first element in the array.
  • index: this exports three functions(head,tail,middle) simultaneously.
  • letterPositions: this function takes a string and returns letters with positions in an object type.
  • map: this function takes an array and function to map the array. It returns a mapped array.
  • middle: this function takes an array and returns the element in the middle index.
  • tail: this function takes an array and excludes the first element.
  • takeUntil: this function takes and array and a function and returns the array where its elements are deleted when the callback function returns false.
  • without: this function takes two arrays and return a new array that includes the elements from both first and the second arrays, but any repetitive elements are deleted.