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

dophin-core

v0.7.5

Published

dophin core

Readme

dophin core

Discription

dophin core 是dophin部分核心方法、基类、类型的抽象,对外暴露以下内容:

DophinBaseClass: 基类
Runtime: 记录dophin运行各阶段的数据
getAllProjects: 获取所有项目列表
getRootConfig/getProjectConfig: 获取项目配置
utils: 工具方法

Develop & Deploy

本项目使用typescript开发, mocha测试,发布到https://www.npmjs.com/

开发步骤

  1. npm i typescript -g 全局安装tsc, npm i 安装项目依赖

  2. npm start 开启本地编译服务并监听所有源码文件变化

  3. npm run clean 清除编译文件(这些文件不应该提交到git)

  4. npm run lint lint检查

  5. npm run build 编译文件,本步骤会自动运行 npm run clean

发布步骤

  1. 将本地ts文件编译成js文件: npm run build

  2. 修改版本号: npm version patch/minor/major,请遵循npm版本号规则

  3. 发布: npm publish

项目源码目录 (本目录未包含文件都是编译后生成的)

.
├── README.md
├── do.config.js                ----- 这个文件其实是给单元测试用的
├── src                         ----- 【入口】项目源码
│   ├── DophinBaseClass.ts      ----- dophin 基类
│   ├── const                   ----- 一些固定配置或变量
│   │   └── index.ts
│   ├── dependencies            ----- 本项目主要的内容,对外暴露的三个方法
│   │   ├── GetAllProjects.ts
│   │   ├── GetProjectConfig.ts
│   │   └── GetRootConfig.ts
│   ├── index.ts                ----- 项目入口
│   └── utils                   ----- 一些工具方法
│       ├── debounce.ts
│       ├── getTime.ts
│       ├── index.ts
│       └── log.ts
├── test                        ----- 单元测试目录
│   └── index.test.js
├── tsconfig.json               ----- tsc编译器配置文件
├── tslint.json                 ----- tslint配置文件
├── types                       ----- 编译后生成的类型文件