import_path 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 48

A tool to find the shortest import path from one dart file to another.

Usage #

First, globally activate the package:

pub global activate import_path

Then run it, the first argument is the library or application that you want to start searching from, and the second argument is the import you want to search for.

import_path <entrypoint> <import>

Files should be specified as dart import uris, so relative or absolute file paths, as well as package: and dart: uris are supported.

Example #

From the root of this package, you can do:

pub global activate import_path
import_path bin/import_path.dart package:analyzer/dart/ast/ast.dart

1.0.1 #

Use the local package config so it actually works for arbitrary things :D.

1.0.0+1 #

Add changelog :D

1.0.0 #

Initial release


import 'dart:io';

void main() async {
  var result = await'pub', [

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  import_path: ^1.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting import_path... Initialized dartdoc with 37 libraries in 39.6 seconds Validating docs... no issues found Documented 0 public libraries in 6.7 seconds stderr: Unhandled exception: dartdoc could not find any libraries to document #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:218:9)


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
analyzer ^0.39.0 0.39.8
package_config ^1.9.0 1.9.3
Transitive dependencies
_fe_analyzer_shared 3.0.0
args 1.6.0
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
meta 1.1.8
node_interop 1.1.1
node_io 1.1.1
path 1.7.0
pedantic 1.9.0
pub_semver 1.4.4
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+15
yaml 2.2.1