nuget 0.2.1 copy "nuget: ^0.2.1" to clipboard
nuget: ^0.2.1 copied to clipboard

A lightweight Dart client for querying and interacting with the NuGet Server API.

ci Package: nuget Publisher: halildurmus.dev Language: Dart License: BSD-3-Clause codecov

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.

1
likes
160
points
693
downloads

Publisher

verified publisherhalildurmus.dev

Weekly Downloads

A lightweight Dart client for querying and interacting with the NuGet Server API.

Repository (GitHub)
View/report issues
Contributing

Topics

#nuget #nuget-server-api #nuget-api #api

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

BSD-3-Clause (license)

Dependencies

http, version

More

Packages that depend on nuget