0.7.1 • Published 1 year ago

@sourcelib/kv v0.7.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

@sourcelib/kv

Typescript library to tokenize, parse, inspect, analyse, reformat and do other language integrations for source engine keyvalue files.

Installation

npm install @sourcelib/kv

Usage

import { tokenize, parse } from '@sourcelib/kv';

const tokens = tokenize(`
"KV" {
    "key" "value"
    "key2" "value2"
}`);

const kvTree = parse(tokens);
kvTree.getChildren()[0].getValues()[0].getValue(); // "value"
0.3.0

1 year ago

0.7.1

1 year ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.3.3

1 year ago

0.2.0

2 years ago

0.1.0

2 years ago