1.1.4 • Published 2 years ago
toml-json v1.1.4
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