stdlib-js / stdlib-js/stdlib

[RFC]: add `@stdlib/fs/resolve-parent-paths-by`

未关闭
#2,567 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Accepted difficulty: 2 Feature Good First Issue JavaScript priority: Normal RFC Utilities
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

This RFC proposes adding `@stdlib/fs/resolve-parent-paths-by` similar to [`@stdlib/fs/resolve-parent-path-by`](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/fs/resolve-parent-path-by), which instead of a single path, accepts an array of paths and resolves according to the `predicate`.

Similar to [`@stdlib/fs/resolve-parent-paths`](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/fs/resolve-parent-paths) we would want to support multiple modes of operation.

### Related Issues

Related issues #2565

### Questions

No.

### Other

No.

### Checklist

- [X] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

调研方向

Start by reading @stdlib/fs/resolve-parent-path-by and @stdlib/fs/resolve-parent-paths, then compare the related issue #2565 for the intended scope. Define the array-of-paths behavior, predicate handling, and supported modes before checking the analogous implementations and their tests; done means the new module matches the established APIs and mode semantics.

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

评估

技术栈
javascript, node.js
领域
backend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

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