UNPKG

linux-release-info

Version:

Get Linux release info (distribution name, version, arch, release, etc.) from 'os-release' file and from native os module. On Windows and Darwin it only returns common node os module info (platform, hostname, release and arch)

16 lines (12 loc) 399 B
# Changelog All notable changes to this project will be documented in this file. ## [3.0.0] - 2020-07-20 ### Changed - Completely rewrite in TypeScript ## [2.0.0] - 2018-11-02 ### Changed - Read file synchronously option - Search on '/etc/os-release', '/usr/lib/os-release' or in a specified custom file - Code improvements (now requires Node >= 8) ## [1.0.0] - 2018-02-10 - First public version