
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@gaoding/egg-inspector
Advanced tools
[npm-image]: https://img.shields.io/npm/v/egg-inspector.svg?style=flat-square [npm-url]: https://npmjs.org/package/egg-inspector [travis-image]: https://img.shields.io/travis/eggjs/egg-inspector.svg?style=flat-square [travis-url]: https://travis-ci.org/eg
Egg 应用运行时代码覆盖率收集插件
$ npm i @gaoding/egg-inspector --save
// {app_root}/config/plugin.js
exports.inspector = {
enable: true,
package: '@gaoding/egg-inspector',
};
// {app_root}/config/config.default.js
exports.inspector = {
exclude?: string[]; // file exclude, default: ['internal/**', 'node_modules/**']
include?: string[]; // file include, default: ['file:**']
enable?: boolean; // enable code coverage inspect?, default: true
reportHtml?: boolean;// convert dump data to html, default: false
};
插件会注册一个中间件到全局,注册接口事件 GET /coverage-dump, 当访问该接口的时候,会输出代码覆盖文件到 ${project}/coverage 目录下。
FAQs
[npm-image]: https://img.shields.io/npm/v/egg-inspector.svg?style=flat-square [npm-url]: https://npmjs.org/package/egg-inspector [travis-image]: https://img.shields.io/travis/eggjs/egg-inspector.svg?style=flat-square [travis-url]: https://travis-ci.org/eg
We found that @gaoding/egg-inspector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.