npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ry-istanbul-web

v0.0.7

Published

Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests

Downloads

8

Readme

ry-istanbul-web - istanbul transformed js

ry-istanbul-web - istanbul改后的js

istanbul documentation can be found here

https://istanbul.js.org/

Istanbul 文档可参考

http://www.npmdoc.org/istanbulzhongwenwendangzhongwenshili.html

Getting started

$ npm i ry-istanbul-web

安装命令

$ npm i ry-istanbul-web
  • npm address:https://www.npmjs.com/package/ry-istanbul-web
  • npm 地址:https://www.npmjs.com/package/ry-istanbul-web
  • Gitlab address:https://git.minrow.com/ry/istanbul-web
  • Gitlab地址:https://git.minrow.com/ry/istanbul-web

Add parameter description

| parameter | explain | type | An optional value | default | | ------------------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ | -------- | | changeLists | Displays an array of delta codes | Array | [] | null | | IS_HTML_CSS | Whether to display html and css structures | Boolean | true/false | false |

For the delta code to display the array, you need to add an array of changeLists to the window.coverage object, such as [3,4] for the third, third and fourth lines of the delta code vue transmits IS_HTML_CSS to control whether to display css and html code, while other frameworks can directly see html and css structures without transmission

增加参数说明

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ------------------- | ------------------------------------------------------------ | -------- | ------------------------------------------------------------ | -------- | | changeLists | 显示增量代码数组 | Array | [] | null | | IS_HTML_CSS | 是否显示html、css结构 | Boolean | true/false | false |

增量代码显示数组,需向window.__coverage__对象中增加changeLists数组,如[3,4]为增量代码行数第三3和第4行 是否显示css和html代码,vue下传输IS_HTML_CSS进行控制,其他框架则无需传输可直接看到html、css结构

other description

This plugin needs to be used with babel-plugin-istanbul-ry and istanbul-middleware-ry

其他说明

本插件需配合babel-plugin-istanbul-ryistanbul-middleware-ry一起使用

babel-plugin-istanbul-ry

istanbul-middleware-ry

  • NPM address:https://www.npmjs.com/package/istanbul-middleware-ry
  • GitLab address:https://git.minrow.com/ry/istanbul-middleware-ry
  • NPM地址:https://www.npmjs.com/package/istanbul-middleware-ry
  • GitLab地址:https://git.minrow.com/ry/istanbul-middleware-ry
  • The istanbul-middleware-ry istanbul viewing service is transformed from istanbul-middleware, and the start service is added. The istanbul code coverage can be collected and viewed through the global command coverage -n start service.
  • istanbul-middleware-ry istanbul查看服务由istanbul-middleware改造而来,增加启动服务,可通过全局命令coverage -n启动服务收集并查看istanbul代码覆盖率。