kevva / kevva/executable

alternative way to check if file is executable

未关闭
#13 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
28
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

just fyi this might be another way (better? dunno)

https://stackoverflow.com/a/41929624/1223975

```js
const fs = require('fs');

fs.access('./foobar.sh', fs.constants.X_OK, (err) => {
console.log(err ? 'cannot execute' : 'can execute');
});
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Review the linked Stack Overflow example and compare its fs.access(..., fs.constants.X_OK, ...) behavior with the repository's current executable check. Decide whether the alternative should replace the existing approach, then add or update coverage for the chosen behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
tooling
Issue 类型
重构
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。