Package Exports
- pretify-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pretify-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pretify-js
Pretifies the javascript object given as arguments.
Usage
npm install --save-dev pretify-js
Requiring the module
var p = require('pretify-js')Pretify an array or js object or combination of both.
- The object is passed as the first argument followed indending space which is optional. By default indend is by 4 spaces.
p.pretify(obj, indend);
- The object is passed as the first argument followed indending space which is optional. By default indend is by 4 spaces.
Writing the pretified object to a file.
- The pretified can be viewed from a file, which helps to views if the data is too long view in console. Also acting as an offline json beautifier.
p.toFile(obj, filename);Note: This operation overwrites any data on the file given.
- The pretified can be viewed from a file, which helps to views if the data is too long view in console. Also acting as an offline json beautifier.