# shell
`shell` 模塊提供了集成其他桌面客戶端的關聯功能.
在用戶默認瀏覽器中打開URL的示例:
```javascript
var shell = require('shell');
shell.openExternal('https://github.com');
```
## Methods
`shell` 模塊包含以下函數:
### `shell.showItemInFolder(fullPath)`
* `fullPath` String
打開文件所在文件夾,一般情況下還會選中它.
### `shell.openItem(fullPath)`
* `fullPath` String
以默認打開方式打開文件.
### `shell.openExternal(url)`
* `url` String
以系統默認設置打開外部協議.(例如,mailto: somebody@somewhere.io會打開用戶默認的郵件客戶端)
### `shell.moveItemToTrash(fullPath)`
* `fullPath` String
刪除指定路徑文件,并返回此操作的狀態值(boolean類型).
### `shell.beep()`
播放 beep 聲音.
- 介紹
- 常見問題
- Electron 常見問題
- 向導
- 支持平臺
- 分發應用
- 提交應用到 Mac App Store
- 打包應用
- 使用 Node 原生模塊
- 主進程調試
- 使用 Selenium 和 WebDriver
- 使用開發人員工具擴展
- 使用 Pepper Flash 插件
- 使用 Widevine CDM 插件
- 教程
- 快速入門
- 桌面環境集成
- 在線/離線事件探測
- API文檔
- 簡介
- 進程對象
- 支持的 Chrome 命令行開關
- 環境變量
- 自定義的 DOM 元素
- File 對象
- <webview> 標簽
- window.open 函數
- 在主進程內可用的模塊
- app
- autoUpdater
- BrowserWindow
- contentTracing
- dialog
- globalShortcut
- ipcMain
- Menu
- MenuItem
- powerMonitor
- powerSaveBlocker
- protocol
- session
- webContents
- Tray
- 在渲染進程(網頁)內可用的模塊
- desktopCapturer
- ipcRenderer
- remote
- webFrame
- 在兩種進程中都可用的模塊
- clipboard
- crashReporter
- nativeImage
- screen
- shell
- 開發
- 代碼規范
- 源碼目錄結構
- 與 NW.js(原 node-webkit)在技術上的差異
- 構建系統概覽
- 構建步驟(OS X)
- 構建步驟(Windows)
- 構建步驟(Linux)
- 在調試中使用 Symbol Server