Skip to content

Commit fce13f2

Browse files
committed
style:
1 parent 1041d1f commit fce13f2

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Read in other languages: English | [简体中文](./README.zh-CN.md)
5858
1. Use any editor to write a JavaScript script that must include a globally scoped `transform` function, taking a [curl object](https://cdn.jsdelivr.net/gh/bitjerry/Headers@main/src/main/resources/scripts/test.js) as the only parameter and returning the generated code string.
5959
2. Open Settings -> Tools -> Headers, add a script to the left script list, and paste the script created earlier into the right editor.
6060
3. You can now right-click on "headers" in IDEA to see the corresponding code generation script for curl command transformation.
61+
4. All scripts will be continuously updated in this repository, and you can [click here](https://github.com/bitjerry/Headers/tree/main/src/main/resources/scripts/example) to get more scripts. If you have better suggestions, please submit an issue, and share your script.
6162

6263
![Custom Script](https://cdn.jsdelivr.net/gh/bitjerry/Headers@main/images/custom_script.png)
6364

README.zh-CN.md

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
1. 使用任意编辑器编写一个 JavaScript 脚本, 必须包括一个全局作用域的 `transform` 函数, 接受一个 [curl 对象](https://cdn.jsdelivr.net/gh/bitjerry/Headers@main/src/main/resources/scripts/test.js) 作为唯一参数, 返回生成的代码字符串
5656
2. 打开设置 -> 工具 -> headers, 左侧脚本列表添加一个脚本, 在右侧编辑器中粘贴前方写好的脚本
5757
3. 即可在 IDEA 中右键 headers -> curl 看到对应的代码生成脚本, 转换 curl 命令
58+
4. 所有脚本将持续在本仓库中更新, 可以 [点击](https://github.com/bitjerry/Headers/tree/main/src/main/resources/scripts/example) 获取更多脚本. 如果你有更好的建议欢迎提 issue, 分享你的脚本.
5859

5960
<p align="center"><img src="https://cdn.jsdelivr.net/gh/bitjerry/Headers@main/images/custom_script.png" alt="screenshots"></p>
6061

src/main/resources/scripts/template.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Convert curl request object to code
33
*
44
* More details see https://github.com/bitjerry/Headers
5+
* More script see https://github.com/bitjerry/Headers/tree/main/src/main/resources/scripts/example
56
*
67
* @param {Object} curl
78
* @return {String} The generated code will be embedded in the editor from the mouse position

0 commit comments

Comments
 (0)