
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Quickly help you find files that are not being used in your project, and slim down your project.
Quickly identify unused files in your project to help slim down your codebase.
中文文档:https://github.com/laoer536/minipp/blob/main/README.zh.md
[!WARNING]
⚠️ Currently, only TypeScript projects or frontend React+TS projects are supported. Since the tool focuses on source code files and ignores project configuration files, it will not scan files or folders outside the
srcdirectory. Requires Node.js version >= 20 to run.
.ts, .tsx.css, .less, .scss.png, .jpg, .jpeg, .gif, .svg, .mp3, .mp4, .wav, .woff, .woff2, .ttf, .eot, .jsonTypeScript/TSX Files:
import statements@/*) // Supported by defaultimport() statementsStyle Files:
@import statementsurl() functionsCreate a minipp.config.ts file in the project root:
import { defineMinippConfig } from 'minipp'
export default defineMinippConfig({
ignoreFiles: ['src/index.ts', 'src/core/cli/index.ts'],
ignoreDependencies: ['@types/node'],
})
Glob patterns are also supported:
export default defineMinippConfig({
needDel: false,
ignoreFiles: ['src/index.ts', 'src/core/**'],
ignoreDependencies: ['@types*'],
})
package.json (Backups are saved in the minipp-delete-files folder)
High Performance:
Comprehensive Analysis:
Developer-Friendly:
Project Optimization:
Dynamic Imports:
CommonJS Modules:
require() syntax is not supportedrequire.context() is not supportedmodule.exports and exports are not supportedPath Resolution:
@/) are not supported (default @/ is resolved to src/)Special Syntax:
npm install minipp -D
yarn add minipp -D
pnpm add minipp -D
minipp.config.ts in the Project Rootimport { defineMinippConfig } from 'minipp'
export default defineMinippConfig({
ignoreFiles: ['src/index.ts', 'src/core/cli/index.ts'],
ignoreDependencies: ['@types/node'],
})
Glob patterns are also supported:
export default defineMinippConfig({
needDel: false,
ignoreFiles: ['src/index.ts', 'src/core/**'],
ignoreDependencies: ['@types*'],
})
You can also install it globally:
npm install minipp -g
Don't forget to create minipp.config.ts in the target project's root directory.
minipp
minipp /path/to/your/project
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"] // Supported by default
}
}
}
// Relative path imports
import { Button } from './components/Button';
import { Button } from '../../components/Button';
import { Button } from '../components/Button';
// Path alias imports
import { utils } from '@/utils'; // Resolved as "src/utils"
import { config } from '@config/settings'; // Treated as an external dependency, not a local resource
// BaseUrl imports
import { types } from 'types';
@/utils -> src/utils./utils -> Resolved relative to the current file's directory../utils -> Resolved relative to the parent directory of the current file (supports '../../utils', '..', etc.)Example:
{
"jsLikePathImports": [
"src/core/processors/js-like.ts",
"src/core/processors/style-like.ts",
"src/core/common/index.ts",
"src/core/cli/index.ts",
"src/core/visitor/index.ts"
],
"jsLikeDependenceImports": [
"fs",
"path",
"glob",
"yocto-spinner",
"util",
"@swc/core"
],
"styleLikeImports": [],
"unusedFile": [
"src/index.ts"
],
"codeUnusedDependencies": [
"@swc/cli",
"@types/node",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"changelogen",
"eslint",
"prettier",
"tsconfig-paths",
"tsx",
"typescript",
"unbuild"
]
}
FAQs
Quickly help you find files that are not being used in your project, and slim down your project.
We found that minipp 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.