0.0.1 • Published 4 years ago

@rgrove/parse-yaya v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

parse-yaya

A Yet Another Yet Another Markup Language parser for Node.js and browsers.

npm version Bundle size

Contents

Installation

npm install @rgrove/parse-yaya

Or, if you like living dangerously, you can load the minified UMD bundle in a browser via Unpkg and use the parseYaya global.

Features

Usage

const parseYaya = require('@rgrove/parse-yaya');
parseYaya('{"key": "value",/* and now, an array */"key2": ["value1", "value2",]}, // trailing comment');

The result is a JS object with the following structure:

{
  key: 'value',
  key2: [ 'value1', 'value2' ]
}

Why?

Why not?

License

ISC License