
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
Queries for JavaScript Array manipulations.
npm install js-queries --save
or
yarn add js-queries
find - find an object from arrayimport jsq from "js-queries";
// or
import { find } from "js-queries";
// array -> { [key: string]: any }[]
// params -> { [key: string]: any }
// jsq.find(array, params)
const cars = [
{ id: 1, color: "black" },
{ id: 2, color: "white" },
{ id: 3, color: "red" },
];
const car = jsq.find(cars, { id: 2 }); // { id: 2, color: 'white' }
filter - filter array of object with object propertyimport jsq from "js-queries";
// or
import { filter } from "js-queries";
// array -> { [key: string]: any }[]
// params -> { [key: string]: any }
// jsq.find(array, params)
const cars = [
{ id: 1, color: "black" },
{ id: 2, color: "white" },
{ id: 3, color: "red" },
];
const filteredCars = jsq.filter(cars, { id: 2 }); // // [{ id: 1, color: 'black' }, { id: 3, color: 'red' }]
unique - remove duplicated elements from arrayimport jsq from "js-queries";
// or
import { unique } from "js-queries";
// array -> any[]
// jsq.unique(array)
const cars = [
{ id: 1, color: "black" },
{ id: 1, color: "black" },
{ id: 2, color: "red" },
];
const filteredCars = jsq.unique(cars); // [{ id: 1, color: 'black' }, { id: 2, color: 'red' }]
sort - sort array of object with object propertyimport jsq from "js-queries";
// or
import { sort } from "js-queries";
// array -> { [key: string]: any }[]
// options -> { key: string, orientation: 'bts' | 'stb' }
// * orientation can be only 'bts' (big to small) or 'stb' (small to big) -> default 'stb'
// jsq.sort(array, options)
const cars = [
{ id: 1, color: "black" },
{ id: 2, color: "white" },
{ id: 3, color: "red" },
];
const sortedCars = jsq.sort(cars, { key: "id", orientation: "bts" }); // [{ id: 3, color: 'red' }, { id: 2, color: 'white' }, { id: 1, color: 'black' }]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Martik Avagyan
FAQs
Queries for JavaScript Array manipulations.
We found that js-queries demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.