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

native-sharing

v1.0.4

Published

基于nativeShare进行了二次扩展, 添了除调起UC,QQ浏览器内置分享组件之外的其他浏览器适配。添加到npm。

Downloads

10

Readme

mobile-share.js 社交分享组件(demo)

一个在手机端调用分享原生功能的组件,适配包括QQ,微信,UC,Safrai所有手机浏览器。 此插件基于nativeShare进行了二次扩展,添了除调起UC,QQ浏览器内置分享组件之外的其他浏览器适配。

添加到 npm

依赖

  • 本插件不依赖任何其他的js库和组件。

使用方式

请注意,这里的new nativeShare('nativeShare',config) 中的nativeShare是绑定触发按钮的,这里和原来插件使用方式不同的地方。 其他的config配置如下,详细的请参考index.html

<script>
    var config = {
        url:'http://blog.wangjunfeng.com',// 分享的网页链接
        title:'王俊锋的个人博客',// 标题
        desc:'王俊锋的个人博客',// 描述
        img:'http://www.wangjunfeng.com/img/face.jpg',// 图片
        img_title:'王俊锋的个人博客',// 图片标题
        from:'王俊锋的博客' // 来源
    };
    var share_obj = new nativeShare('nativeShare',config);

========

效果图

MacDown Screenshot MacDown Screenshot MacDown Screenshot