txt2json

0.0.1 • Public • Published

txt2json

utility to convert txt file to a json array with the given delimiter.

Installation

npm install txt2json

Usage

Use to generate file:

var json2txt = require('txt2json');

var filePath='user/local/files/example.txt'

var options = {
    delimiter: '|',
    rowCount: 4
}

json2txt.txt2json(filePath,options);

Package Sidebar

Install

npm i txt2json

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • hephesthesis