Skip to content

converts json into txt file with the given delimiter value

Notifications You must be signed in to change notification settings

Barathiraja/json2txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json2txt

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

Installation

npm install json2txt

Usage

Use to generate file:

var json2txt = require('json2txt');

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

var json = {
    foo: 'bar',
    qux: 'moo',
    poo: 123,
    stux: new Date()
}
   var options = {
        delimiter: '|',
        header: false
    }

json2txt.generateTxtFile(filePath,json,options);

About

converts json into txt file with the given delimiter value

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published