1.0.3 • Published 5 years ago

save-pretty-json v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

save-pretty-json

Simple module to save your json data pretty

Installation

npm install save-pretty-json ---save

Usage

    const prettyJson = require('save-pretty-json')
    
    prettyJson({
        filePath: './teste.json',
        data: {
            teste: 'data',
        },
        encoding: 'ISO-8859-1' // default is utf-8
    }).then(()=>{
        console.log('done')
    }).catch((err)=>{
        console.log(err)
    })
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago