Search packages, repositories and app categories

Package detailsv1.9.1

path

A string-based path manipulation library. All of the path operations you know and love, with solid support for Windows, POSIX (Linux and Mac OS X), and the web.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
12.7M
Likes
1.7K
Pub points
160

Install package

flutter pub add path

Package Overview

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

The path package provides a robust, cross-platform solution for manipulating file and directory paths in Dart. It supports all major operating systems—including Windows, Linux, macOS, and the web—ensuring consistent behavior regardless of the environment. With intuitive methods for joining, splitting, normalizing, and resolving paths, it simplifies file system navigation and improves code portability. The library is designed to handle edge cases and platform-specific quirks seamlessly.

Use cases

  • Cross-platform file path manipulation
  • Building portable Dart applications
  • Handling file system operations in web apps
  • Resolving relative and absolute paths
  • Parsing and constructing file paths

Key features

  • Supports Windows, POSIX, and web platforms
  • Comprehensive path operations
  • Handles platform-specific path separators
  • Robust normalization and resolution
  • Lightweight and dependency-free

Suitable for

  • Dart developers building multi-platform apps
  • Tools requiring file system path logic
  • Web-based file handling utilities
  • CLI tools with file system interaction

Considerations

  • Not intended for low-level file I/O
  • Does not interact with actual file systems
  • Requires manual handling of file existence checks
  • Limited to string-based path operations
  • No built-in support for symbolic links

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

Categories

Source repository

Projects using this package

Rankings