What a Node search needs from the machine it runs on.
A port rather than dart:io, so the search itself stays in the default
barrel and a test can describe a machine instead of building one.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- homeDirectory → String?
-
The user's home directory, or null when the host cannot say.
no setter
- isWindows → bool
-
Whether paths join with
\and the executable isnode.exe.no setter -
pathEntries
→ List<
String> -
The entries of
PATH, in order; empty when there is none.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
directoryEntries(
String directory) → List< String> -
The names of the entries directly under
directory; empty when it does not exist or cannot be read. -
fileExists(
String path) → bool -
Whether
pathis an existing file; a symlink to one counts. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
versionOf(
String executable) → Future< String?> -
Runs
[executable] --versionand answers its first non-blank output line, or null when it could not be run or exited non-zero.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited