Skip to content
pubscout

ini

2.1.0, released 6 years ago by an unverified publisher

Read and write INI configuration files in pure Dart

WASM-ready
$ flutter pub add ini

What it does

The package parses INI files into a Config object and can serialize a Config back to a string. It supports sections, options, and default section handling.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to load or modify INI files in a Dart or Flutter project
  • You want a lightweight, dependency‑free solution for configuration files

Skip it when

  • You need advanced parsing features like interpolation or nested sections
  • You are targeting only JSON or YAML configuration formats

Strengths

  • Pure Dart, no native dependencies
  • Simple API for reading, writing, and manipulating sections and options
  • Works on all supported platforms (android, ios, web, windows, macos, linux)

Weaknesses

  • No support for complex INI features (e.g., multiline values, comments preservation)
  • No code generation or declarative configuration support
  • No built‑in validation or schema enforcement

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import "package:ini/ini.dart";

final config = await Config.fromFile("config.ini");
print(config.get("section", "option"));

Alternatives

Packages that do the same job and could replace ini.

  • dartchess

    A Dart library for chess rules, move generation, and FEN/PGN parsing with variant support.

  • pubspec_manager

    Type-safe API to read, modify, and write pubspec.yaml while preserving comments.

  • json_path

    Dart implementation of RFC 9535 JSONPath for querying and manipulating JSON

  • rfc_6901

    Implements RFC 6901 JSON Pointer for reading, writing and removing values in JSON documents.

Works with

Packages commonly used together with ini: ones it builds on, ones built on it, and its own family.