UNPKG

motion

Version:

motion - moving development forward

90 lines (89 loc) 2.85 kB
{ "_args": [ [ "path-type@https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "path-type@>=1.0.0 <2.0.0", "_id": "path-type@1.1.0", "_inCache": true, "_location": "/path-type", "_phantomChildren": {}, "_requested": { "name": "path-type", "raw": "path-type@https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "rawSpec": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "scope": null, "spec": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "type": "remote" }, "_requiredBy": [ "/read-pkg" ], "_resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", "_shasum": "59c44f7ee491da704da415da5a4070ba4f8fe441", "_shrinkwrap": null, "_spec": "path-type@https://registry.npmjs.org/path-type/-/path-type-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/path-type/issues" }, "dependencies": { "graceful-fs": "^4.1.2", "pify": "^2.0.0", "pinkie-promise": "^2.0.0" }, "description": "Check if a path is a file, directory, or symlink", "devDependencies": { "ava": "*", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/path-type#readme", "keywords": [ "check", "dir", "directory", "file", "filepath", "filesystem", "fs", "is", "link", "path", "stat", "stats", "symbolic", "symlink", "type" ], "license": "MIT", "name": "path-type", "optionalDependencies": {}, "readme": "# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type)\n\n> Check if a path is a file, directory, or symlink\n\n\n## Install\n\n```\n$ npm install --save path-type\n```\n\n\n## Usage\n\n```js\nvar pathType = require('path-type');\n\npathType.file('package.json').then(function (isFile) {\n\tconsole.log(isFile);\n\t//=> true\n})\n```\n\n\n## API\n\n### .file(path)\n### .dir(path)\n### .symlink(path)\n\nReturns a promise that resolves to a boolean of whether the path is the checked type.\n\n### .fileSync(path)\n### .dirSync(path)\n### .symlinkSync(path)\n\nReturns a boolean of whether the path is the checked type.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/path-type.git" }, "scripts": { "test": "xo && ava" }, "version": "1.1.0", "xo": { "ignores": [ "test.js" ] } }