自动打开浏览器open库

daiweishuai

自动打开浏览器open库

使用

INFO

用户设定host 或者 port,在浏览器自动打开链接

const open = require('open');

await open(`http://${this.config.host}:${this.config.port}`, { app: { name: 'google chrome' } });
Last Updated 6/28/2025, 8:51:06 AM
ON THIS PAGE