isaacs / minimatch

a glob matcher in javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README usage for ES6 import syntax is incorrect...

vijay8i opened this issue · comments

For the examples shown in usage section to work... the doc should be fixed from:

import { minimatch } from 'minimatch'

to:

import minimatch from 'minimatch'

Unclear if it is because of any versioning issues; I am on node v20.6.1 if that helps. Happy to submit a PR if you want. Thanks!

Looks like I just used a default installation of minimatch from some other dependency. After installing the package (version 9.0.3) I find the documentation is correct. Welcome to the world of jsland, I guess. Closing the issue as it is not an issue anymore.