node_preamble 1.4.0 copy "node_preamble: ^1.4.0" to clipboard
node_preamble: ^1.4.0 copied to clipboard

outdatedDart 1 only

Better node.js preamble for dart2js, use it in your build system.

node_preamble.dart #

A simple package for a better dart2js preamble for running on node.js. This package exists for ease of use if incorporating into your build system.

This preamble is suggested for use over d8.js, and provides many improvements and bug fixes, as it uses node.js's timer functions and event loop over the custom one implemented in d8.js.

The JavaScript file can be found at lib/preamble.js.

You can also get the preamble via Dart, like in the following example.

import "package:node_preamble/preamble.dart" as preamble;

main() {
  print(preamble.getPreamble());
}

Credit goes to the Dart team for creating Dart, dart2js, and the original preamble which this is derived from.

9
likes
0
pub points
99%
popularity

Publisher

unverified uploader

Better node.js preamble for dart2js, use it in your build system.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on node_preamble