cjsmodulelexer

package module
v0.0.0-...-b0bd1cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 12 Imported by: 0

README

go-cjs-module-lexer

Installation

go get -u github.com/jcbhmr/go-cjs-module-lexer

Usage

Disable WebAssembly

If you prefer not to use WebAssembly you can use the cjsmodulelexer.nowasm build tag. This will use the pure Go implementation of the lexer.

go build -tags cjsmodulelexer.nowasm ./cmd/my-app

Development

https://github.com/nodejs/cjs-module-lexer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exports

type Exports struct {
	Exports   []string
	Reexports []string
}

func Parse

func Parse(source string, name *string) (Exports, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL