Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@nextgis/properties-filter
Advanced tools
An auxiliary library that allows filtering objects by its properties using JSON-serializable expressions
# latest stable
$ npm install --save-dev @nextgis/properties-filter
# or
$ yarn add @nextgis/properties-filter
General view of expression
[ С , [E1] , [E2] , [EN] ]
С - condition (optional). May be 'all' or 'any';
E - expression:
[key, operator, value]
gt
, lt
, ge
, le
, eq
, ne
, in
, notin
, like
, ilike
;in
and notin
:
like
and ilike
:
Place %
-character after or before key
string to determine the direction of search.
Nesting
[ [E1], ['any', [E2], [E3, E4] ], ['any', [E5], [E6] ] ] ]
Example
import { propertiesFilter, featureFilter } from '@nextgis/properties-filter';
const properties = {
place: 'Tofalaria',
area: 21,
};
propertiesFilter(properties, [['place', 'eq', 'Tofalaria']]); // true
propertiesFilter(properties, [['place', 'in', ['Tofalaria', 'Siberia']]]); // true
propertiesFilter(properties, [['place%', 'like', 'Tof']]); // true
propertiesFilter(properties, [
// 'and', // - by default
['place', 'eq', 'Tofalaria'],
['area', 'ge', 21],
]); // true
propertiesFilter(properties, [
'any',
['place', 'eq', 'Siberia'],
['area', 'gt', 10],
]); // true
Need to fix a bug or add a feature to @nextgis/properties-filter
? We provide custom development and support for this software. Contact us to discuss options!
FAQs
Filtering objects by its properties using expressions
We found that @nextgis/properties-filter 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.