https://github.com/rgrove/parse-yaya
A Yet Another Yet Another Markup Language parser for Node.js and browsers.
https://github.com/rgrove/parse-yaya
javascript js json nodejs parser yaya
Last synced: 2 months ago
JSON representation
A Yet Another Yet Another Markup Language parser for Node.js and browsers.
- Host: GitHub
- URL: https://github.com/rgrove/parse-yaya
- Owner: rgrove
- License: isc
- Created: 2020-05-04T21:55:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T21:55:54.000Z (about 6 years ago)
- Last Synced: 2025-08-30T13:48:09.352Z (10 months ago)
- Topics: javascript, js, json, nodejs, parser, yaya
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# parse-yaya
A [Yet Another Yet Another Markup Language](https://github.com/beryllium/yaya) parser for Node.js and browsers.
[](https://badge.fury.io/js/%40rgrove%2Fparse-yaya)
[](https://bundlephobia.com/result?p=@rgrove/parse-yaya)
## Contents
- [Installation](#installation)
- [Features](#features)
- [Usage](#usage)
- [Why?](#why)
- [License](#license)
## Installation
```
npm install @rgrove/parse-yaya
```
Or, if you like living dangerously, you can load [the minified UMD bundle][umd]
in a browser via [Unpkg][] and use the `parseYaya` global.
[umd]:https://unpkg.com/@rgrove/parse-yaya/dist/umd/parse-yaya.min.js
[Unpkg]:https://unpkg.com/
## Features
- Parses Yaya.
- Has at least [two problems](http://regex.info/blog/2006-09-15/247).
## Usage
```js
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:
```js
{
key: 'value',
key2: [ 'value1', 'value2' ]
}
```
## Why?
Why not?
## License
[ISC License](LICENSE)