Write your library and share it with your colleauges.
2. How to write an addon?
1.
Open User Addon folder at ~/Library/Application\ Support/com.proxyman.NSProxy/users or you can open by opening the More Button -> Documentations -> Open Custom Addons Folder...
2. Duplicate HelloWorld.js file and rename it to MyAwesomeAddon.js
3. Open the file and you can see the template.
4. Change the metadata and write your JS Code
1
/**
2
{
3
"name":"My Awesome Addon",
4
"description":"The first User Addons",
5
"author":"Proxyman",
6
"tags":"helloworld"
7
}
8
**/
9
​
10
const{ md5 }=require("@addons/MD5.js");
11
​
12
constsayHello=()=>{
13
var content ="Hello World. My first custom Addon.";
14
var hash =md5(content);
15
return content +". MD5 = "+ hash;
16
};
17
​
18
// Make sure you export the function at the end of method
19
exports.sayHello = sayHello;
20
​
Copied!
You can import built-in addons by using require(@"addons/<name.js>")