Search packages, repositories and app categories

Package detailsv3.0.2

pubspec_lock

Dart library to access and manipulate content of pubpec.lock files

AndroidiOSWebmacOSWindowsLinux
30-day downloads
54K
Likes
4
Pub points
140

Install package

flutter pub add pubspec_lock

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart library designed to read, parse, and manipulate the contents of pubspec.lock files. It enables developers to programmatically access dependency information, version constraints, and package metadata stored in the lock file. This tool is particularly useful for build scripts, dependency audits, or custom package management workflows within Flutter and Dart projects. The library supports all major platforms, ensuring consistent behavior across environments.

Use cases

  • Parsing dependency versions in CI/CD pipelines
  • Automating dependency validation
  • Generating dependency reports
  • Modifying lock file content programmatically
  • Integrating with custom build tools

Key features

  • Read and parse pubspec.lock files
  • Manipulate dependency entries
  • Support for all Dart/Flutter platforms
  • Provides structured data access
  • Simple API for common operations

Suitable for

  • Build automation scripts
  • Dependency analysis tools
  • CI/CD integrations
  • Developer tooling extensions
  • Project health monitoring

Considerations

  • Requires careful handling of file I/O
  • May need error handling for malformed lock files
  • Not intended for runtime use
  • Changes to lock files should be done cautiously
  • Best used in development or build-time contexts

Categories

Dependencies

Dependency list 5 items

Projects using this package

No data available yet.