system 1.0.0 copy "system: ^1.0.0" to clipboard
system: ^1.0.0 copied to clipboard

Invoke operating system commands. Exposes `system()` on macOS & Linux. Uses `dart:ffi`.

example/main.dart

import 'package:system/system.dart';

// Use the system `open` command to lauch the system default web browser on the
// Url dart.dev.
void main() async {
  var result = System.invoke('open http://dart.dev');
  if (result) {
    print('Succesfully launched dart.dev');
  } else {
    print('Failed launching dart.dev');
  }
}
11
likes
130
pub points
28%
popularity

Publisher

verified publishermiksen.dk

Invoke operating system commands. Exposes `system()` on macOS & Linux. Uses `dart:ffi`.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi

More

Packages that depend on system