mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-26 15:30:04 +08:00
22 lines
653 B
Markdown
22 lines
653 B
Markdown
---
|
|
title: "system api"
|
|
description: "system API provides some basic functions and values for current os."
|
|
---
|
|
|
|
# [Available APIs](../) >> system
|
|
|
|
## values
|
|
|
|
| name | values | description |
|
|
| --------- | :----: | -------------------------- |
|
|
| isWindows | 0 or 1 | check if the os is windows |
|
|
| isLinux | 0 or 1 | check if the os is linux |
|
|
| isOSX | 0 or 1 | check if the os is OSX |
|
|
| isDarwin | 0 or 1 | check if the os is Darwin |
|
|
|
|
## functions
|
|
|
|
| name | description |
|
|
| ---------- | -------------------------------------- |
|
|
| fileformat | return the icon of current file format |
|