{"_id":"@xhmikosr/executable","_rev":"2-17089b485b499a49bd263738f75a22c0","name":"@xhmikosr/executable","dist-tags":{"latest":"5.0.1"},"versions":{"5.0.0":{"name":"@xhmikosr/executable","version":"5.0.0","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/XhmikosR/executable.git"},"publishConfig":{"access":"public"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":"^14.14.0 || >=16.0.0"},"scripts":{"ava":"ava","lint":"xo","xo":"xo","fix":"xo --fix","test":"npm run ava"},"main":"index.js","type":"module","exports":{".":"./index.js"},"keywords":["exec","executable","permission"],"devDependencies":{"ava":"^5.3.0","xo":"^0.54.2"},"gitHead":"8485a4f8d94bda2621d894ff972df2d655c1cf71","bugs":{"url":"https://github.com/XhmikosR/executable/issues"},"homepage":"https://github.com/XhmikosR/executable#readme","_id":"@xhmikosr/executable@5.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-4YeSmrBVHFtFUvp5DLzbpONXY1VWUyCVOXGV+d47NWhEW5jSFRJecvhX9Rq4jHJ72H8JuiahQZdF9YCIvWeV9Q==","shasum":"8019776df9e8b23aae7f8832e225f4531a32dbec","tarball":"https://registry.npmjs.org/@xhmikosr/executable/-/executable-5.0.0.tgz","fileCount":4,"unpackedSize":4110,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1U9LV4GgK1jWYB4+ZMU+k2JBw1YmYUc9+kOb51KmSSAiEA3PTa+Vh5R7aWRY0vyNIXX7l+QCpBH8BzniVgmNAU8t0="}]},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/executable_5.0.0_1685544689407_0.060919744219707805"},"_hasShrinkwrap":false,"deprecated":"Use isexe package"},"5.0.1":{"name":"@xhmikosr/executable","version":"5.0.1","description":"Check if a file is executable","license":"MIT","repository":{"type":"git","url":"git+https://github.com/XhmikosR/executable.git"},"publishConfig":{"access":"public"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"engines":{"node":"^14.14.0 || >=16.0.0"},"scripts":{"ava":"ava","lint":"xo","xo":"xo","fix":"xo --fix","test":"npm run ava"},"main":"index.js","type":"module","exports":{".":"./index.js"},"keywords":["exec","executable","permission"],"devDependencies":{"ava":"^5.3.0","xo":"^0.54.2"},"gitHead":"1848f0b552cb231c1ff74320dc4a8db9ea478a31","bugs":{"url":"https://github.com/XhmikosR/executable/issues"},"homepage":"https://github.com/XhmikosR/executable#readme","_id":"@xhmikosr/executable@5.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-asRvPbO95RMWo6WDSp63K2gx2R0l2nZFOaLX7b81bd8t1RfQwIJqL4U0pDlGbpvP2sXEpEf8ivVUJ3LCvw8KqQ==","shasum":"04dce8f6ec37e46f752e437cfbb7b87b76646eb1","tarball":"https://registry.npmjs.org/@xhmikosr/executable/-/executable-5.0.1.tgz","fileCount":4,"unpackedSize":4096,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEzM8ZgIVd1uxUGX6lyWywh4YxNAvHFUe/RIn7jOGs2dAiEA3BG2y/3O1jcw3WEN4hJZd64CmuNVCX3xYCoK3K8eCNE="}]},"_npmUser":{"name":"xhmikosr","email":"xhmikosr@gmail.com"},"directories":{},"maintainers":[{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/executable_5.0.1_1685597994392_0.2522640512288703"},"_hasShrinkwrap":false,"deprecated":"Use isexe package"}},"time":{"created":"2023-05-31T14:51:29.346Z","5.0.0":"2023-05-31T14:51:29.612Z","modified":"2023-06-07T06:54:50.142Z","5.0.1":"2023-06-01T05:39:54.545Z"},"maintainers":[{"name":"xhmikosr","email":"xhmikosr@gmail.com"}],"description":"Check if a file is executable","homepage":"https://github.com/XhmikosR/executable#readme","keywords":["exec","executable","permission"],"repository":{"type":"git","url":"git+https://github.com/XhmikosR/executable.git"},"author":{"name":"Kevin Mårtensson","email":"kevinmartensson@gmail.com","url":"https://github.com/kevva"},"bugs":{"url":"https://github.com/XhmikosR/executable/issues"},"license":"MIT","readme":"# executable [![CI](https://github.com/XhmikosR/executable/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/XhmikosR/executable/actions/workflows/ci.yml)\n\n> Check if a file is executable\n\n\n## Install\n\n```sh\nnpm install @xhmikosr/executable\n```\n\n\n## Usage\n\n```js\nimport executable from '@xhmikosr/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","readmeFilename":"readme.md"}