# querifyjs

> A No-SQL object query library made for javascript

Latest version **0.13.0** (published 2014-09-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install querifyjs
pnpm add querifyjs
yarn add querifyjs
bun add querifyjs
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.13.0 |
| Published | 2014-09-28 |
| First published | 2014-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | https://github.com/pflannery |
| Maintainers | pflannery |
| Keywords | query, no sql, promise |

## Links

- npm: https://www.npmjs.com/package/querifyjs
- Repository: https://github.com/pflannery/querifyjs
- Issues: https://github.com/pflannery/querifyjs/issues
- npm.io page: https://npm.io/package/querifyjs

## Dependencies (2)

- [promise](https://npm.io/package/promise.md) ^5.0.0
- [promise-extras](https://npm.io/package/promise-extras.md) ^1.3.0

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.13.0 (latest) — 2014-09-28
- 0.11.0 — 2014-09-25
- 0.9.0 — 2014-09-11
- 0.8.1 — 2014-09-09
- 0.8.0 — 2014-09-09
- 0.7.0 — 2014-09-06
- 0.6.0 — 2014-09-05
- 0.5.1 — 2014-08-12
- 0.5.0 — 2014-08-11
- 0.4.0 — 2014-08-10
- 0.3.0 — 2014-07-31
- 0.2.0 — 2014-07-23
- 0.1.1 — 2014-07-17
- 0.1.0 — 2014-07-17
- 0.0.1 — 2014-07-16

## README

# Querify JS

[![Build Status](https://secure.travis-ci.org/pflannery/querifyjs.png?branch=master)](http://travis-ci.org/pflannery/querifyjs "Check this project's build status on TravisCI")
[![NPM version](https://badge.fury.io/js/querifyjs.png)](https://npmjs.org/package/querifyjs "View this project on NPM")
[![Gittip donate button](http://img.shields.io/gittip/pflannery.png)](https://www.gittip.com/pflannery/ "Donate weekly to this project using Gittip")
[![Analytics](https://ga-beacon.appspot.com/UA-47157500-1/querifyjs/readme)](https://github.com/pflannery/querifyjs)

A No-SQL object query library made for javascript

## Documentation

[Library API](http://pflannery.github.io/querifyjs/)

## Basic Examples
```js
   var models = [
       {name: 'apple'},
       {name: 'banana'},
       {name: 'pineapple'},
       {name: 'strawberry'},
       {name: 'orange'},
       {name: 'grapefruit'}
   ];
   var query = {
       name: /apple/,      // regexp to match any names with 'apple' in them
       $or: {              // or
           name: 'banana'  // match name against 'banana'
       }
   };
```

```js
   var results = querify.sync.filter(models, query);
   // produces [{"name":"apple"},{"name":"banana"},{"name":"pineapple"}]
   
   var query = {
       name: {
           $right: 'e'     // match the last char in name that contains 'e'
       }
   };
   
   var results = querify.sync.filter(models, query);
   // produces [{"name":"apple"},{"name":"pineapple"},{"name":"orange"}]
```

```js
	// direct value queries
	
	var result = querify.sync.one("myvalue", {$equals: 'myvalue'});
```

```js
   // promise based example
   var query = {
       name: /an/          // regexp to match any names with 'an'
   };
   
   querify.promise.filter(models, query)
           .then(function(results) {
               // produces [{"name":"banana"},{"name":"orange"}]
           });
```

## Contributing
Feel free to submit ideas and issues.

---
_Source: https://npm.io/package/querifyjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
