![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Another Javascript Object Query.
Uses mongodb like query structure to execute in function
npm install ajoq
import { createFilter } from "ajoq";
interface Data {
name: string;
age: number;
// data type
}
const values: Data[] = [{ name: 'John', age: 42 }, { name: 'Jane', age: 18 }];
const filterFn = createFilter<Data>({ name: 'John', age: { $gte: 21 } });
const filtered = values.filter(filterFn); // [{ name: 'John', age: 42 }]
import { createSort } from "ajoq";
interface Data {
name: string;
age: number;
// data type
}
const values: Data[] = [{ name: 'John', age: 42 }, { name: 'Jane', age: 18 }];
const sortFn = createSort<Data>({ name: 'asc', age: -1 });
const sorted = values.toSorted(sortFn); // [{ name: 'John', age: 42 }, { name: 'Jane', age: 18 }]
The Filter
type represents a flexible and expressive way to filter and search data. It supports combining conditions with logical operators, making it suitable for complex query requirements.
$and
: Matches if all sub-conditions are true (logical AND).$or
: Matches if at least one sub-condition is true (logical OR).$nor
: Matches if none of the sub-conditions are true (logical NOR).$not
: Matches if the sub-condition is false (logical NOT).$eq
: Matches if the field equals the value.$ne
: Matches if the field does not equal the value.$gt
: Matches if the field is greater than the value.$gte
: Matches if the field is greater than or equal to the value.$lt
: Matches if the field is less than the value.$lte
: Matches if the field is less than or equal to the value.$exists
: Matches if the field exists or does not exist (true or false).$match
: Matches if the field value matches a regex or string.$nmatch
: Matches if the field value does not match a regex or string.$bits
: Matches if any bits from the field value match the specified bitmask.$nbits
: Matches if no bits from the field value match the specified bitmask.$type
: Matches if the field's type matches the specified type.$ntype
: Matches if the field's type does not match the specified type.$in
: Matches if the field value is in the specified array.$nin
: Matches if the field value is not in the specified array.$sub
: Matches if all elements of the field array are in the specified array (subset).$nsub
: Matches if the field array is not a subset of the specified array.$sup
: Matches if the field array contains all elements of the specified array (superset).$nsup
: Matches if the field array does not contain all elements of the specified array.$con
: Matches if the field array contains the specified value.$ncon
: Matches if the field array does not contain the specified value.License The MIT License Copyright (c) 2024 Ivan Zakharchanka
FAQs
Another Javascript Object Query.
The npm package ajoq receives a total of 1,115 weekly downloads. As such, ajoq popularity was classified as popular.
We found that ajoq demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.