github.com/djberg96/crystal-sys-uname

An interface for getting OS information

4 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  system-uname:
    github: djberg96/crystal-sys-uname
    version: ~> 0.3.0

Then run:

shards install

shard.yml

Crystal
>= 1.2.0
License
MIT
Author
Daniel Berger

Dependencies

This version declares no dependencies.

README

system-uname

Description

A Crystal interface for getting operating system information. The name comes from the Unix 'uname' command.

Installation

Add this to your shard.yml file:

dependencies:
  system-uname:
    github: djberg96/crystal-sys-uname

Synopsis

require "system-uname"

# Get full information about your system.
p System.uname

# Get individual bits of information about your system.
p System.sysname
p System.nodename
p System.release
p System.version
p System.machine

p System.model      # Darwin and FreeBSD only
p System.domainname # Linux only

Supported Platforms

  • Linux
  • Darwin
  • FreeBSD

Future Plans

Add MS Windows support

Copyright

(C) 2021-2026, Daniel J. Berger All Rights Reserved

Author

Daniel J. Berger