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

cy-mathjs

v1.0.0

Published

rh cy-mathjs

Downloads

3

Readme

cy-element

一些常用的组件,使用react hooks编写

install

npm install cy-element 或者 cnpm install cy-element

css3 flex 布局组件

import { view } from 'cy-element'

example

组件View布局示例

property api

property | default | type | values | description ---------| ------- | ---- | ------ | ----------- row | true | boolean | true or false | 水平居中 column | false | boolean | true or false | 垂直居中 wrap | false | boolean | true or false | 换行 flex | false | boolean | true or false | 填满剩余空间 around | false | boolean | true or false | 平均分布 justContent | start | string | start, center, end | 水平位置 alignItems | top | string | top, middle, bottom | 垂直位置 line | null | string | top, left, right, bottom | 0.5像素细线主要用于移动端

import { EventEmitter } from 'cy-element'

property | default | type | description ---------| ------- | ---- | ----------- emit | void | Function | 发布事件 listenerEmit | void | Function | 订阅事件 removeListeners | void | Function | 移除订阅的事件

EventEmitter.listenerEmit(type, func) 订阅事件
EventEmitter.emit(type, args) 发布事件
EventEmitter.removeListeners(type, func) 移除事件

pc图片预览组件,以横屏或竖屏为基准进行等比缩放,大图预览,支持数组或对象数组['.png']或[{url: '.png'}],是对象数组的时候可以设置title,显示的标题,不设置则为图片索引加图片数目为图片标题

property | default | type | values | description ---------| ------- | ---- | ------ | ----------- visible | false | boolean | true or false | 打开、关闭 data | empty | array | array | 图片数组

example

图片预览示例