An open API service indexing awesome lists of open source software.

https://github.com/enspirit/rescript-chokidar

ReScript bindings for Chokidar.js
https://github.com/enspirit/rescript-chokidar

chokidar rescript-bindings

Last synced: 17 days ago
JSON representation

ReScript bindings for Chokidar.js

Awesome Lists containing this project

README

          

# rescript-chokidar

[ReScript](https://rescript-lang.org) bindings for [chokidar](https://github.com/paulmillr/chokidar).

# Usage

```reasonml
let watcher = Chokidar.watch(".", ());
let doit = (s:string) => Js.log(s);
Chokidar.on(watcher, "change", doit);
Chokidar.close(watcher, ());
```

# Developers section

First and formost, configure your environment with `npm install`.

Specific ReScript aliases (`clean`, `build`, `watch`, `test`...) are defined
in the `package.json` file to be used with `npm run [alias]`.