Os
A Crystal library for manipulating os-related things in an os-independent way.
Installation
Add this to your application's shard.yml
:
dependencies:
os:
github: mosop/os
Usage
require "os"
Os.username # => "mosop"
API
user_dir
Gets the current user's directory.
username
Gets the current user's name.
Contributing
- Fork it ( https://github.com/mosop/os/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
- mosop mosop - creator, maintainer