toml-json
Convert TOML files to JSON.
- convention over configuration
- concise yet expressive
Installation
# Locally in your project
yarn add toml-json --dev
npm install -D toml-json
Usage
import tomlJson from '../src';
let config = tomlJson({ fileUrl: './example/config.toml' });
console.log(config);
config = tomlJson({ data: 'title = "TOML Example 2"' });
console.log(config);
License
ISC