UNPKG

pnpm

Version:

Fast, disk space efficient package manager

98 lines (97 loc) 6.38 kB
{ "_args": [ [ { "raw": "@nodelib/fs.stat@^1.1.2", "scope": "@nodelib", "escapedName": "@nodelib%2ffs.stat", "name": "@nodelib/fs.stat", "rawSpec": "^1.1.2", "spec": ">=1.1.2 <2.0.0", "type": "range" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/fast-glob" ] ], "_from": "@nodelib/fs.stat@^1.1.2", "_hasShrinkwrap": false, "_id": "@nodelib/fs.stat@1.1.3", "_location": "/@nodelib/fs.stat", "_nodeVersion": "11.0.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/fs.stat_1.1.3_1541179600186_0.6944771391825413" }, "_npmUser": { "name": "mrmlnc", "email": "dmalinochkin@rambler.ru" }, "_npmVersion": "6.4.1", "_phantomChildren": {}, "_requested": { "raw": "@nodelib/fs.stat@^1.1.2", "scope": "@nodelib", "escapedName": "@nodelib%2ffs.stat", "name": "@nodelib/fs.stat", "rawSpec": "^1.1.2", "spec": ">=1.1.2 <2.0.0", "type": "range" }, "_requiredBy": [ "/fast-glob" ], "_resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "_shasum": "2b5a3ab3f918cca48a8c754c08168e3f03eba61b", "_shrinkwrap": null, "_spec": "@nodelib/fs.stat@^1.1.2", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/fast-glob", "dependencies": {}, "description": "Get the status of a file with some features", "devDependencies": {}, "directories": {}, "dist": { "integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==", "shasum": "2b5a3ab3f918cca48a8c754c08168e3f03eba61b", "tarball": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz", "fileCount": 10, "unpackedSize": 8876, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3IjRCRA9TVsSAnZWagAAeOUP/AiHcc2DyKGcWqYuI451\nJb95+d+j6PSwNcuejdZetS09qLIOr3rAkfVJwdgA0RNwJFxwEwPFkuf8P3Oe\ns5QSmXIroPEoxf+4XTTgir+4H9FrRQs+DX0396vNlE17qpqi7zZyW2XdauWq\n5Bom43i3Z90MSmD8XB713OD8fvjFGdvGEdLmCkQlaSUOGA360UkQOCupec4K\nJFL/uZG9oB5gYIZMQgPJcE71rNJrTZHJBQYOs0U+jh/4Wk5WBRRX0EJ2rGsM\nFEw7+YtNbyKrRWZGz+7Eh1H3fN+nTyFtua5y6EThaYr7z1OT9iydTrhoERks\nzGOGG9Lyj03V2WPZFe54YFYhpryfHiVbQqIjV5SR0oLY5zRTIbSyyFGgQMFH\n0ir6gRV+A2PNYP6+5/fl6eCV5f1iG5jFMITnIA/kPfXoQjxuzkHyLzA8fQvR\nChxGN7hKtWsvLBNsl8PgPvNYerqzAT1VbkS+BZBUagOxzwH/47YCJIYHQRK6\nLM+zxCu13U1nl0ywAbg9JqdYGlRPQy4GqgvCurXOY/IjIFNanfvc6CB4bY8g\nHxl20tHkncAT+Wqzyvnpu1PCPFKFu5OM1D0m29aY7wuSXny9d1lOcAi9BzX8\nXiPi+zAYnLZZmQW9Yf5r0kM6IzWktc+nyO4EJpsY1CO7EgIj5LSYhCyDZ/1H\nA1kz\r\n=LqvF\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">= 6" }, "keywords": [ "NodeLib", "fs", "FileSystem", "file system", "stat" ], "license": "MIT", "main": "out/index.js", "maintainers": [ { "name": "mrmlnc", "email": "dmalinochkin@rambler.ru" } ], "name": "@nodelib/fs.stat", "optionalDependencies": {}, "readme": "# @nodelib/fs.stat\n\n> Get the status of a file with some features.\n\n## :bulb: Highlights\n\nWrapper over standard methods ([`fs.lstat`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_lstat_path_callback), [`fs.stat`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_stat_path_callback)) with some features.\n\n * :beginner: Normally follows symlinks.\n * :gear: Can safely work with broken symlinks (returns information about symlink instead of generating an error).\n\n## Install\n\n```\n$ npm install @nodelib/fs.stat\n```\n\n## Usage\n\n```js\nconst fsStat = require('@nodelib/fs.stat');\n\nfsStat.stat('path').then((stat) => {\n console.log(stat); // => fs.Stats\n});\n```\n\n## API\n\n### fsStat.stat(path, [options])\n\nReturns a [`Promise<fs.Stats>`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_class_fs_stats) for provided path.\n\n### fsStat.statSync(path, [options])\n\nReturns a [`fs.Stats`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_class_fs_stats) for provided path.\n\n### fsStat.statCallback(path, [options], callback)\n\nReturns a [`fs.Stats`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_class_fs_stats) for provided path with standard callback-style.\n\n#### path\n\n * Type: `string | Buffer | URL`\n\nThe `path` argument for [`fs.lstat`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_lstat_path_callback) or [`fs.stat`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_stat_path_callback) method.\n\n#### options\n\n * Type: `Object`\n\nSee [options](#options-1) section for more detailed information.\n\n## Options\n\n### throwErrorOnBrokenSymlinks\n\n * Type: `boolean`\n * Default: `true`\n\nThrow an error or return information about symlink, when symlink is broken. When `false`, methods will be return lstat call for broken symlinks.\n\n### followSymlinks\n\n * Type: `boolean`\n * Default: `true`\n\nBy default, the methods of this package follows symlinks. If you do not want it, set this option to `false` or use the standard method [`fs.lstat`](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_lstat_path_callback).\n\n### fs\n\n * Type: `FileSystemAdapter`\n * Default: `built-in FS methods`\n\nBy default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace each method with your own.\n\n```ts\ninterface FileSystemAdapter {\n\tlstat?: typeof fs.lstat;\n\tstat?: typeof fs.stat;\n\tlstatSync?: typeof fs.lstatSync;\n\tstatSync?: typeof fs.statSync;\n}\n```\n\n## Changelog\n\nSee the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelogs for each release version.\n\n## License\n\nThis software is released under the terms of the MIT license.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat" }, "scripts": { "build": "npm run clean && npm run lint && npm run compile && npm test", "clean": "rimraf out", "compile": "tsc -b .", "compile:watch": "tsc -p . --watch --sourceMap", "lint": "tslint \"src/**/*.ts\" -p . -t stylish", "test": "mocha \"out/**/*.spec.js\" -s 0", "watch": "npm run clean && npm run compile:watch" }, "typings": "out/index.d.ts", "version": "1.1.3" }