Registry /
utility / ditashi-jsbeautifier-go
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.