filter-lang 0.1.2
Install from the command line:
Learn more about npm packages
$ npm install @transdb-de/filter-lang@0.1.2
Install via package.json:
"@transdb-de/filter-lang": "0.1.2"
About this version
FilterLang is a domain specific language that allows users to safely and effectivley filter a database through the front-end.
Install the package with:
npm install transdb-de/filter-lang
You can now use it in your code with:
import * as filterLang from "@transdb-de/filter-lang"
FilterLang lets you define your own set of filters a user can input. It is meant to be used for administrative purposes, and front-end database managment.
User inputs are parsed into an intermediate format client-side, and compiled to a databse query server side. The query can only contain a specific set of instructions, making it a secure, indirect database access, no different than any other api query.
Where the power of FilterLang comes from, is being able to define a huge, versatile set of filters, without having to clutter your ui. It also simplifies the back-end, by providing a compiled query, instad of having to construct a custom one for every scenario.
Additionally, FilteLang provides a simple form of language server, with the liveParse
function.
It returns autocompletion suggestions, and context hightlighting, making it easy to build an intuitive input field.
See the Wiki for guides and documentation.
Details
- filter-lang
- TransDB-de
- about 3 years ago
- MIT
- 1 dependencies
Assets
- filter-lang-0.1.2-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0