Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jevko/jevko.js

Open more actions menu

Repository files navigation

Jevko logo

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/jevko.js@v0.2.0/mod.js'

Quickstart

import {jevkoFromString} from 'https://cdn.jsdelivr.net/gh/jevko/jevko.js@v0.2.0/mod.js'

jevkoFromString(`hello [world]`) 
// -> {
//   "subjevkos": [
//     {
//       "prefix": "hello ",
//       "jevko": {
//         "subjevkos": [],
//         "suffix": "world"
//       }
//     }
//   ],
//   "suffix": ""
// }

License

MIT

Morty Proxy This is a proxified and sanitized view of the page, visit original site.