Skip to main content

overview

  • a simple yaml file reader
  • re-written in typescript, migrated from nodejs to base only on deno standard libraries

dependencies

all of deno standard library.

usage

// this assumes the latest version
import { dallmo_util_yaml } from "https://deno.land/x/dallmo_util_yaml/mod.ts";

const config_file = "config.yaml";
const config_obj = await dallmo_util_yaml( config_file );
  console.log( config_obj );

test

to run test codes :

either :

run

deno task test

or :

  1. switch to the folder “test” ;
  2. run deno test --allow-read ;