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

2.1.0 • Public • Published

PKL TO JSON

This package converts .pkl files to .json files using a python script

Requirements

  1. python3

Usage

const pklToJson = require('pkl-to-json')
const path = require('path')

const pklPath = path.resolve('./data.pkl')
const jsonPath = path.resolve('./data.json')

// From pkl to json
pklToJson.convert(pklPath, jsonPath);

// From json to pkl
pklToJson.reconvert(jsonPath, pklPath);

/pkl-to-json/

    Package Sidebar

    Install

    npm i pkl-to-json

    Weekly Downloads

    3

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    8.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • mkhotsevich