This package is a Hunter Obfuscator written in Go to protect your JavaScript source code with the simplest and fastest way.
go get github.com/spectreh/hunter-js-obfuscator
import "github.com/spectreh/hunter-js-obfuscator"
rand.Seed(time.Now().UnixNano())
code := "alert('hello');"
obf := NewObfuscator(code)
obfuscatedCode := obf.Obfuscate()
Only standard go packages were in use.
- SpectreH (https://github.com/SpectreH)
This package is licensed under MIT license.