1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/docs/api/system.md

22 lines
653 B
Markdown
Raw Normal View History

2017-02-15 23:49:16 +08:00
---
title: "system api"
description: "system API provides some basic functions and values for current os."
2017-02-15 23:49:16 +08:00
---
# [Available APIs](../) >> system
2017-02-17 21:02:14 +08:00
2017-02-15 23:49:16 +08:00
## 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 |
2017-02-16 23:14:23 +08:00
2017-02-15 23:49:16 +08:00
## functions
| name | description |
| ---------- | -------------------------------------- |
| fileformat | return the icon of current file format |