nuget 0.2.1
nuget: ^0.2.1 copied to clipboard
A lightweight Dart client for querying and interacting with the NuGet Server API.
A lightweight Dart client for querying and interacting with the NuGet Server API.
β¨ Features #
- π Autocomplete package IDs
- π¦ Download package content (
.nupkg) and manifest (.nuspec) - π Fetch package metadata β all versions or a specific version
- π·οΈ Get the latest package version or list all versions
- β Check if a package exists
- π Get the report abuse URL for a package
- π Search packages
π Getting Started #
Add the package to your pubspec.yaml:
dependencies:
nuget: ^0.2.0
Then import it:
import 'package:nuget/nuget.dart';
β‘ Quick Example #
Download the .nupkg content for a specific package version:
import 'package:nuget/nuget.dart';
void main() async {
final client = NuGetClient();
const packageId = 'Newtonsoft.Json';
const version = '13.0.3';
final content = await client.downloadPackageContent(
packageId,
version: version,
);
print('`$packageId` ($version) package size: ${content.length} bytes');
client.close();
}
π Features and Bugs #
If you encounter bugs or need additional functionality, please file an issue.