Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chengcyber/scan-deps
util to detect undeclared deps and phantom deps
https://github.com/chengcyber/scan-deps
Last synced: 27 days ago
JSON representation
util to detect undeclared deps and phantom deps
- Host: GitHub
- URL: https://github.com/chengcyber/scan-deps
- Owner: chengcyber
- Created: 2021-08-11T11:06:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-12T13:51:19.000Z (about 1 year ago)
- Last Synced: 2024-09-16T03:22:15.679Z (about 2 months ago)
- Language: TypeScript
- Size: 109 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scan-deps
util to detect undeclared deps and phantom deps
# Usage
1. CLI
```
npx scan-deps
``````
Usage: scan-deps [options]Options:
-V, --version output the version number
--json output as json
--debug turn on debug log
--all output all dependencies includes detected
dependencies
--directory directory included, default: src,lib
--extension included file extensions, default:
ts,js,tsx,jsx
-h, --help display help for command
```2. Node API
```js
import { scanDeps } from "scan-deps";async function main() {
const { detectedDependencies, missingDependencies, unusedDependencies } =
await scanDeps({
// cwd: process.cwd(),
// directory: 'src,lib',
// extension: 'ts,js,tsx,jsx',
});
}
```# Development
```
yarn install
yarn build:watch
```# LICENSE
MIT @[chengcyber](https://github.com/chengcyber)