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

nejquery

v5.5.13

Published

A lightweight functional JavaScript utility library inspired by Ramda, Lodash, and FP principles.

Readme

nejQuery

npm version license minified size

nejQuery is a lightweight, functional JavaScript utility library — inspired by Ramda, Lodash, and FP principles — with a focus on data-last, curried, and composable functions. It offers a rich set of helpers for arrays, strings, numbers, objects, predicates, ADTs, and more.

It's like Ramda with fewer gotchas, Lodash with less weight, and jQuery with... well, no jQuery.


🙃 Why not just use Ramda or Lodash?

Honestly? You should. They're battle-tested, community-loved, and full-featured.

But if you've ever screamed "why is this curried nonsense so weird" or thought Lodash was a bit... much — welcome to nejQuery, the utility library your inner minimalist didn’t know it needed.


✨ Features

  • Data-last, curried function signatures
  • Immutable and side-effect-aware utilities
  • Composable with pipe() and compose()
  • Includes support for custom ADTs like Maybe and Result
  • Written in plain JavaScript (no build step required)

📦 Installation

npm install nejquery

Or add manually:

<script src="path/to/nejquery.js"></script>

🔧 Usage

Instead of writing imperative code like this:

const nums = [1, 2, 3, 4];
const result = [];

for (let i = 0; i < nums.length; i++) {
  const x = nums[i];
  if (x % 2 === 1) {
    result.push(x + 1);
  }
}

console.log(result); // [2, 4]

...you can write code declaratively like this:

import { pipe, map, filter, add } from 'nejquery'

const nums = [1, 2, 3, 4]

const isOdd = x => x % 2 === 1

// Partially applied functions
const add1 = add(1)
const filterIsOdd = filter(isOdd)
const mapIncrement = map(add1)

// Using Pipe for function composition
const incrementOdds = pipe(filterIsOdd, mapIncrement)

console.log(incrementOdds(nums)) // => [2, 4]

🧰 Categories

nejQuery is organized into the following sections:

Full documentation is available in nejquery_docs.md


🧪 ADT Support

Use createADT to build expressive data structures:

const Vehicle = createADT({
  Car: ['make', 'model'],
  Bicycle: ['type'],
  Truck: ['make', 'payloadCapacity']
})

const myVehicle = Vehicle.Car('Toyota', 'Camry')

match(myVehicle, {
  Car: ({make, model}) => console.log(`Car: ${make} ${model}`),
  Bicycle: ({type}) => console.log(`Bicycle: ${type}`),
  Truck: ({make, payloadCapacity}) => console.log(`Truck: ${make}, Payload: ${payloadCapacity}kg`)
})

Includes built-in ADTs: Maybe, Result and matching helpers.


📄 Documentation

All functions are documented with descriptions, examples, and implementations in nejquery_docs.md


🧠 Philosophy

  • Keep functions small and pure
  • Prioritize readability and composability
  • Never mutate inputs
  • Empower functional programming in everyday JavaScript

📣 Contributing

Got a function to propose? Open a PR or an issue — contributions are welcome!


Disclaimer: nejQuery is not affiliated with or endorsed by the jQuery Foundation or OpenJS Foundation.
Plus, I have great respect for jQuery. My grandfather used to use it.


📜 License

MIT