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

@vvfx/browser-upgrade

v0.0.6

Published

VVFX 项目浏览器升级提示页

Downloads

10

Readme

VVFX Browser Upgrade

VVFX 项目浏览器升级提示页

特性检测

filesystem: Modernizr Filesystem detection

使用

使用脚本的方案插入页面。

<script src="https://gw.alipayobjects.com/os/lib/vvfx/browser-upgrade/${packageVersion}/index.js"></script>

配置

在 script 上加入 data-xxx 属性进行配置。

可用配置:

  • data-title
  • data-subtitle
  • data-download-chrome-text
  • data-download-chrome-url
  • data-download-chrome-icon
  • data-download-firefox-text
  • data-download-firefox-url
  • data-download-firefox-icon
  • data-download-edge-text
  • data-download-edge-url
  • data-download-edge-icon

默认配置:

<script
    src="https://gw.alipayobjects.com/os/lib/vvfx/browser-upgrade/${packageVersion}/index.js"
    data-title="当前浏览器不支持"
    data-subtitle="为了获取最佳的使用体验,请升级浏览器"
    data-download-chrome-text="下载 Chrome"
    data-download-chrome-url="https://www.google.cn/chrome/index.html"
    data-download-chrome-icon="https://mdn.alipayobjects.com/huamei_08cv20/afts/img/A*--rqQ6YLrvkAAAAAAAAAAAAADt-9AQ/original"
    data-download-firefox-text="下载 Firefox"
    data-download-firefox-url="https://www.firefox.com.cn/"
    data-download-firefox-icon="https://mdn.alipayobjects.com/huamei_08cv20/afts/img/A*xoFoSoao_0UAAAAAAAAAAAAADt-9AQ/original"
    data-download-edge-text="下载 Edge"
    data-download-edge-url="https://www.microsoft.com/zh-cn/edge"
    data-download-edge-icon="https://mdn.alipayobjects.com/huamei_08cv20/afts/img/A*kLwGS74yLcAAAAAAAAAAAAAADt-9AQ/original"
></script>

检查

import '@vvfx/browser-upgrade/check'

该模块的副作用会自动检查浏览器升级提示是否工作,如工作将阻塞后续代码的执行,需要放到工程代码启动前执行 check。