motion
Version:
motion - moving development forward
90 lines (89 loc) • 3.41 kB
JSON
{
"_args": [
[
"find-up@https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "find-up@>=1.0.0 <2.0.0",
"_id": "find-up@1.1.0",
"_inCache": true,
"_location": "/find-up",
"_phantomChildren": {
"pinkie-promise": "2.0.0"
},
"_requested": {
"name": "find-up",
"raw": "find-up@https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"rawSpec": "https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/read-pkg-up"
],
"_resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"_shasum": "a63b0eec4625a2902534898a5f9eec8aaed046e9",
"_shrinkwrap": null,
"_spec": "find-up@https://registry.npmjs.org/find-up/-/find-up-1.1.0.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/find-up/issues"
},
"dependencies": {
"path-exists": "^2.0.0",
"pinkie-promise": "^2.0.0"
},
"description": "Find a file by walking up parent directories",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/find-up#readme",
"keywords": [
"dir",
"directory",
"file",
"find",
"find-up",
"findup",
"folder",
"look",
"look-up",
"match",
"package",
"parent",
"parents",
"path",
"resolve",
"search",
"up",
"walk",
"walking"
],
"license": "MIT",
"name": "find-up",
"optionalDependencies": {},
"readme": "# find-up [](https://travis-ci.org/sindresorhus/find-up)\n\n> Find a file by walking up parent directories\n\n\n## Install\n\n```\n$ npm install --save find-up\n```\n\n\n## Usage\n\n```\n/\n└── Users\n └── sindresorhus\n ├── unicorn.png\n └── foo\n └── bar\n ├── baz\n └── example.js\n```\n\n```js\n// example.js\nvar findUp = require('find-up');\n\nfindUp('unicorn.png').then(function (filepath) {\n\tconsole.log(filepath);\n\t//=> '/Users/sindresorhus/unicorn.png'\n});\n```\n\n\n## API\n\n### findUp(filename, [options])\n\nReturns a promise that resolves to a filepath or `null`.\n\n### findUp.sync(filename, [options])\n\nReturns a filepath or `null`.\n\n#### filename\n\nType: `string`\n\nFilename of the file to find.\n\n#### options\n\n##### cwd\n\nType: `string` \nDefault: `process.cwd()`\n\nDirectory to start from.\n\n\n## Related\n\n- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module\n- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file\n- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of a npm package\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/find-up.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.1.0"
}