JSPM

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

Sort the keys of an object recursively

Package Exports

  • sort-keys-recursive

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

Readme

sort-keys-recursive

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status Donate

Sort the keys of an object recursively

Install

npm install sort-keys-recursive --save

If you want to use in the browser (powered by Browserify):

bower install sort-keys-recursive --save

Usage

var sort = require('sort-keys-recursive')

var object = {
  c: 0,
  a: {
    c: ['c', 'a', 'b'],
    a: 0,
    b: 0
  },
  b: 0
}

var output = sort(object)

console.log(output)

// {
//   a: {
//     a: 0,
//     b: 0,
//     c: ['a', 'b', 'c']
//   },
//   b: 0,
//   c: 0
// };

License

MIT © Kiko Beats