Checkout related packages
⚠ Bavary is currently not stable and heavily under development.
The API might change and all
0.0.x releases should be treated as test / preview releases.
Install via npm:
$ npm install @bavary/core
Install via yarn:
$ yarn add @bavary/core
Include directly via jsdelivr:
;// Compile definitionsconst parse = ;// Use compiled definitions to parse a stringconst parsed = ;// Logs "A" to the consoleconsole;
compile accepts as second argument a config object.
Compiling in chunks
It's possible to (re-)compile just parts of your entire code-base to speed up the process:
;const entry = ;const abc = ;const parse = ;console; // Prints 'aabbccc'
Check out the documentation to get started or jump directly into one of the examples:
- string - Parsing strings and support escaped quotes.
- hex-color - Parsing different kinds of color types in the hexadecimal format.
- number - Parsing floats and integers with optional scientific notation.