txt-to-json
txt-to-json is a simple script that converts txt files to JSON and outputs them in the core working directory. txt-to-json allows for full customization, letting you insert your own filter functions to determine keys and values.
Installation
Install via npm: npm install txt-to-json
Usage
const txtToJson =
Example input
key1:value1key2:value2
Example output
Using line and key filters
If your keys are split by commas, and values by hyphens, use: