0.1.1 • Published 2 years ago

rescript-picomatch v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rescript-picomatch

ReScript bindings for picomatch

Installation

npm i rescript-picomatch

In your bsconfig.json add it to bs-dependencies

{
  ...,
  "bs-dependencies": [..., "rescript-picomatch"],
}

Example

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