@winches/ghost
v1.2.2
Published
幽灵依赖扫描工具 scan ghost in project
Readme
@winches/ghost
幽灵依赖扫描工具 scan ghost in project
Usage
Global CLI(命令行注册)
npm i -g @winches/ghost
pnpm add -g @winches/ghost
yarn add -g @winches/ghostscan
# 默认在项目目录下选择文件扫描
ghost scanset scan dir or file
ghost scan packages/pkg1/srcset package.json path to compare
ghost scan src -p otherDir/package.jsonLocal Use (本地使用)
npm i @winches/ghost -D
# or
yarn add @winches/ghost -D
# or
pnpm add @winches/ghost -DUsage Template (本地使用示例)
import { findGhost } from '@winches/ghost'
const phantomDependency = findGhost(
path.join(__dirname, 'src'),
path.join(process.cwd(), 'package.json')
)More Info
ghost --help
ghost scan --help
ghost -v