Registry / utility / ditashi-jsbeautifier-go

ditashi-jsbeautifier-go

JSON →
library0.0.0-20141206144643-2520a8026a9cgogounverified

A Go port of the JavaScript beautifier for formatting JS code.

go get github.com/ditashi/jsbeautifier-go
INSTALL
IMPORT
SIG · DITASHI-JSBEAUTIFI
D
ditashi-jsbeautifier-go
utilitygov0.0.0-20141206144643-2520a8026a9c
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsbeautifier
✓ github.com/ditashi/jsbeautifier-go

Beautify a JavaScript code string

package main import ( "fmt" "github.com/ditashi/jsbeautifier-go" ) func main() { ugly := "function test(){return 1;}" pretty, _ := jsbeautifier.Beautify(&ugly, jsbeautifier.DefaultOptions()) fmt.Println(pretty) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20141206144643-2520a8026a9clatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
ditashi-jsbeautifier-go — go get ditashi-jsbeautifier-go · libregistry