motion
Version:
motion - moving development forward
77 lines (76 loc) • 2.98 kB
JSON
{
"_args": [
[
"sort-keys@https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "sort-keys@>=1.0.0 <2.0.0",
"_id": "sort-keys@1.1.1",
"_inCache": true,
"_location": "/sort-keys",
"_phantomChildren": {},
"_requested": {
"name": "sort-keys",
"raw": "sort-keys@https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"rawSpec": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/normalize-url"
],
"_resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"_shasum": "a791c26071df66c356bf5dcad9cfb57a7b2f826e",
"_shrinkwrap": null,
"_spec": "sort-keys@https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.1.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/sort-keys/issues"
},
"dependencies": {
"is-plain-obj": "^1.0.0"
},
"description": "Sort the keys of an object",
"devDependencies": {
"mocha": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/sort-keys#readme",
"keywords": [
"deep",
"deterministic",
"key",
"keys",
"obj",
"object",
"recursive",
"recursively",
"sort",
"stable"
],
"license": "MIT",
"name": "sort-keys",
"optionalDependencies": {},
"readme": "# sort-keys [](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\nvar 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: function (a, b) {\n\t\treturn -a.localeCompare(b);\n\t}\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\n*Required* \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](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/sort-keys.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.1.1"
}