Skip to content

fs/path: expose internal-api minimatch/glob under path module. #40731

Closed
@kaizhu256

Description

@kaizhu256

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

i have a zero-dependency coverage-reporting-tool and would like to add a cli-option to exclude code-coverage based on file-glob-patterns, e.g.:

node jslint.mjs v8_coverage_report \
    --exclude=deps/*,test/* \
    npm run test

Describe the solution you'd like
Please describe the desired behavior.

expose ./deps/npm/node_modules/minimatch/minimatch.js under the builtin path module, e.g.:

import {minimatch} from "path";
minimatch("bar.foo", "*.foo") // true!
minimatch("bar.foo", "*.bar") // false!

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

i could re-implement ./deps/npm/node_modules/minimatch/minimatch.js into my zero-dependency-project, but i suspect there are many other projects out there that would benefit from exposing this api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions