{"_id":"executable","_rev":"98462","name":"executable","description":"Check if a file is executable","dist-tags":{"latest":"4.1.1"},"maintainers":[{"name":"kevva","email":""}],"time":{"modified":"2021-06-03T10:33:13.000Z","created":"2014-02-06T12:33:58.435Z","4.1.1":"2018-02-07T20:52:57.611Z","4.1.0":"2016-08-23T11:36:32.217Z","4.0.0":"2016-06-03T13:09:14.155Z","3.0.0":"2016-01-05T18:56:11.563Z","2.1.0":"2015-12-01T12:27:35.526Z","2.0.0":"2015-10-05T15:25:22.861Z","1.1.0":"2015-04-09T16:22:23.916Z","1.0.3":"2014-10-28T13:38:44.809Z","1.0.2":"2014-09-16T00:09:22.998Z","1.0.1":"2014-09-08T03:38:56.898Z","1.0.0":"2014-08-17T18:17:49.071Z","0.1.3":"2014-08-12T22:55:49.612Z","0.1.2":"2014-04-30T06:41:26.183Z","0.1.1":"2014-03-26T14:40:00.351Z","0.1.0":"2014-02-06T12:33:58.435Z"},"users":{"davglass":true,"rocket0191":true,"panlw":true},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"versions":{"4.1.1":{"name":"executable","version":"4.1.1","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["exec","executable","permission"],"dependencies":{"pify":"^2.2.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"049ea0878a7b0d65b57d4dcfce3010bfc0333ac2","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@4.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"41532bff361d3e57af4d763b70582db18f5d133c","size":1969,"noattachment":false,"key":"/executable/-/executable-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-4.1.1.tgz"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/executable_4.1.1_1518036776829_0.9835485182786934"},"_hasShrinkwrap":false,"publish_time":1518036777611,"_cnpm_publish_time":1518036777611},"4.1.0":{"name":"executable","version":"4.1.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["exec","executable","permission"],"dependencies":{"pify":"^2.2.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"684e7afed563769b2335623530cbfdf8cf6bdd67","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@4.1.0","_shasum":"95d9b445190159852920fd76fffd96f80c1fe4e7","_from":".","_npmVersion":"3.10.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"95d9b445190159852920fd76fffd96f80c1fe4e7","size":1998,"noattachment":false,"key":"/executable/-/executable-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-4.1.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/executable-4.1.0.tgz_1471952189907_0.4643774547148496"},"directories":{},"publish_time":1471952192217,"_cnpm_publish_time":1471952192217,"_hasShrinkwrap":false},"4.0.0":{"name":"executable","version":"4.0.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["exec","executable","permission"],"dependencies":{"pify":"^2.2.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"ebdc3703a1408e231636fa727ee689bc1d2b6b69","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@4.0.0","_shasum":"e429a73490a73b8cf8c3b8caae28da664ae3398a","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"e429a73490a73b8cf8c3b8caae28da664ae3398a","size":1761,"noattachment":false,"key":"/executable/-/executable-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-4.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/executable-4.0.0.tgz_1464959352718_0.488024290651083"},"directories":{},"publish_time":1464959354155,"_cnpm_publish_time":1464959354155,"_hasShrinkwrap":false},"3.0.0":{"name":"executable","version":"3.0.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["exec"],"dependencies":{"pify":"^2.2.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test/test.js"]},"gitHead":"5302e5fe74dbcf5843b103c2fed89f78df6c788a","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@3.0.0","_shasum":"b51c76413f871068c201afaac737fac28e0d208a","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"b51c76413f871068c201afaac737fac28e0d208a","size":1798,"noattachment":false,"key":"/executable/-/executable-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-3.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1452020171563,"_cnpm_publish_time":1452020171563,"_hasShrinkwrap":false},"2.1.0":{"name":"executable","version":"2.1.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"xo && ava"},"files":["cli.js","index.js"],"keywords":["exec"],"dependencies":{"meow":"^3.3.0","pify":"^2.2.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test/test.js"]},"gitHead":"65737781abd56015e65a44e75e1d728cbaacebfc","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@2.1.0","_shasum":"fcb5e29febf6bf3ca273dd374ecd877e4586ce6f","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"fcb5e29febf6bf3ca273dd374ecd877e4586ce6f","size":2036,"noattachment":false,"key":"/executable/-/executable-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-2.1.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1448972855526,"_cnpm_publish_time":1448972855526,"_hasShrinkwrap":false},"2.0.0":{"name":"executable","version":"2.0.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/kevva/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"xo && ava"},"files":["cli.js","index.js"],"keywords":["exec"],"dependencies":{"meow":"^3.3.0","pify":"^2.2.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"^0.2.0","xo":"*"},"xo":{"ignore":["test/test.js"]},"gitHead":"cd7357762385bf14c8b2c3bff4a59c601cb03f90","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable#readme","_id":"executable@2.0.0","_shasum":"21f910070fbc07e2f77eea56feaf5219f30d9298","_from":".","_npmVersion":"3.3.3","_nodeVersion":"4.1.0","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"dist":{"shasum":"21f910070fbc07e2f77eea56feaf5219f30d9298","size":1928,"noattachment":false,"key":"/executable/-/executable-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-2.0.0.tgz"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1444058722861,"_cnpm_publish_time":1444058722861,"_hasShrinkwrap":false},"1.1.0":{"name":"executable","version":"1.1.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"dependencies":{"meow":"^3.1.0"},"devDependencies":{"ava":"^0.0.4"},"gitHead":"a4ff13a57f63e89b01f66bf8c2638a0ec86f5296","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@1.1.0","_shasum":"877980e9112f3391066da37265de7ad8434ab4d9","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"877980e9112f3391066da37265de7ad8434ab4d9","size":1969,"noattachment":false,"key":"/executable/-/executable-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-1.1.0.tgz"},"directories":{},"publish_time":1428596543916,"_cnpm_publish_time":1428596543916,"_hasShrinkwrap":false},"1.0.3":{"name":"executable","version":"1.0.3","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"ava":"^0.0.4"},"dependencies":{"meow":"^2.0.0"},"gitHead":"bf887bd4773373323c2564891504bf939fcbe011","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@1.0.3","_shasum":"2e18fb2bea3f821d2676869dfde836424895e74f","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.32","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"2e18fb2bea3f821d2676869dfde836424895e74f","size":2076,"noattachment":false,"key":"/executable/-/executable-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-1.0.3.tgz"},"directories":{},"publish_time":1414503524809,"_cnpm_publish_time":1414503524809,"_hasShrinkwrap":false},"1.0.2":{"name":"executable","version":"1.0.2","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"ava":"^0.0.4"},"gitHead":"395f6b4a5d18a87e56461e7186215d1a54fbc9a7","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@1.0.2","_shasum":"3c07b815036a850a0a50e1ba82d46dc0c9993923","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"3c07b815036a850a0a50e1ba82d46dc0c9993923","size":1423,"noattachment":false,"key":"/executable/-/executable-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-1.0.2.tgz"},"directories":{},"publish_time":1410826162998,"_cnpm_publish_time":1410826162998,"_hasShrinkwrap":false},"1.0.1":{"name":"executable","version":"1.0.1","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"ava":"^0.0.4"},"gitHead":"f1bb73735f7b663c38eeaf9f94f5be33df3905c1","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@1.0.1","_shasum":"62fc1238928bb4ed982b81e452534f38cb27d204","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"62fc1238928bb4ed982b81e452534f38cb27d204","size":1404,"noattachment":false,"key":"/executable/-/executable-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-1.0.1.tgz"},"directories":{},"publish_time":1410147536898,"_cnpm_publish_time":1410147536898,"_hasShrinkwrap":false},"1.0.0":{"name":"executable","version":"1.0.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"https://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"ava":"0.0.3"},"gitHead":"51dc090d87120e623c22c1e3a3a62dd6fb3576ed","bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@1.0.0","_shasum":"aef6a87faf5324d935d0aa7f876d0a2c184eab54","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"aef6a87faf5324d935d0aa7f876d0a2c184eab54","size":1395,"noattachment":false,"key":"/executable/-/executable-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-1.0.0.tgz"},"directories":{},"publish_time":1408299469071,"_cnpm_publish_time":1408299469071,"_hasShrinkwrap":false},"0.1.3":{"name":"executable","version":"0.1.3","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"node test/test.js"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"ava":"0.0.3"},"bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@0.1.3","_shasum":"227cb205720631de150708e733909684dc67e1d8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"227cb205720631de150708e733909684dc67e1d8","size":1413,"noattachment":false,"key":"/executable/-/executable-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-0.1.3.tgz"},"directories":{},"publish_time":1407884149612,"_cnpm_publish_time":1407884149612,"_hasShrinkwrap":false},"0.1.2":{"name":"executable","version":"0.1.2","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/executable"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":">=0.10.0"},"bin":{"executable":"cli.js"},"scripts":{"test":"mocha --reporter list"},"files":["cli.js","index.js"],"keywords":["exec"],"devDependencies":{"mocha":"^1.18.2"},"bugs":{"url":"https://github.com/kevva/executable/issues"},"homepage":"https://github.com/kevva/executable","_id":"executable@0.1.2","_shasum":"4f42d018e95a147ad1062ec6c87912235bcbd82d","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"dist":{"shasum":"4f42d018e95a147ad1062ec6c87912235bcbd82d","size":1357,"noattachment":false,"key":"/executable/-/executable-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-0.1.2.tgz"},"directories":{},"publish_time":1398840086183,"_cnpm_publish_time":1398840086183,"_hasShrinkwrap":false},"0.1.1":{"name":"executable","version":"0.1.1","description":"Check if a file is executable","keywords":["exec"],"homepage":"https://github.com/kevva/executable","bugs":{"url":"https://github.com/kevva/executable/issues"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/executable.git"},"scripts":{"test":"mocha --reporter list"},"main":"index.js","files":["index.js"],"devDependencies":{"mocha":"~1.17.0"},"engines":{"node":">=0.10.0"},"_id":"executable@0.1.1","dist":{"shasum":"6794d9eaf5b0a6f66a798965a1bd7a9be5dbf918","size":1166,"noattachment":false,"key":"/executable/-/executable-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1395844800351,"_cnpm_publish_time":1395844800351,"_hasShrinkwrap":false},"0.1.0":{"name":"executable","version":"0.1.0","description":"Check if a file is executable","keywords":["exec"],"homepage":"https://github.com/kevva/executable","bugs":{"url":"https://github.com/kevva/executable/issues"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"license":"MIT","repository":{"type":"git","url":"git://github.com/kevva/executable.git"},"scripts":{"test":"mocha --reporter list"},"main":"index.js","files":["index.js"],"devDependencies":{"mocha":"~1.17.0"},"engines":{"node":">=0.10.0"},"_id":"executable@0.1.0","dist":{"shasum":"f6ac540c0d14cbf6c566a90d473966be0eb5329d","size":1178,"noattachment":false,"key":"/executable/-/executable-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/executable/download/executable-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"kevva","email":"kevinmartensson@gmail.com"},"maintainers":[{"name":"kevva","email":""}],"directories":{},"publish_time":1391690038435,"_cnpm_publish_time":1391690038435,"_hasShrinkwrap":false}},"readme":"# executable [![Build Status](https://travis-ci.org/kevva/executable.svg?branch=master)](https://travis-ci.org/kevva/executable)\n\n> Check if a file is executable\n\n\n## Install\n\n```\n$ npm install --save executable\n```\n\n\n## Usage\n\n```js\nconst executable = require('executable');\n\nexecutable('bash').then(exec => {\n\tconsole.log(exec);\n\t//=> true\n});\n```\n\n\n## API\n\n### executable(file)\n\nReturns a Promise for a boolean.\n\n### executable.sync(file)\n\nReturns a boolean of whether the file is executable.\n\n#### file\n\nType: `string`\n\nPath of the file.\n\n### executable.checkMode(mode, [gid], [uid])\n\nReturns a boolean of whether the mode passed as first argument means that the file is executable.\n\n#### mode\n\nType: `number`\n\nProperty `mode` of `fs.Stats` instance returned by `fs.stat()` (or `fs.statSync()`) function.\n\n#### gid, uid\n\nType: `number`\n\nRespectively the group identity and user identity of the file. If not set, permissions will be evaluated without considering owner or group of the file.\n\n## Related\n\n* [executable-cli](https://github.com/kevva/executable-cli) - CLI for this module\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","_attachments":{},"homepage":"https://github.com/kevva/executable#readme","bugs":{"url":"https://github.com/kevva/executable/issues"},"license":"MIT"}