bs-js-beautify

0.1.1 • Public • Published

bs-js-beautify

Build Status dependencies Status devDependencies Status peerDependencies Status Greenkeeper badge

BuckleScript bindings for js-beautify library.

Installation

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

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

Usage

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;;
if (window.x) {
  console.log('It is x');
} else {
  console.log('It is not');
}

Package Sidebar

Install

npm i bs-js-beautify

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

12.5 kB

Total Files

11

Last publish

Collaborators

  • erykpiast