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

linqed

v1.0.8

Published

Simple javascript LINQ implementation for arrays of objects

Readme

linqed

linqed (pronounced linked), is a no frills linq library for Javascript. It boasts the following.

  • No prototype pollution
  • Simple transformation of any array into a linqed collection without impacting the rest of your arrays
  • All add-on methods are non-enumerable to help keep them from getting in your way
  • Easy to use chainable fluent syntax
  • Does not re-create functionality that already exists on native Javascript Arrays

Check out the API for details on methods and usage.

Philosophy

linqed's goal is to be lightweight, simple, and easy to use. Rather than provide an entire data layer linqued looks to add basic query and data manipulation functionality to arrays.

Linqued therefore does not attempt to meet every use case, but instead to focus on those core pieces that will be used regularly by a wide variety of projects.

With that in mind please note that some things are left out intentionally because they either do not make sense or arrays already provide them. The classic example is a count() method, while nearly every other linq implementation for nearly every language has one, arrays already have a length property that a count() method would most likely just wrap and pass back.

With that being said, I am always happy to be convinced of a new use case or some better way of handling a common problem that can or should be added.

Installation

npm install -s linqed

Basic Usage

const Linqed = require('linqed');

// This attaches the linqed interface to your new empty array
let collection = Linqed([]);

Syntax

Linqed has two types of methods, those that work on a linqed collection and return that collection altered in some way (chainable methods) and those that work on a linqed collection and return some other value as a result (final methods).

For example, the .distinct() (a chainable method) method returns a linqed collection with all duplicate members removed from it, while the .min() (a final method) function returns the smallest value of the collection.