Socket
Book a DemoInstallSign in
Socket

@bjohansebas/scanner

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bjohansebas/scanner

Simple scan the technologies used in a TypeScript/JavaScript project.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
0
Created
Source

@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

Keywords

frameworks

FAQs

Package last updated on 26 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts