sort-pjson
Sorts a package.json using fixpack rules but just with an object, not files.
Usage:
const sort = require('sort-pjson')
const pjson = require('./package.json')
const sorted = sort(pjson)
sort package.json like fixpack but without messing with files
Homepage npm JavaScript Download
npm install sort-pjson@1.0.1
Sorts a package.json using fixpack rules but just with an object, not files.
Usage:
const sort = require('sort-pjson')
const pjson = require('./package.json')
const sorted = sort(pjson)