Plugin API
English
English
  • Getting Started
    • Introduction
    • Your First Plugin
    • File Structure Overview
    • Plugin Types
      • Window
      • Background Service
      • Format Extension
      • Inspector
    • Debug Plugin
  • Distribution
    • Prepare Plugin
    • Package Plugin
    • Publish Plugin
    • Update Plugin
    • Developer Policies
    • Plugin Icon Template
  • Developer Guide
    • manifest.json Configuration
    • Retrieve Data
    • Modify Data
    • Access Local Files
    • Issue Network Requests
    • Using Node.js Native API
    • Using Third-Party Modules
    • Multilingual (i18n)
    • Frameless Window
  • API Reference
    • event
    • item
    • folder
    • tag
    • tagGroup
    • library
    • window
    • app
    • os
    • screen
    • notification
    • contextMenu
    • dialog
    • clipboard
    • drag
    • shell
    • log
  • Extra Moudle
    • FFmpeg
Powered by GitBook
On this page
  • Methods
  • tmpdir()
  • version()
  • type()
  • release()
  • hostname()
  • homedir()
  • arch()
  1. API Reference

os

Similar to the os module in Node.js, provides some basic system operation functions.

Methods

tmpdir()

Get the default temporary file path of the operating system.

  • Returns string - The default temporary file path of the operating system

eagle.os.tmpdir();         // 'C:\\Users\\User\\AppData\\Local\\Temp'

version()

Get the string of the operating system kernel version.

  • Returns string - The string of the operating system kernel version

eagle.os.version();         // 'Windows 10 Home'

type()

Returns the name of the operating system. For example: returns Darwin on macOS, and Windows_NT on Windows.

  • Returns string - The name of the operating system

eagle.os.type();         // 'Windows_NT', 'Darwin'

release()

Returns the release version of the operating system.

  • Returns string - The release version of the operating system

eagle.os.release();         // '10.0.22621'

hostname()

Returns the hostname of the operating system.

  • Returns string - The hostname of the operating system

eagle.os.hostname();         // 'My_Windows'

homedir()

Returns the home directory of the current user.

  • Returns string - The home directory of the current user

eagle.os.homedir();         // 'C:\\Users\\User'

arch()

Returns the CPU architecture of the operating system.

  • Returns string - The current CPU architecture

    • x64

    • arm64

    • x86

eagle.os.arch();         // 'x64'

PreviousappNextscreen

Last updated 2 years ago