UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

112 lines (111 loc) 3.7 kB
{ "_args": [ [ { "raw": "sort-keys@^2.0.0", "scope": null, "escapedName": "sort-keys", "name": "sort-keys", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/home/zkochan/src/pnpm/packages/pnpm/node_modules/normalize-url" ] ], "_from": "sort-keys@>=2.0.0 <3.0.0", "_id": "sort-keys@2.0.0", "_inCache": true, "_location": "/sort-keys", "_nodeVersion": "4.8.3", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/sort-keys-2.0.0.tgz_1497046107604_0.3528045960702002" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.11", "_phantomChildren": {}, "_requested": { "raw": "sort-keys@^2.0.0", "scope": null, "escapedName": "sort-keys", "name": "sort-keys", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/normalize-url", "/write-json-file", "/write-pkg", "/write-pkg/write-json-file" ], "_resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", "_shasum": "658535584861ec97d730d6cf41822e1f56684128", "_shrinkwrap": null, "_spec": "sort-keys@^2.0.0", "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/normalize-url", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "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": { "ava": "*", "xo": "*" }, "directories": {}, "dist": { "shasum": "658535584861ec97d730d6cf41822e1f56684128", "tarball": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "956f1cedd4f0e7f2b58ca4324f5fb21f93cb7adf", "homepage": "https://github.com/sindresorhus/sort-keys#readme", "keywords": [ "sort", "object", "keys", "obj", "key", "stable", "deterministic", "deep", "recursive", "recursively" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "sort-keys", "optionalDependencies": {}, "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", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/sort-keys.git" }, "scripts": { "test": "xo && ava" }, "version": "2.0.0" }