
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
readmyconfig
Advanced tools
A simple JavaScript library to read Node.js project configuration files synchronously without requiring await.
A simple JavaScript library to read Node.js project configuration files synchronously without requiring await.
npm install readmyconfig
import Konf from 'readmyconfig';
// Read package.json
const pkg = Konf.package();
console.log(pkg.name, pkg.version);
// Read tsconfig.json
const tsconfig = Konf.tsconfig();
console.log(tsconfig.compilerOptions?.target);
// Read vite config
const vite = Konf.vite();
console.log(vite); // Raw content for JS/TS files
// Read ESLint config
const eslint = Konf.eslint();
console.log(eslint);
// Read Prettier config
const prettier = Konf.prettier();
console.log(prettier);
// Check what configs are available
console.log(Konf.list());
// Check if a specific config exists
if (Konf.has('package')) {
console.log('package.json found');
}
// Get any config by name
const customConfig = Konf.get('webpack');
package.jsontsconfig.jsonvite.config.js / vite.config.ts.eslintrc.json / .eslintrc.js / eslint.config.js.prettierrc / .prettierrc.json / prettier.config.jswebpack.config.jsrollup.config.js.babelrc / babel.config.jsonjest.config.jsvitest.config.tstailwind.config.jspostcss.config.jsnext.config.jsnuxt.config.jsKonf.package() - Returns package.json contentKonf.tsconfig() - Returns tsconfig.json contentKonf.vite() - Returns vite config contentKonf.eslint() - Returns ESLint config contentKonf.prettier() - Returns Prettier config contentKonf.webpack() - Returns webpack config contentKonf.rollup() - Returns rollup config contentKonf.babel() - Returns babel config contentKonf.jest() - Returns jest config contentKonf.vitest() - Returns vitest config contentKonf.tailwind() - Returns tailwind config contentKonf.postcss() - Returns postcss config contentKonf.next() - Returns next.js config contentKonf.nuxt() - Returns nuxt.js config contentKonf.get(name) - Returns config by nameKonf.has(name) - Checks if config existsKonf.list() - Returns array of available config namesgit checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Puparia
FAQs
A simple JavaScript library to read Node.js project configuration files synchronously without requiring await.
We found that readmyconfig 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.