@deepcode/dcignore

中文文档
1.0.4发布于 2021/08/20MITCommonJS零依赖近 30 天下载 1.7万

Default implementation of .dcignore file

原始使用文档

dcignore

This repository offers a default implementation of the .dcignore file and an automatic generator based on common .gitignore patterns found in https://github.com/github/gitignore

CLI usage

  1. Clone this repository
  2. Copy the full.dcignore file into the root of your project and rename it .dcignore

Module usage

  1. npm install @deepcode/dcignore
  2. Import the module.
  3. Use the DefaultDCIgnore string to fill a standard .dcignore file.
  4. Use the CustomDCIgnore string if you need to initialize an empty .dcignore with some content.

Javascript

const { DefaultDCIgnore, CustomDCIgnore } = require('@deepcode/dcignore');

Typescript

import { DefaultDCIgnore, CustomDCIgnore } from "@deepcode/dcignore";

版本与发布记录

@deepcode/dcignore 共发布 5 个版本,首次发布于 2020/07/14;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.0.4latest2021/08/205 年前
1.0.32021/08/185 年前
1.0.22020/07/156 年前
1.0.12020/07/146 年前
1.0.02020/07/146 年前

关于 @deepcode/dcignore 的常见问题

@deepcode/dcignore 是什么?

Default implementation of .dcignore file

如何安装 @deepcode/dcignore?

在项目目录运行 npm install @deepcode/dcignore,或使用 pnpm add / yarn add / bun add。

@deepcode/dcignore 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/deepcode__dcignore 是否存在。

@deepcode/dcignore 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@deepcode/dcignore 可以商用吗?

@deepcode/dcignore 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@deepcode/dcignore 的下载量有多少?

根据 npm 官方下载统计,@deepcode/dcignore 在 2026/10/12 – 2026/11/10 这 30 天内被下载 16,900 次,日均约 563 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@deepcode/dcignore 还在维护吗?

最新版本 1.0.4 发布于 2021/08/20(5 年前);至今共发布 5 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/07/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。