{ "features": { "code": "regex_2rth1sc5dn", "explain": " html2img", "cmds": [ { "label": " html2img", "type": "regex", "match": "/(http:\\/\\/)|(https:\\/\\/)|(file:\\/\\/)|(^\\/(\\w+\\/?)+$)/", "minNum": 1 } ], "icon": "logo/quickcommand.png", "platform": [ "darwin" ] }, "program": "quickcommand", "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('转换成功, 已复制路径到剪贴板.')", "output": "ignore", "hasSubInput": false, "scptarg": "", "tags": [], "authorId": 2028413, "authorName": "一碰"}