@pob/sort-pkg

7.1.0 • Public • Published

@pob/sort-pkg

sort package.json

Install

npm install --save @pob/sort-pkg

Usage

const fs = require('fs');
const sortPkg = require('@pob/sort-pkg');

const pkg = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
sortPkg(pkg);
fs.writeFileSync(JSON.stringify(pkg, null, 2), pkg);

Also see

Readme

Keywords

none

Package Sidebar

Install

npm i @pob/sort-pkg

Weekly Downloads

348

Version

7.1.0

License

ISC

Unpacked Size

14.4 kB

Total Files

6

Last publish

Collaborators

  • churpeau