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

@da.li/core-libs

v1.25.1227

Published

大沥网络函数库是大沥网络提供的一个公共 TypeScript 函数库,封装了基础操作、缓存、加密、文件处理、HTTP 请求等常用功能模块,旨在提高开发效率。

Readme

大沥网络函数库 (@da.li/core-libs)

NPM version NPM downloads

大沥网络函数库是大沥网络提供的一个公共 TypeScript 函数库,封装了基础操作、缓存、加密、文件处理、HTTP 请求等常用功能模块,旨在提高开发效率。

安装

你可以使用 npm 或 yarn 来安装 @da.li/core-libs

npm install @da.li/core-libs
# 或者
yarn add @da.li/core-libs

功能模块

注意事项

全局对象

$console$cache$on, $off, $emit 等全局对象已经从默认导入中移除,如需加载就使用请自行导入。

  1. 按需导入:
// $con 控制台输出
import '@da.li/core-libs/console';

// $cache 缓存
import '@da.li/core-libs/cache';

// $on, $off, $emit 事件总线
import '@da.li/core-libs/eventBus';
  1. 一次性全部导入:
import '@da.li/core-libs/global';

导入调整

为了避免全局对象的污染,我们将全局对象的导入方式调整为按需导入。

// 全局基础导入,不含第三发库,不含初始启动的全局对象
// 仅常用的基础函数,不含:缓存、定时任务、http 请求
import { xxx } from '@da.li/core-libs/base';

// 全局基础导入,不含第三发库,不含初始启动的全局对象
// 相比 base 模块,包含:缓存、定时任务、http 请求
import { xxx } from '@da.li/core-libs/limit';

// 默认导入方式,含第三发库,不含初始启动的全局对象
// 相比 limit 模块,包含了第三发库的引用,如:dayjs
import { xxx } from '@da.li/core-libs';

// 全量导入方式,包含所有功能模块,含初始启动的全局对象
import { xxx } from '@da.li/core-libs/global';

许可证

MIT License © 2024 湖南大沥网络科技有限公司