crystal-sys-uname

A Crystal library for getting operating system information

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

Repository

crystal-sys-uname

Owner
Statistic
  • 4
  • 0
  • 0
  • 1
  • 0
  • 12 days ago
  • February 7, 2021
License

Apache License 2.0

Links
Synced at

Fri, 22 May 2026 13:32:46 GMT

Languages