入门指南
安装
使用您喜欢的包管理器安装 protocol-launcher:
sh
$ npm install protocol-launchersh
$ pnpm add protocol-launchersh
$ yarn add protocol-launcherbash
$ bun add protocol-launcher使用
按需加载(推荐)
为了减小打包体积,建议直接导入特定模块:
typescript
// 仅导入 Cal2Todo 相关代码
import { add } from 'protocol-launcher/cal2todo'typescript
// 仅导入 Cherry Studio 相关代码
import { installMCP } from 'protocol-launcher/cherry-studio'typescript
// 仅导入 CodeBuddy 相关代码
import { openFile } from 'protocol-launcher/code-buddy'typescript
// 仅导入 Cursor 相关代码
import { installMCP } from 'protocol-launcher/cursor'typescript
// 仅导入 GitHub Desktop 相关代码
import { openRepo } from 'protocol-launcher/github-desktop'typescript
// 仅导入 GoLand 相关代码
import { openRepo } from 'protocol-launcher/goland'typescript
// 仅导入 IntelliJ IDEA 相关代码
import { openRepo } from 'protocol-launcher/idea'typescript
// 仅导入 PhpStorm 相关代码
import { openRepo } from 'protocol-launcher/phpstorm'typescript
// 仅导入 PyCharm 相关代码
import { openRepo } from 'protocol-launcher/pycharm'typescript
// 仅导入 RustRover 相关代码
import { openRepo } from 'protocol-launcher/rustrover'typescript
// 仅导入 Telegram 相关代码
import { open } from 'protocol-launcher/telegram'typescript
// 仅导入 Thunder 相关代码
import { downloadUrl } from 'protocol-launcher/thunder'typescript
// 仅导入 VS Code 相关代码
import { openFile } from 'protocol-launcher/vscode'typescript
// 仅导入 WebStorm 相关代码
import { openFile } from 'protocol-launcher/webstorm'typescript
// 仅导入 Xcode 相关代码
import { cloneProject } from 'protocol-launcher/xcode'全量导入
您也可以从根包导入所有内容,但这将包含所有应用程序模块,并且不支持 Tree Shaking:
typescript
import { cherryStudio, cursor, githubDesktop } from 'protocol-launcher'有关每个应用程序的详细使用说明,请参阅各自的指南:
- AFFiNE
- Agenda
- Alfred
- Antigravity
- App Store
- AppFlowy
- Apple Map
- Apple Script Editor
- Atom
- 1Writer
- Appigo Todo
- BBEdit
- Bear
- Beorg
- Cal2Todo
- Calca
- Cherry Studio
- Coda
- CodeBuddy
- CodeBuddy China
- CodeRunner
- CodeHub
- CodeLite
- Codex
- Craft
- Cubox
- Cursor
- 2Do
- Day One
- dict.cc
- Drafts
- Editorial
- Equipd Bible
- Due
- Evernote
- Fantastical
- FSNotes
- Streets
- GitHub Desktop
- Gladys
- GoLand
- HBuilderX
- Hookmark
- iCab Mobile
- Instapaper
- IntelliJ IDEA
- Interact Scratchpad
- iPGMail
- Itsycal
- Jump Desktop
- Kaleidoscope
- Kiro
- Lingma
- Longshot
- macOS
- MacVim
- Mail Assistant
- miCal
- Microsoft Edge
- Motrix
- MultiTimer
- Navicat
- Nova
- Obsidian
- OpenCode
- Opener
- Orchids
- Overcast
- PearAI
- Pika
- Pleco
- Prizmo
- PhpStorm
- PyCharm
- Pyto
- Qoder
- Quark
- RustRover
- Scriptable
- Shopi
- Shortcuts
- Simple Scan
- Sketch
- Soulver
- SourceTree
- Steam
- Story Planner
- Tally
- Telegram
- Terminology
- Termius
- Textastic
- TextMate
- Theia
- Things
- Thunder
- Todoist
- Trae
- Trae China
- Trello
- Ulysses
- uPic
- Verdent
- VS Code
- VS Code Insiders
- VSCodium
- WaterMinder
- WebStorm
- WeMeet
- Where To
- Windsurf
- Working Copy
- Xcode
- Zed