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 🙏

© 2026 – Pkg Stats / Ryan Hefner

jm-plug

v1.1.9

Published

An ui project base on Vue.js

Downloads

62

Readme

jm-ui

An ui project base on Vue.js

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

用法

main.js

import JmPlug from 'jm-plug' Vue.use(JmPlug)

页面引入comfirm组件

    this.confirmOptions = {  
        type: "warning",//warning  
        title: "提示",//提示  
        message: "are you ok?",//""  
        color: '#66b1ff',  
        btnCancelText: "取消",//取消  
        btnSubmitText: "确定",//确定  
        btnSubmitFunction: function () {
            console.log('ok')
        },  
        btnCancelFunction: function () {  
            console.log('no')  
        }  
    }
    <Jm-comfirm :confirmModalOptions="confirmOptions" ref="myConfirm"></Jm-comfirm>

页面引入scoll组件

<jm-scoll
    :on-refresh="onRefresh"
    :on-infinite="onInfinite"
    :dataList="scrollData"
    :marginTop="marginTop">
    <ul
    ref="scoll">
    <li v-for="(item,index) in listdata">{{item.name}}</li>
    </ul>
</jm-scoll>
    data() {
      return {
        marginTop:'margin-top:50px;',
        pageStart: 0, // 开始页数
        pageEnd: 0, // 结束页数
        listdata: [], // 数据列表
        scrollData:{
          noFlag: false //暂无更多数据显示
        },
        data:[
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
        ],
        data1:[
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
            {name: '23424'},
        ],
      }
    },
    mounted: function() {
      // 首次请求数据
      this.fetchData();
    },
    methods: {
      fetchData() {
        let that = this
        // this.axios.get('/api/testData').then((response) => {
        //   this.listdata = response.data.data.list;
        //   this.pageEnd = response.data.data.totalPage;
          this.listdata = this.data;
          // 获取总页数
          this.pageEnd = 2;
          // 还原
          this.pageStart = 0;
        // })
      },
      // 下拉刷新
      onRefresh(done) {
        this.fetchData();
        done(); // call done
      },
      // 上拉加载更多
      onInfinite(done) {
        this.pageStart++;
        // 加载条
        let more = this.$el.querySelector('.load-more');
        // 判断是否显示加载条
        if(this.pageStart > this.pageEnd){
          //走完数据调用方法
          this.scrollData.noFlag = true;
        }else{
          let _this = this;
          //   this.axios.get('/api/testData').then((response) => {
              // _this.listdata = _this.listdata.concat(response.data.data.list);
              // 获取总页数
              // _this.pageEnd = response.data.data.totalPage;
          //   })
          setTimeout(() => {
            _this.listdata = _this.listdata.concat(this.data1);
            // 获取总页数
            _this.pageEnd = 2;
            // 隐藏加载条
            more.style.display = 'none';
            done();
          },3000)
        }
      }
    }

消息滚动组件

<Jm-marquee :marqueeList="marqueeList">消息滚动</Jm-marquee>
data() {
  return {
    marqueeList: [  //消息滚动
        {
            name: '军电视剧烦恼是的空间开发'
        },

        {
            name: '军水电费了羧甲淀粉钠盛开'
        },

        {
            name: '军第三方库收到货否'
        },

        {
            name: '军杜师傅iOS'
        }
    ]
  }
}