0.0.3 • Published 6 months ago

@hyoml/js v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

Hyoml-JS

Hyoml JavaScript Parser and Formatter.
Supports relaxed JSON, YAML, Hyoml, and multi-format output.

Features

  • Relaxed JSON parsing (auto-fix common mistakes)
  • Relaxed YML/Hyoml parsing
  • Strict Mode validation
  • Tag and Directive visiting
  • Output formatting to JSON, YAML, TOML, XML, ENV, Markdown, HTML, SQL, Dot notation, and more
  • Load input from Local Files, HTTP URLs, AWS S3, GCS, Azure Blob
  • CLI Tools (parse, format, validate, transform, info)

Install

npm install hyoml-js

Usage

const { HyomlParser } = require('hyoml-js')
const parsed = HyomlParser.parse('{ name: "hyoml" }')
console.log(parsed)

CLI Usage

node src/cli/main.js parse examples/sample_input.hyoml

License

MIT © Ahmed Daif