0.1.1 • Published 9 months ago

@bjohansebas/scanner v0.1.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
9 months ago

@bjohansebas/scanner

NPM Version NPM Install Size

!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

License

Mozilla Public License Version 2.0

0.1.1

9 months ago

0.1.0

11 months ago