@jevko-org/jevko.js
v0.2.1
Published
Implementation of Jevko in JavaScript.
Downloads
7
Maintainers
Readme
jevko.js
Implementation of Jevko in JavaScript.
Includes a Jevko parser/decoder (jevkoFromString
) and a Jevko stringifier/encoder (jevkoToString
).
Installation
Node.js
An npm package is available:
npm install @jevko-org/jevko.js
Deno and the browser
Import from jsDelivr:
import {jevkoFromString} from 'https://cdn.jsdelivr.net/gh/jevko/[email protected]/mod.js'
Quickstart
import {jevkoFromString} from 'https://cdn.jsdelivr.net/gh/jevko/[email protected]/mod.js'
jevkoFromString(`hello [world]`)
// -> {
// "subjevkos": [
// {
// "prefix": "hello ",
// "jevko": {
// "subjevkos": [],
// "suffix": "world"
// }
// }
// ],
// "suffix": ""
// }