1.0.3 • Published 7 years ago

save-pretty-json v1.0.3

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

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago