dart2js_info 0.2.6 dart2js_info: ^0.2.6 copied to clipboard
Libraries and tools to process data produced when running dart2js with --dump-info.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dart2js_info
Use it
The package has the following executables:
$ dart2js_info_code_deps
$ dart2js_info_coverage_log_server
$ dart2js_info_debug_info
$ dart2js_info_deferred_library_check
$ dart2js_info_deferred_library_size
$ dart2js_info_function_size_analysis
$ dart2js_info_library_size_split
$ dart2js_info_live_code_size_analysis
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart2js_info
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart2js_info: ^0.2.6
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart2js_info/deferred_library_check.dart';
import 'package:dart2js_info/info.dart';
import 'package:dart2js_info/json_info_codec.dart';