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

inspire.js

v2.0.8-beta

Published

inspire-js 是一个使用HTML扩展属性来扩展原生HTML标签的功能,比如input的校验、自动去空格、自动完成等功能。

Downloads

2

Readme

inspire.js

inspire-js 是一个使用HTML扩展属性来扩展原生HTML标签的功能,比如input的校验、自动去空格、自动完成等功能。

安装

bower:

$ bower install inspireso/inspire.js --save

spm:

$ spm install inspire-js --save

使用

var inspire = require('inspire-js');
// config inspire.js
inspirejs.tableDragable.config.selector="table";
inspirejs.tableSortable.config.selector="table";

// use inspiresoControls

或者直接在 html 页面中引入脚本

<script type="text/javascript" src="https://github.com/inspireso/inspire.js/tree/master/dist/inspire-js/x.x.x/inspire.js"></script>

模块

  • asnyc: 异步加载资源
  • checkbox: 表格多选功能,可用 multiselect 代替
  • confirm: 确认框的扩展,避免禁用脚本后确认提示框失效
  • datetime-picker:时间控件
  • decimal: 设置decimal的自动格式化功能
  • dialog:弹出框控件
  • jump: 几秒后自动跳转到指定链接功能
  • link: 扩展链接的click事件
  • messenger: 自动配置消息提示功能
  • money: 设置和钱有关的自动格式化,可以用decimal.js代替
  • multiselect: 多选框,使用于任何checkbox的多选
  • number: 控制数字的输入和格式化
  • pagination: 自动配置分页控件
  • required: 校验必填字段
  • roles: 扩展 <input>控件,预定义角色用于调整input的行为,比如role=email,role=url 等
  • string case: 自动大小写
  • double submit: 在页面段控制重复提交
  • table sortable: 表格自动排序(仅限于浏览器端的数据)
  • table dragable: 表格列拖拽配许(仅限于浏览器端的数据)
  • input trim: 自动删除前后的空格
  • typeahead: 自动完成(输入自动联想)
  • validity: 自动校验消息的设置

License

This plugin is available under the MIT license.