Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

@0b1.org/yaml-reader

Ultra Lean yaml reader with no external dependencies

parseyamlyml
Published9 Apr 2025
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

Yaml Parser

A minimalistic YAML parser with zero external dependencies.

Based on js-yaml by Vitaly Puzrin. Forked, heavily pruned, condensed and refactored.

Requirements

NodeJS v20 or higher.

Installing

Install from within your project, like this:

npm install 0bone/yaml-reader

Using

The file must be read into a string before calling the parser.

Example

const fs = require("node:fs");
const path = require("node:path");
const Parser = require("@0b1.org/yaml-reader/lib/parser");

const inputPath = path.join(__dirname, "./valid.yaml");
const inputData = fs.readFileSync(inputPath, "utf-8");
const result = Parser.Parse(inputData);

console.log(result);

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-lUto9hCjJUJKocgMJAmQ1Sr8DUzyfewNdZe8S6pIvI/5PqBEE+cnEnsipjEV066vVvKOiGwvfo15aFHpkZHguA==",
  "shasum": "216bd4ed54be0407aee37592125d5a83f8597c35",
  "tarball": "https://registry.npmjs.org/@0b1.org/yaml-reader/-/yaml-reader-1.0.1.tgz",
  "fileCount": 6,
  "unpackedSize": 61429,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEQCIE1vnSJqasOXZS7XwXas+6Kita+AMA43SarxW03eKUPZAiBZu3SFRap5nklkCYym9iacPM3xNTiDxIfodoXvUtqcMg=="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:04 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d85d383ddf8475458a67791015bbe96a3bcb39a05df8571d540aa4017429ba8e

Other collected versions

1.0.09 AprView all collected versions →