api_summary 1.1.0 copy "api_summary: ^1.1.0" to clipboard
api_summary: ^1.1.0 copied to clipboard

Creates an API summary for a package.

example/example.dart

// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:io';
import 'package:api_summary/api_summary.dart';
import 'package:path/path.dart' as p;

void main() async {
  // Locate this package's root directory (current working directory)
  final packagePath = p.normalize(p.absolute(Directory.current.path));

  print('Generating API summary for the api_summary package...\n');

  // Call apiSummary to get the public API footprints
  final summary = await apiSummary(packagePath);

  // Output the generated summary to stdout
  print(summary);
}
0
likes
150
points
3.61k
downloads

Documentation

API reference

Publisher

verified publishertools.dart.dev

Weekly Downloads

Creates an API summary for a package.

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (license)

Dependencies

analyzer, args, cli_util, collection, path, yaml, yaml_edit

More

Packages that depend on api_summary