motion
Version:
motion - moving development forward
97 lines (96 loc) • 4 kB
JSON
{
"_args": [
[
"read-pkg-up@https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "read-pkg-up@>=1.0.1 <2.0.0",
"_id": "read-pkg-up@1.0.1",
"_inCache": true,
"_location": "/read-pkg-up",
"_phantomChildren": {},
"_requested": {
"name": "read-pkg-up",
"raw": "read-pkg-up@https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"rawSpec": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/meow"
],
"_resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
"_shasum": "9d63c13276c065918d57f002a57f40a1b643fb02",
"_shrinkwrap": null,
"_spec": "read-pkg-up@https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.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/read-pkg-up/issues"
},
"dependencies": {
"find-up": "^1.0.0",
"read-pkg": "^1.0.0"
},
"description": "Read the closest package.json file",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/read-pkg-up#readme",
"keywords": [
"dir",
"directory",
"file",
"file",
"find",
"find-up",
"findup",
"folder",
"fs",
"graceful",
"json",
"load",
"look",
"look-up",
"match",
"package",
"package",
"parent",
"parents",
"parse",
"path",
"pkg",
"read",
"resolve",
"search",
"up",
"walk",
"walking"
],
"license": "MIT",
"name": "read-pkg-up",
"optionalDependencies": {},
"readme": "# read-pkg-up [](https://travis-ci.org/sindresorhus/read-pkg-up)\n\n> Read the closest package.json file\n\n\n## Why\n\n- [Finds the closest package.json](https://github.com/sindresorhus/find-up)\n- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)\n- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom)\n- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)\n- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)\n\n\n## Install\n\n```\n$ npm install --save read-pkg-up\n```\n\n\n## Usage\n\n```js\nvar readPkgUp = require('read-pkg-up');\n\nreadPkgUp().then(function (result) {\n\tconsole.log(result);\n\t/*\n\t{\n\t\tpkg: {\n\t\t\tname: 'awesome-package',\n\t\t\tversion: '1.0.0',\n\t\t\t...\n\t\t},\n\t\tpath: '/Users/sindresorhus/dev/awesome-package'\n\t}\n\t*/\n});\n```\n\n\n## API\n\n### readPkgUp([options])\n\nReturns a promise that resolves to a result object.\n\n### readPkgUp.sync([options])\n\nReturns a result object.\n\n#### options\n\n##### cwd\n\nType: `string` \nDefault: `.`\n\nDirectory to start looking for a package.json file.\n\n##### normalize\n\nType: `boolean` \nDefault: `true`\n\n[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.\n\n\n## Related\n\n- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file\n- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories\n- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/read-pkg-up.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.0.1"
}