importTOML
lib.importTOML
Docs pulled from | This Revision | 4 days 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
Noogle detected
Implementation
The following is the current implementation of this function.
importTOML = path: fromTOML (builtins.readFile path);