@bjohansebas/scanner
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @bjohansebas/scanner

Weekly Downloads

3

Version

0.1.1

License

MPL-2.0

Unpacked Size

460 kB

Total Files

14

Last publish

Collaborators

  • bsebas