@pob/sort-pkg

7.1.1 • 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

362

Version

7.1.1

License

ISC

Unpacked Size

14.6 kB

Total Files

6

Last publish

Collaborators

  • churpeau