open.cr
External::open
External.open
is a method to open something in manner or current OS. This is inspired by node-open.
Installation
Add this to your application's shard.yml
:
dependencies:
open.cr:
github: rhysd/open.cr
Usage
require "external/open"
External.open "http://crystal-lang.org/"
External.open "file:///Users/foo/Documents/somedoc.pdf"
External.open "../../README.md"
External.open "musics/bar.mp3"
Contributing
- Fork it ( https://github.com/rhysd/open/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- @rhysd - creator, maintainer
Repository
open.cr
Owner
Statistic
- 1
- 1
- 0
- 1
- 0
- about 8 years ago
- October 2, 2015
License
MIT License
Links
Synced at
Thu, 26 Dec 2024 18:30:33 GMT
Languages