@bjohansebas/scanner
v0.1.1
Published
Simple scan the technologies used in a TypeScript/JavaScript project.
Downloads
80
Maintainers
Readme
@bjohansebas/scanner
[!WARNING] This project is still a work in progress.
A simple scan the technologies used in a TypeScript/JavaScript project
Install
npm install @bjohansebas/scanner
Usage
import { generateReport } from '@bjohansebas/scanner'
import { scanFolder } from '@bjohansebas/scanner/helpers'
const files = await scanFolder(process.cwd())
const report = await generateReport(files)
API
generateReport(files, config)
files
Type: string[]
The files that belong to the project can be obtained using scanFolder to get the project files.
config (optional)
Type: object
Scanned project path
config.root
Type: string
Default: process.cwd()
config.checkContent (optional)
Type: boolean
(optional)
Default: false
Check the contents of the files to determine each configuration
config.checkDependencies (optional)
Type: boolean
(optional)
Default: true
Check if it is listed as a dependency in the package.json
scanFolder(root)
root
Type: string
Path where it will start searching for all files