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

ieold

v1.3.0

Published

IE warning alert 警告框 过时 Obsolete , ie6, ie7,ie8,ie9,ie10,ie11

Downloads

18

Readme

ieold Build Status

在开发网站的过程中,不管是优雅降级和渐进增强,总有1款IE 不适合你,然而为了更好的用户体验,你肯定需要一款面对我不兼容浏览器脚本的提示,已提交网站的健硕和友好的交互,由此你应该用的到 IE-FBI-WARNing

This is a generic version of the browser in a full screen friendly prompts users To replace the browser's small script, display the following:

这是通用的一个在低版本浏览器上以全屏形式友好提示用户 更换浏览器的小脚本,展示效果如下:

See any browser directly open index.html 看效果任何浏览器直接打开index.html

###Effect display 效果图()

IE-FBI-WARNing.png

Install

$ npm install --save ieold

Usage Method 1

//=> react
//
import ieold from 'ieold'
// @param version
// version <=  (6-11)
//
ieold(9)

Usage Method 2

//=> common
//
const ieold = require('ieold');
ieold(9)

Usage Method 3

//=> 普通引用 common including
<script type="text/javascript" src="index.src.js"></script>

//IE 10 以上
<script type="text/javascript" >
  if (navigator.userAgent.match(/Trident\/6/)) {
      document.write('<script src="index.src.js"><'+'/script>');
  }
</script>

react use

http://www.jianshu.com/p/811d56f5ddd8

##merit 优点

1.使用方便,只需加几行 IE-only 的条件注释代码,对现代浏览器不会产生任何影响

1.Easy to use, just need to add a few lines of IE-only conditional comment code, will not have any impact on modern browsers

2.大小:整站才45Kb(包含图片)

2.Size: 45Kb station (including images)

3.醒目,目前多数的网站做法只是在顶部很窄的位置提示一句话,达不到鼓励用户更换浏览器的目的。而本身是否完全放弃 IE 也是网站自己的选择。此脚本明显地告知用户,之后遇到样式和功能不正常是因为你已经落伍了。

3.Eye-catching, at present, most of the site practice is only a very narrow position on the tip of a word, can not achieve the purpose of encouraging users to replace the browser. And whether or not to completely abandon the IE site is their own choice. This script clearly informs the user that the style and function are not normal because you are out of date.