运行默认的 Google Lighthouse 测试以及附加的安全测试
Runs the default Google Lighthouse tests with additional security tests.
npm install -g lighthouse-securityRun the command from CLI like displayed below. The options are the same as for the default Lighthouse CLI options.
lighthouse-security [options]To run security audits only, use the --security flag:
lighthouse-security --security [options]The extension can also be used within your code. A short example is given below. To render reports etc. it is recommended to import functionality from Lighthouse.
const runLighthouse = require('lighthouse-security')
runLighthouse(url, flags)
.then(results => console.log(results))Alternatively you can import just the lighthouse-security configuration and use it in your own runner:
…Contributions are always welcome. See CONTRIBUTING.md for guidelines and development scripts.
暂无开放 Issues,或尚未同步最近议题。