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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@samirabanihassan/lotide

v1.0.0

Published

{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600 {\fonttbl\f0\fnil\fcharset0 Monaco;\f1\fnil\fcharset0 HelveticaNeue;} {\colortbl;\red255\green255\blue255;\red246\green246\blue239;\red29\green30\blue26;\red246\green246\blue239; \red29\green30\blue26;\r

Downloads

1

Readme

{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600 {\fonttbl\f0\fnil\fcharset0 Monaco;\f1\fnil\fcharset0 HelveticaNeue;} {\colortbl;\red255\green255\blue255;\red246\green246\blue239;\red29\green30\blue26;\red246\green246\blue239; \red29\green30\blue26;\red39\green196\blue105;} {*\expandedcolortbl;;\cssrgb\c97255\c97255\c94902;\cssrgb\c15294\c15686\c13333;\cssrgb\c97255\c97255\c94902; \cssrgb\c15294\c15686\c13333;\cssrgb\c14902\c79608\c48627;} \margl1440\margr1440\vieww28300\viewh17700\viewkind0 \deftab720 \pard\pardeftab720\sl400\partightenfactor0

\f0\fs26\fsmilli13440 \cf2 \cb3 \expnd0\expndtw0\kerning0 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 # 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 @ \fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 samirabanihassan \fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 /lotide

Require it:

const _ = require(\'91@samirabanihassan/lotide');

Call it:

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

Documentation\


The following functions are currently implemented:
\

  • function1( \fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 assertArraysEqual \fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 ): compares two arrays if they are equal\
  • function2(assertEqual): compares two inputs\
  • function3(assertObjectsEqual): \fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 compares two objects by their key \fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0
    \pard\pardeftab720\sl400\partightenfactor0

\fs26\fsmilli13440 \cf4 \cb5 \outl0\strokewidth0 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 * function3(countLetters): counts the letters in a string
\pard\pardeftab720\sl400\partightenfactor0 \cf4 \cb5 \shad\shadx0\shady-20\shadr0\shado76 \shadc0 * function3(countOnly): returns the number of iteration of an item in an array\

  • function3(eqArrays): compares two arrays\
  • function3(eqObjects): compares two objects\
  • function3(findKey): searches for an item in an object and returns its key\
  • function3(findKeyByValue): finds corresponding key with a value in an object\
  • function3(head): returns first item of an array\
  • function3(letterPositions): finds position of a letter in a string\
  • function3(map): returns an array of first letters in original array\
  • function3(middle): returns middle item(s) of an array\
  • function3(tail): returns an array'92s items except the first item\
  • function3(takeUntil): returns all items in an array until a specific item\
  • function3(without): returns a sub-array of the original array




    \pard\pardeftab720\sl400\partightenfactor0

\fs26\fsmilli13440 \cf2 \cb3 \outl0\strokewidth0 \strokec2 \shad\shadx0\shady-20\shadr0\shado76 \shadc0
\pard\pardeftab720\sl340\partightenfactor0

\f1\fs28 \cf6 \cb1 \strokec6 \shad0
}