1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-26 15:40:06 +08:00
SpaceVim/docs/api/system.md
2018-09-25 22:09:28 +08:00

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 |