
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@esconf/preset-mini
Advanced tools
esconf 的最小预设
内置解析器一览
.mts .ts .cts .mjs .js .cjs 基于 jiti@2 导入.json .jsonc .json5 .yaml .yml .toml 基于 confbox 导入.${name}rc ${homedir}/.${name}rc 基于 rc9 导入注意: 预设 js,ts 解析只包含 es module 的解析
# ✨ Auto-detect
npx nypm install @esconf/preset-mini
# npm
npm install @esconf/preset-mini
# yarn
yarn add @esconf/preset-mini
# pnpm
pnpm install @esconf/preset-mini
# bun
bun install @esconf/preset-mini
# deno
deno install @esconf/preset-mini
import { loadConfig } from '@esconf/core'
import { presetMini , tsParser } from '@esconf/preset-mini'
const config = await loadConfig({
presets:[
presetMini({
// 配置如下会解析 vite.config.{cts,ts,mts} vite.{toml,....}
name:'vite',
configName:'config',
// 设置 ts 文件解析规则
ts:{
fsCache: false
},
// 关闭js 文件解析
js: false,
// ....
})
],
// 数组越靠前配置文件的优先级越高
// layers 的优先级比 presets 高
layers: [
{
// load from vrx.config.{mts,ts}
files: ['vrx.config'],
extensions: ['mts', 'ts'],
parser: tsParser(),
},
],
// 配置默认值
default: { defaultValue: 'value' },
cwd: process.cwd(),
// 如果某个 layer 命名了,可以用 layer 的名称在运行时排除
excludeLayer: ['preset-mini:toml'],
// 如果 excludeLayer 的 类型时 funcition ,则可以根据 layer 配置的特征自行决定运行时是否排除
excludeLayer: (layer) => layer.extensions.includes('yaml')
})
Published under the MIT license.
Made by @Colourlessglow and community 💛
🤖 auto updated with automd
FAQs
`esconf` 的最小预设
We found that @esconf/preset-mini demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.