3.0.0 • Published 2 years ago

flora-ql-compile v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

flora-ql-compile

npm.io NPM version NPM downloads

Compiles a Flora Query Language statement into a function.

Examples

const compile = require('flora-ql-compile');

// 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

3.0.0

2 years ago

2.0.4

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

7 years ago