GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing pub.dev — path | Dart package → MetadataA 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. More... A comprehensive, cross-platform path manipulation library for Dart. The path package provides common operations for manipulating paths: joining, splitting, normalizing, etc. We've tried very hard to make this library do the "right" thing on whatever
platform you run it on, including in the browser. When you use the top-level
functions, it will assume the current platform's path style and work with
that. If you want to explicitly work with paths of a specific style, you can
construct a Using #The path library was designed to be imported with a prefix, though you don't have to if you don't want to:
The most common way to use the library is through the top-level functions. These manipulate path strings based on your current working directory and the path style (POSIX, Windows, or URLs) of the host platform. For example:
This calls the top-level If you want to work with paths for a specific platform regardless of the underlying platform that the program is running on, you can create a Context and give it an explicit [Style]:
This will join "directory" and "file.txt" using the Windows path separator, even when the program is run on a POSIX machine. Stability #The We try to guarantee that operations with valid inputs and correct output will
not change. Operations, where one or more inputs are invalid according to the
semantics of the corresponding platform, may produce different outputs over time.
Operations for which Also, the FAQ #Where can I use this? #The Why doesn't this make paths first-class objects? #When you have path objects, then every API that takes a path has to decide if it accepts strings, path objects, or both.
Given that, we've decided this library should simply treat paths as strings. How cross-platform is this? #We believe this library handles most of the corner cases of Windows paths (POSIX paths are generally pretty straightforward):
What is a "path" in the browser? #If you use this package in a browser, then it considers the "platform" to be the browser itself and uses URL strings to represent "browser paths". ← Metadata1.75k likes 160 points 13.1M downloads DocumentationPublisherWeekly DownloadsMetadataA 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. Repository (GitHub) TopicsLicense
MoreBack |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |