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

@es-pkg/config

v1.0.9

Published

gulp 配置

Readme

@es-pkg/config

gulp 配置

NPM Version  NPM Version  unpacked size  Author

📦 Installation

npm install @es-pkg/config

🏠 Exports

|参数|类型| |---|---| |🔖default|References| |📒EsPkgConfig|Interfaces| |☀️config|Variables| |☀️pkg|Variables| |☀️shallowInputs|Variables| |🎗️defineConfig|Functions| |🎗️getDirectoryIndexPath|Functions| |🎗️getEntrypoint|Functions| |🎗️getIncludeFiles|Functions| |🎗️getIndexFilePath|Functions| |🎗️getJson|Functions| |🎗️getNpmEntry|Functions| |🎗️relativeToApp|Functions| |🎗️resolveApp|Functions| |🎗️resolveConfig|Functions|

🔖References

default

Renames and re-exports defineConfig

📒Interfaces

EsPkg配置

EsPkgConfig

|参数|类型|说明|默认值| |---|---|---|---| |cjs|?: string|cjs 目录|默认为./npm/cjs| |css||参数|类型|说明|默认值| |---|---|---|---| |browserslist|?: string[]|autoprefixer browserslist|默认为['last 2 versions']| |extra|?: string[]|额外包含的css文件 @default默认为[]|| |extract|?: string \| boolean|输出配置:提取为单独的 CSS 文件(推荐) 可选:不提取,嵌入到 JS 中(通过 import 会生成 style 标签)|默认为${name}.min.css|||| |doc|?: string | Partial<DocOptions>|md文档名称|默认为 README| |entry|?: string|入口|默认为./src| |es|?: string|es 目录|默认为./npm/es| |iife|?: string|iife 目录|默认为./npm/dist| |include|?: string[]|包含的文件|默认为./src| |publishAccess|?: [string, string]||| |publishDir|?: string|npm发布目录|默认为../npm| |publishRegistry|?: string|发布仓库 默认https://registry.npmjs.org*|| |typings|?: string|声明 目录|默认为./typings|

☀️Variables

Const config

: Required<EsPkgConfig> = ...

Const pkg

: any = ...

Const shallowInputs

: string[] = ...

🎗️Functions

defineConfig

  • 配置自定义

  • defineConfig(config:EsPkgConfig): EsPkgConfig

getDirectoryIndexPath

  • getDirectoryIndexPath(dir:string): string

getEntrypoint

  • getEntrypoint(basePath:string, entry?:string): string

getIncludeFiles

  • getIncludeFiles(): {

        isDirectory: boolean;

        path: string;

    }[]

getIndexFilePath

  • getIndexFilePath(_path:string): string

getJson

  • getJson(relativePath:string): any

getNpmEntry

  • getNpmEntry(entry:string, _basePath:string): string

relativeToApp

  • relativeToApp(relativePath:string): string

resolveApp

  • resolveApp(relativePath:string): string

resolveConfig

  • resolveConfig(): Promise<void>