# bs-run

> Run BuckleScript compiled ReasonML and OCaml files

Latest version **0.0.8** (published 2019-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install bs-run
pnpm add bs-run
yarn add bs-run
bun add bs-run
```

Provides the command `bs-run`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2019-02-17 |
| First published | 2019-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 448.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Anton Stefanov |
| Maintainers | antonstefanov |
| Keywords | BuckleScript |

## Links

- npm: https://www.npmjs.com/package/bs-run
- Repository: https://github.com/antonstefanov/bs-run
- Homepage: https://github.com/antonstefanov/bs-run#readme
- Issues: https://github.com/antonstefanov/bs-run/issues
- npm.io page: https://npm.io/package/bs-run

## Dependencies (1)

- [esm](https://npm.io/package/esm.md) ^3.1.2

## Recent versions

- 0.0.8 (latest) — 2019-02-17
- 0.0.6 — 2019-01-31
- 0.0.5 — 2019-01-26
- 0.0.4 — 2019-01-26
- 0.0.3 — 2019-01-26
- 0.0.2 — 2019-01-26
- 0.0.1 — 2019-01-26

## README

Easily run `.re` and `.ml` files directly in your BuckleScript project.

![bs-run demo](./bs-run.gif)

Note that `bs-run` does not compile `.re` and `.ml` files, it will execute `yarn build` and will use the BuckleScript compiled files.

Suggested flow to use `bs-run`:

```sh
  npm -g install bs-run
```

Install VSCode [`formulahendry.code-runner`](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) (a VS Code extension):

1. Edit your vscode user/workspace settings:

```json
  "code-runner.executorMapByFileExtension": {
    ".re": "bs-run",
    ".ml": "bs-run"
  },
```

```json
for OCaml you might also have to change:
  "code-runner.executorMap": {
    "ocaml": "bs-run",
  },
```

2. Add in `cmd+shift+p` -> `Preferences: Open Keyboard Shortcuts (JSON)`:

```json
{
  "key": "shift+enter",
  "command": "code-runner.run",
  "when": "editorTextFocus"
}
```

3. While in a `.re` or `.ml` file use `shift+enter` to run it

Now you can log and test short snippets of your code.

---
_Source: https://npm.io/package/bs-run · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
