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

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

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add node_preamble
copied to clipboard

With Flutter:

 $ flutter pub add node_preamble
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  node_preamble: ^2.0.2
copied to clipboard

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:node_preamble/preamble.dart';
copied to clipboard
11
likes
150
points
3.84M
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.16 - 2025.02.28

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

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause, MIT (license)

More

Packages that depend on node_preamble