host_bridge 1.0.1
host_bridge: ^1.0.1 copied to clipboard
CLI and library to run a local HTTP bridge server for file operations and shell commands. Use from IDEs or scripts to perform host-side file and command execution.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate host_bridgeUse it
The package has the following executables:
$ host_bridge
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add host_bridgeWith Flutter:
$ flutter pub add host_bridgeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
host_bridge: ^1.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:host_bridge/host_bridge.dart';