{"modulePath":"github.com/salemove/crossplane-function-javascript","version":"v0.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package modules\n\nPackage modules contains additional JS modules exported into the runtime\n\n## Variables\n\n```go\nvar Base64 = \u0026Base64module{}\n```\nBase64 module provides functions to encode/decode strings to Base64\n\nExample (js):\n\nconst encoded = btoa('hello'); const decoded = atob(encoded);\n\n## Types\n\n```go\ntype Base64module struct{}\n```\n\n```go\nfunc (b *Base64module) Enable(runtime *goja.Runtime)\n```\n\n```go\ntype RuntimeModule struct {\n\t// Name of the module as it can be seen from the JS runtime\n\tName string\n\n\t// The content of the module. Can be any type.\n\tModule interface{}\n}\n```\nRuntimeModule is a container for modules\n\n```go\nfunc (m *RuntimeModule) Register(vm *goja.Runtime) error\n```\nRegister exports the module into JS runtime\n\n","path":"github.com/salemove/crossplane-function-javascript/internal/modules","name":"modules","synopsis":"Package modules contains additional JS modules exported into the runtime","isRedistributable":true}
