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

cass-rn-kit

v1.0.8

Published

开思APP RNKit基础层

Downloads

7

Readme

@casstime/[email protected]

混合框架RN端

core:

util:

1. registerNavConfig 注册模块导航信息

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | config | 注册路由模块所需的参数 | object | {} |

2. setTitle 设置导航栏的标题

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | title | 标题 | string | - | | index | 页面角标 | number | - |

event:

1. emitNativeEvent RN给原生发送事件

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | eventName | 事件名 | string | - | | params | 参数 | object | [可选] |

options:

router:

1. performWithUri 执行协议,路由跳转

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | url | 协议地址 | string | - |

2. replaceWithUri 根据协议替换栈顶的视图控制器

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | url | 协议地址 | string | - |

3. pop 返回前index个页面

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | index | 返回堆栈的个数 | number | 1 | | animate | 是否有动画 | boolean | true |

4. popToTop 返回堆栈底部

5. getStackLength 获取当前堆栈的总个数

6. getLatestStackIndex 获取协议对应的堆栈角标

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | url | 协议地址 | string | - |

7. getStacks 获取当前所有堆栈信息

asyncStorage:

1. getItem 获取缓存值

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | key | 值的键 | string | - |

2. setItem 设置缓存

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | key | 值的键 | string | - | | data | 数据源, 如果是对象,必须进行序列化处理| string | - |

3. removeItem 删除缓存

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | key | 要删除的键 | string | - |

4. mergeItem 合并缓存

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | key | 值的键 | string | - | | data | 数据源, 如果是对象,必须进行序列化处理| string | - |

http:

1. request 发起网络请求

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | url | 请求地址 | string | - | | method | http请求方法 | string | get | | baseURL | 请求的host,url不是绝对路径的时候,会加在url前面 | string | - | | headers | 请求头,例如{'X-Requested-With': 'XMLHttpRequest'} | Object | - | | params | 请求参数 | Object | - | | data | 请求body,当method为methods 'PUT', 'POST', 'PATCH' 该参数有效 | string/Array/Object | - | | timeout | 超时时间,单位为秒 | number | 15 | | withCredentials | 是否传cookie | boolean | true |

imageBrowser:

1. showImages 展示大图

| 参数 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | imageList | 数组类型,图片路径数组 | string[] | - | | defaultIndex | 被点击查看图片的序号 | number | 0 |