8
0%
MIT
unpublishedBuckleScript bindings to node-glob. Match files using the patterns the shell uses, like stars and stuff.

bs-glob

BuckleScript bindings to node-glob.

Status: Very basic, but functional

Example

  • RE
  • ML
Glob.glob("**/*.js", (_, files) => Array.iter(Js.log, files));
let _ = Glob.glob "**/*.js" (fun _  -> fun files  -> Array.iter Js.log files)

Installation

npm install --save reasonml-community/bs-glob

Then add bs-glob to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["bs-glob"]
}