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 🙏

© 2025 – Pkg Stats / Ryan Hefner

naive-ui-cron

v0.1.0-beta.4

Published

Cron component implemented using naive UI.

Readme

Naive UI Cron

基于 Naive UI 实现的 cron 表达式编辑器组件。

简体中文 | English

特性

  • 🎯 完整的 cron 表达式支持(秒、分、时、日、月、周、年)
  • 🌍 国际化支持(英文、中文、日文)
  • 🎨 基于 Naive UI 的精美界面
  • 📅 下次运行时间预览
  • 💡 可视化编辑,实时预览

安装

# npm
npm install naive-ui-cron

# yarn
yarn add naive-ui-cron

# pnpm
pnpm add naive-ui-cron

使用

<template>
  <naive-cron v-model="cronExpression" :language="language" />
</template>

<script setup>
import { ref } from 'vue'
import NaiveCron from 'naive-ui-cron'

const cronExpression = ref('* * * * * ? *')
const language = ref('zh') // 'en' | 'zh' | 'ja'
</script>

属性

| 名称 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | modelValue | string | '* * * * * ? *' | cron 表达式的值 | | language | 'en' | 'zh' | 'ja' | 'en' | 显示语言 |

事件

| 名称 | 参数 | 说明 | | --- | --- | --- | | update:modelValue | (value: string) | 当 cron 表达式变化时触发 | | change | (value: string) | 当 cron 表达式变化时触发 |

开发

# 安装依赖
pnpm install

# 启动开发服务器
cd playground
pnpm dev

# 构建生产版本
pnpm build

许可证

MIT License © 2024 Ray-D-Song