
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
Filters data by using a single search string and matching its value with all the filters. Only uses Textand Number filters.
| Parameter | Type | Usage |
|---|---|---|
| data | any[] | List of objects that need to be filtered. |
| filters | Filter[] | List of filters that will be used to filter data. |
| search | string | What the user entered in the search box. |
Filters data by using the filters.
| Parameter | Type | Usage |
|---|---|---|
| data | any[] | List of objects that need to be filtered. |
| filters | Filter[] | List of filters that will be used to filter data. |
Returns all the filters that have a value.
| Parameter | Type | Usage |
|---|---|---|
| filters | Filter[] | Filters to be evaluated. |
Resets the value of the filters to their original state.
| Parameter | Type | Usage |
|---|---|---|
| filters | Filter[] | Filters to be reset. |
Restores filters from a JSON storage, converting each field to its original state.
| Parameter | Type | Usage |
|---|---|---|
| storage | string | JSON storage. |
| Field | Usage | Required |
|---|---|---|
| field | Must match the field name inside the filtered object. | ✓ |
| label | Used to show the filter's name to the user. | |
| inputType | Specifies the type of input that the user will interact with. Available types are Text, Number, Dropdown, MultiSelect, Calendar, CalendarRange and Checkbox | ✓ |
| filterType | Specifies the method that will be used to filter. | |
| value | Used to compare values with the filtered object. User input goes there. | |
| options | Used to populate a filter with options. Should only be used with Dropdown and MultiSelect. | |
| empty | Sets the empty value to be matched with when filtering using Dropdown and MultiSelect. | |
| category | Used to group fields together in a form. |
| Input Type | Associated Filter Types | Default |
|---|---|---|
Number, Calendar | Less, LessOrEqual, Equal, GreaterOrEqual, Greater. | Equal |
Checkbox | True, False. | True |
FAQs
Easily filter any list of data with ready to use functions.
We found that pg-filters 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.