
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A lightweight functional JavaScript utility library inspired by Ramda, Lodash, and FP principles.
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.
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.
pipe() and compose()Maybe and Resultnpm install nejquery
Or add manually:
<script src="path/to/nejquery.js"></script>
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]
nejQuery is organized into the following sections:
Full documentation is available in nejquery_docs.md
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.
All functions are documented with descriptions, examples, and implementations in nejquery_docs.md
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.
MIT
FAQs
A lightweight functional JavaScript utility library inspired by Ramda, Lodash, and FP principles.
The npm package nejquery receives a total of 70 weekly downloads. As such, nejquery popularity was classified as not popular.
We found that nejquery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.