{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["sort","object","keys","obj","key","stable","deterministic","deep","recursive","recursively"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Sort the keys of an object","readme":"# sort-keys [![Build Status](https://travis-ci.org/sindresorhus/sort-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/sort-keys)\n\n> Sort the keys of an object\n\nUseful to get a deterministically ordered object, as the order of keys can vary between engines.\n\n\n## Install\n\n```\n$ npm install --save sort-keys\n```\n\n\n## Usage\n\n```js\nconst sortKeys = require('sort-keys');\n\nsortKeys({c: 0, a: 0, b: 0});\n//=> {a: 0, b: 0, c: 0}\n\nsortKeys({b: {b: 0, a: 0}, a: 0}, {deep: true});\n//=> {a: 0, b: {a: 0, b: 0}}\n\nsortKeys({c: 0, a: 0, b: 0}, {\n\tcompare: (a, b) => -a.localeCompare(b)\n});\n//=> {c: 0, b: 0, a: 0}\n```\n\n\n## API\n\n### sortKeys(input, [options])\n\nReturns a new object with sorted keys.\n\n#### input\n\nType: `Object`\n\n#### options\n\n##### deep\n\nType: `boolean`\n\nRecursively sort keys.\n\n##### compare\n\nType: `Function`\n\n[Compare function.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/sort-keys.git"},"users":{"leesei":true,"456wyc":true,"rocket0191":true,"quafoo":true},"bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"license":"MIT","versions":{"0.1.0":{"name":"sort-keys","version":"0.1.0","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/sort-keys"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","keys","key","sort"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys","_id":"sort-keys@0.1.0","_shasum":"aaae2d5563d6b8cf914215e9f65b7aea30cab469","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"aaae2d5563d6b8cf914215e9f65b7aea30cab469","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-0.1.0.tgz"},"directories":{}},"1.0.0":{"name":"sort-keys","version":"1.0.0","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/sort-keys"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","keys","key","sort"],"devDependencies":{"mocha":"*"},"gitHead":"645a409d4f48cf7df2a270d33189c76cd0144117","bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys","_id":"sort-keys@1.0.0","_shasum":"96d8a4314dc24728b66842a6bbb38759c1ca520f","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"96d8a4314dc24728b66842a6bbb38759c1ca520f","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"sort-keys","version":"1.1.0","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/sort-keys.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","keys","key","sort","stable","deterministic","deep","recursive","recursively"],"dependencies":{"is-obj":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"6d3a30b67e1b34c2f639711b5892909e58220e9c","bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys#readme","_id":"sort-keys@1.1.0","_shasum":"ef24501898b1abf450c0344c95710cc354f2901e","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ef24501898b1abf450c0344c95710cc354f2901e","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.1.1":{"name":"sort-keys","version":"1.1.1","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/sort-keys"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["object","obj","keys","key","sort","stable","deterministic","deep","recursive","recursively"],"dependencies":{"is-plain-obj":"^1.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"593116b1fa2f9a4acb76ca49d452050450226d1d","bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys","_id":"sort-keys@1.1.1","_shasum":"a791c26071df66c356bf5dcad9cfb57a7b2f826e","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a791c26071df66c356bf5dcad9cfb57a7b2f826e","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-1.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.1.2":{"name":"sort-keys","version":"1.1.2","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/sort-keys.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["sort","object","keys","obj","key","stable","deterministic","deep","recursive","recursively"],"dependencies":{"is-plain-obj":"^1.0.0"},"devDependencies":{"mocha":"*","xo":"*"},"gitHead":"daad509046075f30586f295eefa36bab18384eae","bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys#readme","_id":"sort-keys@1.1.2","_shasum":"441b6d4d346798f1b4e49e8920adfba0e543f9ad","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"441b6d4d346798f1b4e49e8920adfba0e543f9ad","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-1.1.2.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sort-keys-1.1.2.tgz_1463546673008_0.6780793990474194"},"directories":{}},"2.0.0":{"name":"sort-keys","version":"2.0.0","description":"Sort the keys of an object","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/sort-keys.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["sort","object","keys","obj","key","stable","deterministic","deep","recursive","recursively"],"dependencies":{"is-plain-obj":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"956f1cedd4f0e7f2b58ca4324f5fb21f93cb7adf","bugs":{"url":"https://github.com/sindresorhus/sort-keys/issues"},"homepage":"https://github.com/sindresorhus/sort-keys#readme","_id":"sort-keys@2.0.0","_shasum":"658535584861ec97d730d6cf41822e1f56684128","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"658535584861ec97d730d6cf41822e1f56684128","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/sort-keys/-/sort-keys-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort-keys-2.0.0.tgz_1497046107604_0.3528045960702002"},"directories":{}}},"name":"sort-keys","time":{"modified":"2017-07-26T14:40:42.104Z","created":"2014-06-28T13:20:39.025Z","0.1.0":"2014-06-28T13:20:39.025Z","1.0.0":"2014-08-13T13:26:26.900Z","1.1.0":"2015-07-11T13:08:57.311Z","1.1.1":"2015-07-23T13:49:59.229Z","1.1.2":"2016-05-18T04:44:33.631Z","2.0.0":"2017-06-09T22:08:28.583Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/sort-keys#readme"}