1.0.0 • Published 4 years ago

import-toml v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

import-toml Travis CI Build Status

Import a TOML file.

NPM Badge

Install

npm install import-toml

Usage

const importToml = require("import-toml");

const data = importToml.sync("file.toml");

console.log(data.value);

API

importToml(filename)

Returns a promise that resolves with the TOML contents parsed as an object.

importToml.sync(filename)

Returns the TOML contents parsed as an object.

filename

Type: string

The file to import.