1. {
    2. "features": {
    3. "code": "regex_2rth1sc5dn",
    4. "explain": " html2img",
    5. "cmds": [
    6. {
    7. "label": " html2img",
    8. "type": "regex",
    9. "match": "/(http:\\/\\/)|(https:\\/\\/)|(file:\\/\\/)|(^\\/(\\w+\\/?)+$)/",
    10. "minNum": 1
    11. }
    12. ],
    13. "icon": "logo/quickcommand.png",
    14. "platform": [
    15. "darwin"
    16. ]
    17. },
    18. "program": "quickcommand",
    19. "cmd": "var process = require('child_process');\nurl = `{{input}}`;\nname = Math.random().toString(36).slice(-8);\n// brew install webkit2png\ncmd = '/usr/local/bin/webkit2png -D /tmp -F -o ' + name + ' ' + url;\nprocess.exec(cmd);\n\npath = '/tmp/' + name + '-full.png';\n\ncmd = 'echo \"' + path + '\" | pbcopy';\nprocess.exec(cmd);\n\nutools.shellOpenPath(path);\nutools.showNotification('转换成功, 已复制路径到剪贴板.')",
    20. "output": "ignore",
    21. "hasSubInput": false,
    22. "scptarg": "",
    23. "tags": [],
    24. "authorId": 2028413,
    25. "authorName": "一碰"
    26. }