# bs-js-beautify

> BuckleScript bindings for js-beautify library

Latest version **0.1.1** (published 2020-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install bs-js-beautify
pnpm add bs-js-beautify
yarn add bs-js-beautify
bun add bs-js-beautify
```

## 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.1.1 |
| Published | 2020-05-26 |
| First published | 2020-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eryk Napierała |
| Maintainers | erykpiast |
| Keywords | reasonml, bucklescript, bindings, beautify |

## Links

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

## Recent versions

- 0.1.1 (latest) — 2020-05-26
- 0.1.0 — 2020-02-04

## README

# bs-js-beautify
[![Build Status](https://travis-ci.com/erykpiast/bs-js-beautify.svg?branch=master)](https://travis-ci.com/erykpiast/bs-js-beautify)
[![dependencies Status](https://david-dm.org/erykpiast/bs-js-beautify/status.svg)](https://david-dm.org/erykpiast/bs-js-beautify)
[![devDependencies Status](https://david-dm.org/erykpiast/bs-js-beautify/dev-status.svg)](https://david-dm.org/erykpiast/bs-js-beautify?type=dev)
[![peerDependencies Status](https://david-dm.org/erykpiast/bs-js-beautify/peer-status.svg)](https://david-dm.org/erykpiast/bs-js-beautify?type=peer)
[![Greenkeeper badge](https://badges.greenkeeper.io/erykpiast/bs-js-beautify.svg)](https://greenkeeper.io/)

BuckleScript bindings for [js-beautify](https://github.com/beautify-web/js-beautify) library.

## Installation

```
npm i --save bs-js-beautify js-beautify
```

Then add `bs-js-beautify` as a dependency to `bsconfig.json`.

## Usage

```ocaml
let uglyCode = "if(window.x){console.log('It is x');}else{console.log('It is not');}"
in let prettyCode = JsBeautify.beautify ~indent_size:2 uglyCode
in Js.log prettyCode;;
```
```javascript
if (window.x) {
  console.log('It is x');
} else {
  console.log('It is not');
}
```

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