toml-json
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    46
    • latest

Version History

Package Sidebar

Install

npm i toml-json

Weekly Downloads

40

Version

1.1.4

License

ISC

Unpacked Size

15.9 kB

Total Files

7

Last publish

Collaborators

  • marioa