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

@movk/core

v1.1.0

Published

为 TypeScript 项目设计的现代化、支持 Tree-Shaking 的工具函数库。

Readme

Movk Core

@movk/core 是一个为 TypeScript 项目设计的现代化、支持 Tree-Shaking 的工具函数库,涵盖了数组、对象、字符串、异步操作等多个方面。

TypeScript npm version npm downloads bundle JSDocs License Movk Nuxt Docs

✨ 特性

  • 完整类型定义:使用 TypeScript 构建,提供完整的类型定义和卓越的类型推断。
  • 支持 Tree-Shaking:精心设计的模块化结构,只打包你需要的代码,减小生产环境的包体积。
  • 80+ 实用工具:涵盖数组、对象、字符串、异步操作、URL 处理、树形结构等多个领域。
  • Vue 组合式函数:提供 useAppStorageuseCopyCode 等即用型 Vue Composables。
  • 现代化构建:使用 Unbuild 构建,原生支持 ES Modules,无缝融入现代前端工程化体系。

🚀 快速开始

# pnpm
pnpm add @movk/core

# yarn
yarn add @movk/core

# npm
npm install @movk/core

📖 模块概览

@movk/core 提供以下模块:

Composables

Vue 组合式函数,用于状态管理、剪贴板操作等常见场景。

Validators

类型检查和验证工具,包括 isObjectisArrayisString 等。

Utilities

通用工具函数,包括 UUID 生成、哈希计算等。

Transformers

数据转换工具,包括:

  • String:字符串格式转换(camelCase、kebabCase、snakeCase 等)
  • Object:对象操作(pick、omit、deepClone、路径访问等)
  • Tree:树形数据结构操作(遍历、查找、转换等)

Helpers

专用辅助函数,包括:

  • Array:数组操作(unique、chunk、flatten)
  • Async:异步控制(throttle、debounce、sleep)
  • File:文件处理(格式化大小、触发下载等)

📁 目录结构

src/
├── composables/          # Vue 组合式函数
│   ├── useAppStorage     # 应用存储管理
│   └── useCopyCode       # 剪贴板复制
├── validators/           # 类型验证工具
│   ├── isObject          # 对象检查
│   ├── isArray           # 数组检查
│   ├── isString          # 字符串检查
│   └── ...               # 其他验证器
├── utilities/            # 通用工具函数
│   ├── array/            # 数组工具
│   ├── async/            # 异步工具
│   └── url/              # URL 工具
├── transformers/         # 数据转换工具
│   ├── string/           # 字符串转换
│   ├── object/           # 对象转换
│   └── tree/             # 树形结构操作
│       ├── fromList      # 扁平转树形
│       ├── toList        # 树形转扁平
│       ├── find          # 节点查找
│       ├── filter        # 节点过滤
│       ├── transform     # 节点转换
│       └── ...           # 其他树操作
└── helpers/              # 辅助函数
    ├── file/             # 文件处理
    ├── object/           # 对象操作
    └── path/             # 路径处理

⚡ 技术栈

📄 许可证

MIT License © 2024-PRESENT YiXuan