uri_parser 2.0.0 copy "uri_parser: ^2.0.0" to clipboard
uri_parser: ^2.0.0 copied to clipboard

A minimal & safe utility to parse URIs.

example/main.dart

/// This file is a part of uri_parser (https://github.com/alexmercerind/uri_parser).
///
/// Copyright © 2021 & onwards, Hitesh Kumar Saini <saini123hitesh@gmail.com>.
/// All rights reserved.
/// Use of this source code is governed by MIT license that can be found in the LICENSE file.
import 'dart:io';
import 'package:uri_parser/uri_parser.dart';

void main() {
  final parser = URIParser(Platform.executable);
  print(parser.type); // URIType.file
  print(parser.file); // File: 'C:/Flutter/bin/cache/dart-sdk/bin/dart.exe'
  print(parser.directory); // null
  print(parser.uri); // null
  print(parser.result); // file:///C:/Flutter/bin/cache/dart-sdk/bin/dart.exe
}
0
likes
0
pub points
80%
popularity

Publisher

unverified uploader

A minimal & safe utility to parse URIs.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path, safe_local_storage

More

Packages that depend on uri_parser