marioa5945 / toml-json

Convert TOML files to JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Convert TOML files to JSON


Languages

Language:TypeScript 100.0%