ReScript bindings for picomatch
npm install rescript-picomatchReScript bindings for picomatch
``sh`
npm i rescript-picomatch
In your bsconfig.json add it to bs-dependencies
``
{
...,
"bs-dependencies": [..., "rescript-picomatch"],
}
`rescript
let isMatch = Picomatch.match("*.js")
Js.log(isMatch("abcd")) //=> false
Js.log(isMatch("a.js")) //=> true
Js.log(isMatch("a.md")) //=> false
Js.log(isMatch("a/b.js")) //=> false
``