update readme

This commit is contained in:
Tommy Parnell
2017-03-05 16:27:47 -05:00
parent f3efa7e79c
commit 67ec0fc3e7

View File

@@ -1,4 +1,4 @@
This provides a cross platform way to launch processes on mac/linux/or windows.
This provides a cross platform way to launch processes on mac/linux/or windows. Inspired by [opener](https://github.com/domenic/opener)
Simply call `Opener.Open()` with whatever commands you need
@@ -12,4 +12,10 @@ Opener.Net.Opener.Open("http://google.com"); // launch a browser window
Opener.Net.Opener.Open("npm install", processStartInfo: new ProcessStartInfo(){ WorkingDirectory = "c:/projects/npmrest"}); //npm install in a specific directory
```
```
## Why?
Because Windows has start, Macs have open, and *nix has xdg-open. At least according to some guy on StackOverflow. And I like things that work on all three. Like Node.js. And Opener.