jsigen 0.0.1-placeholder copy "jsigen: ^0.0.1-placeholder" to clipboard
jsigen: ^0.0.1-placeholder copied to clipboard

Generate JavaScript Objects and Bindings in Dart.

JSIGEN - Generate JavaScript Bindings for your Dart Code #

Jsigen is a CLI tool to generate JavaScript bindings for your Dart code. It parses, analyzes and generates the given Dart Objects for your JavaScript code using Dart's JavaScript interop guidelines

Using this Tool #

By default, jsigen uses the latest extension type interop strategy to create Dart Bindings. If you are using a much older codebase, or prefer not to use this, you can use the --legacy flag to use the legacy class/static interop interop strategy to create Dart Bindings.

Usage #

dart run jsigen <js file> -o <output>

You can pass config located in a js-config.yaml file to configure the bindings generated.

dart run jsigen <js file> --config <config file> # The config file option is optional, and defaults to the js-config.yaml file in the root directory

NOTE: This project is experimental and nothing works for now.

Contributions and ideas are welcome

1
likes
140
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Generate JavaScript Objects and Bindings in Dart.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on jsigen