1.0.4 • Published 9 years ago

json2txt v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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);

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago