
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
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.
The npm package minipp receives a total of 2 weekly downloads. As such, minipp popularity was classified as not popular.
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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.