JSPM

sort-pjson

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9163
  • Score
    100M100P100Q135460F
  • License MIT

sort package.json like fixpack but without messing with files

Package Exports

  • sort-pjson

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 (sort-pjson) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sort-pjson

Version CircleCI Appveyor CI Codecov Greenkeeper Known Vulnerabilities Downloads/week License

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)