Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filter-value

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filter-value

Data engine is small data management lib for some sort and filter.

  • 2.0.2-rc.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

FILTER-VALUE

Creating new filter value

const filter = new FilterValue('name');
const filter2 = new FilterValue('name', 'value');
const filter3 = new FilterValue('name', 'value', 'type');

Updating filter value

    filter.Name = 'New Name';
    filter.Value = /New value/i;
    filter.Type = 'regex';

Removing type

    filter.removeType();

Getting values

    const name = filter.Name;
    const value = filter.Value;

Possible value types

  • boolean
  • function
  • array
  • regexp
  • date
  • string
  • number
  • range *
  • Note: range can only contains string, number or date

Static type values

  • number
  • string
  • boolean

When static type is set, it will try to parse value as this type!

WARNING

Note: Filter value using prototype changes which are dangerous.

Note: When you using regexp please use FilterValue.regexEscape('Some regular expression')

Keywords

FAQs

Package last updated on 08 Feb 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc