JSPM

@hyoml/js

0.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q25006F
    • License MIT

    Flexible relaxed JSON/YAML/Hyoml parser and formatter

    Package Exports

    • @hyoml/js
    • @hyoml/js/src/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hyoml/js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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