{ "_id": "isexe", "_rev": "6-98e67785e55d67f61bdcd1e5c6074df2", "name": "isexe", "description": "Minimal module to check if a file is executable.", "dist-tags": { "latest": "2.0.0" }, "versions": { "1.0.0": { "name": "isexe", "version": "1.0.0", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^5.0.1" }, "scripts": { "test": "tap test/*.js --cov" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "gitHead": "d1c8749b748c5ed8bbd16cccd2ef19236b9e673b", "_id": "isexe@1.0.0", "_shasum": "9aa37a1d11d27b523bec4f8791b72af1ead44ee3", "_from": ".", "_npmVersion": "2.14.15", "_nodeVersion": "4.0.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "9aa37a1d11d27b523bec4f8791b72af1ead44ee3", "tarball": "https://registry.npmjs.org/isexe/-/isexe-1.0.0.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ] }, "1.0.1": { "name": "isexe", "version": "1.0.1", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^5.0.1" }, "scripts": { "test": "tap test/*.js --cov" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "keywords": [], "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme", "gitHead": "111ec9c0a0ec7ed53073c1893db9745ed8d41758", "_id": "isexe@1.0.1", "_shasum": "5db010ed38a649d12d5faf9884b3474002e66a65", "_from": ".", "_npmVersion": "2.14.15", "_nodeVersion": "4.0.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "5db010ed38a649d12d5faf9884b3474002e66a65", "tarball": "https://registry.npmjs.org/isexe/-/isexe-1.0.1.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ] }, "1.1.0": { "name": "isexe", "version": "1.1.0", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^5.1.2" }, "scripts": { "test": "tap test/*.js --branches=100 --statements=100 --functions=100 --lines=100" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "keywords": [], "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme", "gitHead": "5cadd61b64338cdd49249720c40fff60deedd051", "_id": "isexe@1.1.0", "_shasum": "3cdbafc1a3b16b11290ce4e9da58c781dc368931", "_from": ".", "_npmVersion": "2.14.15", "_nodeVersion": "4.0.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "3cdbafc1a3b16b11290ce4e9da58c781dc368931", "tarball": "https://registry.npmjs.org/isexe/-/isexe-1.1.0.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ] }, "1.1.1": { "name": "isexe", "version": "1.1.1", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^5.1.2" }, "scripts": { "test": "tap test/*.js --branches=100 --statements=100 --functions=100 --lines=100" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "keywords": [], "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme", "gitHead": "af83031caed58654ad9d20b98eb710d383618ad7", "_id": "isexe@1.1.1", "_shasum": "f0d4793ed2fb5c46bfdeab760bbb965f4485a66c", "_from": ".", "_npmVersion": "2.14.15", "_nodeVersion": "4.0.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "f0d4793ed2fb5c46bfdeab760bbb965f4485a66c", "tarball": "https://registry.npmjs.org/isexe/-/isexe-1.1.1.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ] }, "1.1.2": { "name": "isexe", "version": "1.1.2", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^5.1.2" }, "scripts": { "test": "tap test/*.js --branches=100 --statements=100 --functions=100 --lines=100" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "keywords": [], "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme", "gitHead": "1882eed72c2ba152f4dd1336d857b0755ae306d9", "_id": "isexe@1.1.2", "_shasum": "36f3e22e60750920f5e7241a476a8c6a42275ad0", "_from": ".", "_npmVersion": "3.7.0", "_nodeVersion": "4.0.0", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "36f3e22e60750920f5e7241a476a8c6a42275ad0", "tarball": "https://registry.npmjs.org/isexe/-/isexe-1.1.2.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ], "_npmOperationalInternal": { "host": "packages-9-west.internal.npmjs.com", "tmp": "tmp/isexe-1.1.2.tgz_1454992795963_0.7608721863944083" } }, "2.0.0": { "name": "isexe", "version": "2.0.0", "description": "Minimal module to check if a file is executable.", "main": "index.js", "directories": { "test": "test" }, "devDependencies": { "mkdirp": "^0.5.1", "rimraf": "^2.5.0", "tap": "^10.3.0" }, "scripts": { "test": "tap test/*.js --100", "preversion": "npm test", "postversion": "npm publish", "postpublish": "git push origin --all; git push origin --tags" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "keywords": [], "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme", "gitHead": "10f8be491aab2e158c7e20df64a7f90ab5b5475c", "_id": "isexe@2.0.0", "_shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10", "_from": ".", "_npmVersion": "4.4.2", "_nodeVersion": "8.0.0-pre", "_npmUser": { "name": "isaacs", "email": "i@izs.me" }, "dist": { "shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10", "tarball": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" }, "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/isexe-2.0.0.tgz_1490230396126_0.8949183595832437" } } }, "readme": "# isexe\n\nMinimal module to check if a file is executable, and a normal file.\n\nUses `fs.stat` and tests against the `PATHEXT` environment variable on\nWindows.\n\n## USAGE\n\n```javascript\nvar isexe = require('isexe')\nisexe('some-file-name', function (err, isExe) {\n if (err) {\n console.error('probably file does not exist or something', err)\n } else if (isExe) {\n console.error('this thing can be run')\n } else {\n console.error('cannot be run')\n }\n})\n\n// same thing but synchronous, throws errors\nvar isExe = isexe.sync('some-file-name')\n\n// treat errors as just \"not executable\"\nisexe('maybe-missing-file', { ignoreErrors: true }, callback)\nvar isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true })\n```\n\n## API\n\n### `isexe(path, [options], [callback])`\n\nCheck if the path is executable. If no callback provided, and a\nglobal `Promise` object is available, then a Promise will be returned.\n\nWill raise whatever errors may be raised by `fs.stat`, unless\n`options.ignoreErrors` is set to true.\n\n### `isexe.sync(path, [options])`\n\nSame as `isexe` but returns the value and throws any errors raised.\n\n### Options\n\n* `ignoreErrors` Treat all errors as \"no, this is not executable\", but\n don't raise them.\n* `uid` Number to use as the user id\n* `gid` Number to use as the group id\n* `pathExt` List of path extensions to use instead of `PATHEXT`\n environment variable on Windows.\n", "maintainers": [ { "name": "isaacs", "email": "i@izs.me" } ], "time": { "modified": "2017-03-23T00:53:16.356Z", "created": "2016-01-17T05:25:47.501Z", "1.0.0": "2016-01-17T05:25:47.501Z", "1.0.1": "2016-01-20T01:35:20.406Z", "1.1.0": "2016-01-26T02:03:38.497Z", "1.1.1": "2016-01-26T02:05:55.873Z", "1.1.2": "2016-02-09T04:39:57.031Z", "2.0.0": "2017-03-23T00:53:16.356Z" }, "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", "url": "http://blog.izs.me/" }, "license": "ISC", "readmeFilename": "README.md", "homepage": "https://github.com/isaacs/isexe#readme", "keywords": [], "repository": { "type": "git", "url": "git+https://github.com/isaacs/isexe.git" }, "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, "_attachments": {} }