{"modulePath":"github.com/progpjs/libProgpScripts","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package scriptTransformer\n\n## Functions\n\n```go\nfunc CompileJavascriptFile(scriptPath string) (string, string, bool)\n```\n\n```go\nfunc DirExists(path string) bool\n```\n\n```go\nfunc FileExists(path string) bool\n```\n\n```go\nfunc GetCompileCacheDir(searchFrom string) string\n```\n\n```go\nfunc SearchModuleInNodeModules(modName string, callerDir string) string\n```\nSearchModuleInNodeModules returns the module path inside node\\_modules directory. It recurse in the upper directory if not found in the current one.\n\n```go\nfunc SearchNodeModulesDir(searchFrom string) string\n```\n\n```go\nfunc SetJavascriptModuleResolver(handler JavascriptModuleResolverF)\n```\n\n```go\nfunc WalkNodeModules(startDir string, handler func(dirPath string) bool)\n```\nWalkNodeModules allows a function to be called on each node\\_modules dir until this function return true, going up recursively on the node\\_modules  in the parent dir.\n\n## Types\n\n```go\ntype JavascriptModuleResolverF func(resourcePath string) (content string, loaderToUse uint16, isFound bool)\n```\n\n```go\ntype TransformedScript struct {\n\tCompiledScriptPath    string\n\tOutputDir             string\n\tCompiledScriptContent string\n\tSourceMapFileContent  string\n\tSourceMapScriptPath   string\n}\n```\n\n","path":"github.com/progpjs/libProgpScripts/scriptTransformer","name":"scriptTransformer","synopsis":"","isRedistributable":true}
