1.0.3 • Published 6 years ago

save-pretty-json v1.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 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

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago