query
On this page

importTOML

lib.importTOML

Docs pulled from | This Revision | 17 minutes ago


Reads a TOML file.

Examples

lib.trivial.importTOML usage example

example.toml

title = "TOML Example"

[hello]
world = "foo"

[hello.bar]
foobar = true
importTOML ./example.toml
=> {
  title = "TOML Example";
  hello = {
    world = "foo";
    bar = {
      foobar = true;
    };
  };
}

Inputs

path

1. Function argument

Type

importTOML :: path -> any
(lib.trivial.importTOML)

Noogle also knows

Aliases