0.1.12 • Published 4 months ago

@fnet/yaml v0.1.12

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 months ago

@fnet/yaml

@fnet/yaml is a software package designed to process YAML content, either directly or from a file. The primary focus of the program is to enhance the YAML reading, writing, and manipulation processes.

Key Functionalities

The key features of @fnet/yaml are broken down into several primary operations.

  1. File Reading and Content Parsing: It reads YAML content from text and file sources. It can read YAML data from explicit file paths as well as relative paths. The package uses the js-yaml library for interpreting YAML language, and it supports both local and online YAML content. It can accurately interpret the YAML content of files and URL returns from HTTP requests.

  2. Content Processing: The package takes the YAML content and processes it using two important methods, Setter and Getter (s:: processor and g:: processor):

    • A setter (s::) updates values at specified paths in a YAML object hierarchy.
    • A getter (g::) retrieves values at specified paths in a YAML object hierarchy. It supports getting values from files or HTTP sources, as well as other parts of the same YAML structure.
  3. Error Handling: The package robustly handles errors and exceptions in both reading files and parsing content. It will notify users of inaccessible files, issues in file content parsing, and issues in fetching content from HTTP URLs.

  4. Content Dumping: After processing, it dumps the final processed YAML content using the yaml.dump method.

Result

By effectively combining these functionalities, @fnet/yaml can seamlessly read, interpret, manipulate, and write YAML content. It thereby simplifies YAML data management for end-users, enhancing their work with YAML-formatted data and configuration files.

0.1.12

4 months ago

0.1.11

6 months ago

0.1.10

7 months ago

0.1.9

7 months ago

0.1.8

7 months ago

0.1.7

7 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.3

7 months ago