搜索插件、代码仓与 APP 分类

插件详情v1.9.1

path

基于字符串的路径操作库。提供您所熟知的所有路径操作,并对 Windows、POSIX(Linux 和 Mac OS X)以及 Web 提供了坚实的支持。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1270万
喜欢数
1740
Pub 分数
160

安装插件

flutter pub add path

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

path 包为 Dart 提供了一个强大且跨平台的解决方案,用于操作文件和目录路径。它支持所有主要操作系统——包括 Windows、Linux、macOS 和 Web——确保在任何环境下行为一致。通过直观的方法来连接、拆分、标准化和解析路径,它简化了文件系统导航并提高了代码的可移植性。该库设计用于无缝处理边缘情况和平台特定的特殊问题。

适合场景

  • 跨平台文件路径操作
  • 构建可移植的 Dart 应用程序
  • 在Web应用程序中处理文件系统操作
  • 解析相对路径和绝对路径
  • 解析和构造文件路径

主要特点

  • 支持 Windows、POSIX 和 Web 平台
  • 全面的路径操作
  • 处理平台特定的路径分隔符
  • 强大的规范化和解析
  • 轻量且无依赖

适合对象

  • Dart 开发人员构建多平台应用
  • 需要文件系统路径逻辑的工具
  • 基于网络的文件处理工具
  • 具有文件系统交互的 CLI 工具

使用建议

  • 不适用于低级别文件 I/O
  • 不与实际文件系统交互
  • 需要手动处理文件存在性检查
  • 仅限基于字符串的路径操作
  • 不支持符号链接的内置支持

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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.

所属分类

源码仓库

使用此插件的项目

所在榜单