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

cdnlib

v0.0.2

Published

Insert a cdn library for your static page.

Downloads

5

Readme

cdnlib

Insert a cdn library for your static page.

特性

  • 支持众多主流cdn网站。
  • 直接从指定html文件中插入/移除库。
  • 可从文件中查看安装了多少cdn个库。
  • 可一次性安装/移除多个库。
  • 支持在线模糊搜索。
  • 支持库版本查看。

安装 cdnlib

使用全局安装

> npm install cdnlib -g

使用

安装一个库

指定版本:

> cdn install [email protected] -f index.html

不指定版本,默认安装最新版本:

> cdn install bootstrap.min -f index.html

不指定-f参数,默认插入到index.html文件:

> cdn install bootstrap.min

移除一个库

> cdn uninstall [email protected] -f index.html

切换域

> cdn use cdnjs.com

目前支持cdn网站

网址 | 说明 ---|--- https://www.bootcdn.cn/ | (国内)Bootstrap 中文网开源项目免费 CDN 加速服务 。 https://cdn.baomitu.com/ | (国内)前端静态资源库,首个支持 HTTP/2 的 CDN 服务,共收录了 3401 个开源项目 http://staticfile.org/ | (国内)开放静态文件 - 为开源库稳定、快速的免费 CDN 服务。 https://www.beecdn.com/ | (国内)BeeCDN是一个专门为前端程序猿提供的开源库CDN加速服务。BeeCDN借助阿里云的OSS存储以及三家互联网巨头(百度云、腾讯云、阿里云)提供的CDN服务,为广大程序猿带来完美的CDN加速体验,让你的服务器减轻负重,让你的网站速度更上一个台阶。 https://cdn.bytedance.com/ | (国内)今日头条静态资源公共库。 http://www.cdnjs.net/ | (国内)前端公共库CDN加速,阿里云CDN加速,永久免费,保护隐私,500+节点毫秒级响应。每日同步cdnjs.com,支持https及请求合并,安全稳定快速。 https://www.jsdelivr.com/ | (国外)A free, fast, and reliable Open Source CDN for npm and GitHub with the largest network and best performance among all CDNs. Serving more than 20 billion requests per month. https://cdnjs.com/ | (国外)cdnjs.com - The best FOSS CDN for web related libraries to speed up your websites!