# @florajs/ql-compiler

> Compiler for Flora QL

Latest version **6.0.1** (published 2024-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @florajs/ql-compiler
pnpm add @florajs/ql-compiler
yarn add @florajs/ql-compiler
bun add @florajs/ql-compiler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.1 |
| Published | 2024-08-13 |
| First published | 2022-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 1 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | stock3 AG |
| Maintainers | mbaumgartl, not-implemented, nicokaiser |
| Keywords | florajs |

## Links

- npm: https://www.npmjs.com/package/@florajs/ql-compiler
- Repository: https://github.com/florajs/ql-compiler
- Issues: https://github.com/florajs/ql-compiler/issues
- npm.io page: https://npm.io/package/@florajs/ql-compiler

## Dependencies (1)

- [@florajs/request-parser](https://npm.io/package/@florajs/request-parser.md) ^5.0.0

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 6.0.1 (latest) — 2024-08-13
- 6.0.0 — 2024-07-16
- 5.1.0 — 2023-08-18
- 5.0.0 — 2023-08-03
- 4.0.0 — 2022-01-04

## README

# @florajs/ql-compiler

![](https://github.com/florajs/ql-compiler/workflows/ci/badge.svg)
[![NPM version](https://img.shields.io/npm/v/@florajs/ql-compiler.svg?style=flat)](https://www.npmjs.com/package/@florajs/ql-compiler)
[![NPM downloads](https://img.shields.io/npm/dm/@florajs/ql-compiler.svg?style=flat)](https://www.npmjs.com/package/@florajs/ql-compiler)

Compiles a Flora Query Language statement into a function.

## Examples

```js
const compile = require('@florajs/ql-compiler');

// Use a Flora filter as function
const filterFn = compile.filter('id=321 AND userId=109369');
filterFn({ id: 321, userId: 109369 }) // => true
filterFn({ id: 321, userId: 109368 }) // => false

// Use a Flora select statment as function
const selectFn = compile.select('foo,bar[baz]');
selectFn({ foo: 42, bar: { baz: 23, id: 1337 }, bla: 'blubb' })
// => { foo: 42, bar: { baz: 23 } }
```

## License

[MIT](LICENSE)

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