Socket
Socket
Sign inDemoInstall

bs-js-beautify

Package Overview
Dependencies
42
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bs-js-beautify

BuckleScript bindings for js-beautify library


Version published
Maintainers
1
Install size
12.2 kB
Created

Changelog

Source

0.1.1 (2020-05-26)

Bug Fixes

  • readme: add missing semicolon to example code (7bab557)

Readme

Source

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');
}

Keywords

FAQs

Last updated on 26 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc