Socket
Socket
Sign inDemoInstall

queryfilter

Package Overview
Dependencies
0
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    queryfilter

Create query filters, stringify them, humanize them


Version published
Maintainers
2
Install size
13.0 kB
Created

Readme

Source

QueryFilter

Build Status NPM version Dependency Status Development Dependency Status
Gittip donate button

Create query filters, stringify them, humanize them

Install

NPM

  • Use: require('queryfilter')
  • Install: npm install --save queryfilter

Browserify

  • Use: require('queryfilter')
  • Install: npm install --save queryfilter
  • CDN URL: //wzrd.in/bundle/queryfilter@0.1.0

Ender

  • Use: require('queryfilter')
  • Install: ender add queryfilter

Usage

var QueryFilter = require('queryfilter');
var queryFilter = new QueryFilter();

// whether or not we should invert this query
// boolean
queryFilter.inverse = false;

// whether or not we should exactly match the value
// boolean
queryFilter.exact = false;

// the human readable name of the field
// null/string
queryFilter.name = null;

// the key used to identify the field
// required, string
queryFilter.key = "some key";

// the data type of the field
// null/string
queryFilter.type = null;

// the operator used to compare the field with the value
// null/"bt"/"gt"/"lt"
queryFilter.operator = null;

// the value used on the field
// required, any type
queryFilter.value = "some value";

// Transformations
console.log(queryFilter.toString());
console.log(queryFilter.fromString());
console.log(queryFilter.toHumanString());

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © 2014+ Jed Watson jed@thinkmill.com.au (https://github.com/jedwatson)

Keywords

FAQs

Last updated on 27 May 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc