一款可以把 Api 文档 转换为 代码 的浏览器插件。
Api2Code Extension
支持定义跳转(快捷键同 vscode)
注意:必须进入具体的某一接口页面,插件才会生效
如:http://yapi.smart-xwork.cn/project/122838/interface/api/1679370
当前已支持的功能如下:
1. 支持 YApi 转 TypeScript
2. 支持 Swagger 转 TypeScript
Source Manifest.json
How to download and manually install Api2Code extension for Chrome
Looking for a way to install Api2Code extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.
However, you may need to install Api2Code extensions manually, this article outlines two simple methods to effortlessly install Api2Code extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.
Method 1: Download Api2Code extension and manually install through Drag &Drop
If you ever need to manually install a Api2Code extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.
Step 1: Download the Api2Code Extension by clicking the "Download CRX" button on the website.
Look for the Api2Code extension you wish to install. Go to the website and download the Api2Code extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for Api2Code extension that contains all the data.
Step 2: Extract &Arrange Files
Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.
Step 3: Go to the Chrome Extensions Page
Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.
Step 4: Drag and Drop the Extension
Now, go to the folder where you extracted the Api2Code extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.
Step 5: Complete the Installation
Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.
Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.
Method 2: Download Api2Code extension for Chrome and install in Developer Mode
This is another method to install Api2Code extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.
Step 1: Download the Api2Code extension file
Select and download the Api2Code extension by clicking the 'Download CRX' button on the website.
Step 2: Extract the downloaded contents
Convert the file to a ZIP file if it is in CRX format then extract the Api2Code extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your Api2Code extension running.
Step 3: Open Chrome Extension Setting Page
In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.
Step 4: Enable Developer Mode
After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.
Step 5: Load the Unpacked Extension
Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."
Step 6: Select the Extension Folder
Once the pop-up opens upon clicking Load unpacked, select the Api2Code extension directory and click on the "Select Folder "button.
Step 7: Confirm and Install
After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.
Conclusion
Here we've made a step-by-step guide on How to manually install Api2Code extension in 2 ways. We hope this guide proves helpful.
Similar Extensions
Omni - Bookmark, History, & Tab Manager 68 63 ★ 1.91MiB
FeHelper(前端助手) 68 321 ★ 2.72MiB
Console Importer 68 20 ★ 9.55KiB
Apifox Browser Extension 68 9 ★ 28.39KiB
YapiHelper 68 1 ★ 318KiB
Axure RP Extension for Chrome 68 758 ★ 14.44KiB
稀土掘金 68 339 ★ 4.66MiB
Ajax Modifier 68 48 ★ 2.08MiB
TS Helper 68 1 ★ 41.89KiB
Formily DevTools 68 4 ★ 2.43MiB
yapi-ts 68 1 ★ 33.2KiB
aigc-api 68 1 ★ 76.74KiB
MobX Developer Tools 68 51 ★ 682KiB
Relingo - Master Words | Bilingual Subtitles | Immersive Translate | Free 68 802 ★ 5.36MiB
Vue.js devtools (beta) 68 149 ★ 2.54MiB
YApi-X 68 13 ★ 13.74KiB
PostWoman Http Test 68 46 ★ 834KiB
V2EX Polish 68 95 ★ 193KiB
XSwitch 68 18 ★ 1.6MiB
swagger-type-generator 68 7 ★ 482KiB
Octotree - GitHub code tree 68 1139 ★ 3.54MiB
二维码(QR码)生成器(QR Code Generator) 68 124 ★ 94.16KiB
free-swagger 68 4 ★ 521KiB
File Icons for GitHub and GitLab 68 48 ★ 460KiB
User reviews
Devin Qiu (ID: 000000504ef67a2c) Voted 5 ★ - Updated 08/04/2022
Yu Tong (ID: 000000118fa01222) Voted 5 ★ - Updated 12/30/2021
博博群 (ID: 000000bb4b12834a) Voted 5 ★ - Updated 12/29/2021
泥尘雨 (ID: 0000005db4ba76a9) Voted 5 ★ - Updated 12/22/2021
dr2009 (ID: 00000010186474a9) Voted 5 ★ - Updated 12/22/2021