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

@jnrs/vue-core

v1.1.6

Published

巨能前端工程化开发,Vue 专用核心功能包。

Downloads

627

Readme

@jnrs/vue-core

✨ 介绍

巨能前端工程化开发,Vue 专用核心功能包。

  • Pinia store
  • Vue composables
  • Vue Router
  • 全局指令
  • 插件
  • 公共 Vue 组件

💻 技术栈

TypeScript、Vue3 生态

🧩 安装教程

pnpm add @jnrs/vue-core

🔍 使用示例

import type { User, DictItem } from '@jnrs/vue-core'
import { useRouter, useRoute } from '@jnrs/vue-core/router'
import { useAuthStore } from '@jnrs/vue-core/pinia'

📋 API

@jnrs/vue-core 模块

接口

  • User
  • DictItem
  • Dict
  • MenuItem

函数

  • request 网络请求

@jnrs/vue-core/pinia 模块

函数

/**
 * useSystemStore 系统仓库
 * @returns theme 主题(国际化、主题、自定义强调色)
 * @returns menuCollapse 菜单是否折叠
 * @returns documentFullscreen 文档是否全屏
 * @methods toggleCollapse 折叠菜单切换
 * @methods toggleFullScreen 全屏切换
 * @methods setTheme 设置主题
 */
/**
 * useAuthStore 权限仓库
 * @returns hasAuthenticated 是否已登录
 * @returns token 登录凭证
 * @returns userInfo 用户信息
 * @returns dict 字典
 * @methods asyncSetAuth 设置权限信息
 * @methods clearAuth 清除权限信息
 */
/**
 * useMenuStore 菜单仓库
 * @returns hasFetchedAsyncMenus 菜单是否已获取
 * @returns menus 菜单项
 * @methods asyncSetMenus 设置菜单信息
 * @methods asyncClearMenu 清除菜单信息
 */

@jnrs/vue-core/router 模块

接口

  • RouteMeta
  • RouteLocationNormalizedGeneric
  • RouteLocationNormalizedLoadedGeneric
  • FileModules

函数

  • useRouter 原生 vue-router 函数
  • useRoute 原生 vue-router 函数
  • handleRouter 路由跳转或替换
  • getRoutes 获取已注册路由
  • createVueRouter 创建 vue-router 实例
  • asyncGenerateRoute 设置动态路由,生成路由记录

@jnrs/vue-core/components 模块

Vue 组件

  • GlobalSetting 全局偏好设置

@jnrs/vue-core/composables 模块

Vue 组合式 API

  • GlobalSetting 全局偏好设置