File: README.md

package info (click to toggle)
node-yamlish 0.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 88 kB
  • sloc: javascript: 212; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This is a thingie to parse the "yamlish" format used to serialize
objects in the TAP format.

It's like yaml, but just a tiny little bit smaller.

Usage:

    var yamlish = require("yamlish")
    // returns a string like:
    /*
    some:
      object:
        - full
        - of
    pretty: things
    */
    yamlish.encode({some:{object:["full", "of"]}, pretty:"things"})

    // returns the object
    yamlish.decode(someYamlishString)