# bs-platform

> ReScript compiler, OCaml standard libary by ReScript and its required runtime support

Latest version **9.0.2** (published 2021-03-11) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

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

Provides the commands `bsb`, `bsc`, `bsrefmt`, `bstracing`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 9.0.2 |
| Published | 2021-03-11 |
| First published | 2016-04-29 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 135.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 7461 |
| Author | Hongbo Zhang |
| Maintainers | hongbo_zhang |
| Keywords | ocaml, rescript, stdlib, functional programming |

## Links

- npm: https://www.npmjs.com/package/bs-platform
- Repository: https://github.com/rescript-lang/rescript-compiler
- Homepage: https://github.com/rescript-lang/rescript-compiler#readme
- Issues: https://github.com/rescript-lang/rescript-compiler/issues
- npm.io page: https://npm.io/package/bs-platform

## Recent versions

- 9.0.2 (latest) — 2021-03-11
- 8.4.2-dev.1 (dev1) — 2020-12-09
- 8.4.0-dev.4 (gentype-dev) — 2020-11-26
- 8.3.3-dev.2 (nightly) — 2020-11-10
- 8.2.0-dev.1 (polyvar) — 2020-07-23
- 8.1.0-dev.1 (napkin) — 2020-06-23
- 7.2.0-dev.2 (7.2.0-dev.2) — 2020-02-18
- 7.2.0-dev.1 (7.2.0-dev.1) — 2020-02-16
- 7.1.1 (7.1.1) — 2020-02-15
- 7.1.0 (7.1.0) — 2020-02-03
- 7.0.2-dev.2 (7.0.2-dev.2) — 2020-01-30
- 7.0.2-dev.1 (7.0.2-dev.1) — 2019-12-20
- 7.0.1 (7.0.1) — 2019-12-06
- 7.0.0 (7.0.0) — 2019-12-04
- 7.0.0-dev.2 (7.0.0-dev.2) — 2019-11-28
- … 190 more at https://npm.io/package/bs-platform/versions

## README

# [ReScript](https://rescript-lang.org)

The compiler for ReScript.

[![npm version](https://badge.fury.io/js/bs-platform.svg)](https://badge.fury.io/js/bs-platform) ![Build Status](https://circleci.com/gh/rescript-lang/rescript-compiler.svg?style=svg)

## Documentation

Please see the [documentation site](https://rescript-lang.org).

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

## Acknowledgments

* Thanks to the [OCaml](https://ocaml.org) team, obviously, without such a beautiful yet practical language, this backend would not exist
* Thanks to [ninja-build](https://ninja-build.org), ReScript also comes with a blazing fast build tool on top of it, `ninja` is a truly [well engineered](http://aosabook.org/en/posa/ninja.html) scalable build tool
* Thanks to [Bloomberg](https://www.techatbloomberg.com) and [Facebook](https://github.com/facebook/). This project began at Bloomberg and was published in 2016; without the support of Bloomberg, it would not have happened. This project's funded by Facebook since July/2017

## [Roadmap](https://github.com/rescript-lang/rescript-compiler/wiki)

## Licensing

See [COPYING](./COPYING) and [COPYING.LESSER](./COPYING.LESSER)

The [`ocaml`](ocaml) directory contains the official [OCaml](https://ocaml.org) compiler (version 4.06.1).
Refer to its copyright and license notices for information about its licensing.

The `vendor/ninja.tar.gz` contains the vendored [ninja](https://github.com/ninja-build/ninja).
Refer to its copyright and license notices for information about its licensing.

ReScript builds on parts of [js_of_ocaml](https://github.com/ocsigen/js_of_ocaml):

* [`jscomp/core/js_dump.ml`](jscomp/core/js_dump.ml) (pretty printer)

ReScript builds on parts of OCaml:

* [`jscomp/core/lam_pass_exits.ml`](jscomp/core/lam_pass_exits.ml)
* [`jscomp/core/lam_pass_lets_dce.ml`](jscomp/core/lam_pass_lets_dce.ml)

These modules were adapted from [`ocaml/bytecomp/simplif.ml`](ocaml/bytecomp/simplif.ml) for
JavaScript specific optimization purposes.

* [`jscomp/main/js_main.ml`](jscomp/main/js_main.ml)

`jscomp/main/js_main.ml` is adapted from [`ocaml/driver/main.ml`](ocaml/driver/main.ml). It is the main entry
point of the underlying compiler.

*  [`jscomp/stdlib-406`](jscomp/stdlib-406)

`jscomp/stdlib-*` is copied from [`ocaml/stdlib`](ocaml/stdlib). It is compiled to JavaScript and included with ReScript.

* [`jscomp/test`](jscomp/test)

`jscomp/test` is based on [`ocaml/testsuite`](ocaml/testsuite).

ReScript unit test builds on parts of [OUnit](http://ounit.forge.ocamlcore.org/)

* [`jscomp/ounit`](jscomp/ounit) is adapted from ounit, the unit test
  utilities are only used for dev purpose, they are not required for distribution

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