JavaScript / TypeScript

Learn JavaScript and TypeScript source and binary scan support in Xray.

Introduction

JFrog Xray provides security and compliance analysis for JavaScript and TypeScript applications throughout the software development lifecycle. This page describes the supported scan contexts, package managers, capabilities, and dependency analysis available for JavaScript and TypeScript.


Capabilities

The following capabilities are available for JavaScript and TypeScript.

CapabilitySource Code ScanningBinary Scanning
Vulnerability Matching (CVEs)YESYES
License DetectionYESYES
Malicious Package DetectionYESYES
Operational RiskYESYES
Smart Remediation🔜🔜

Source code scanning analyzes your project's dependency manifest files to identify components and their vulnerabilities. You can use it with the JFrog CLI jf audit command, Frogbot, IDE integrations, and CI pipelines. For more information, see Scan Your Source Code.

Which files a source scan reads depends on the scan method. For those differences, see Source Scanning Engines and Frogbot Versions.

Supported Files

Package ManagerSupported FilesAvailable with
npmpackage-lock.json (required), package.jsonDefault jf audit
npmpackage-lock.json (v1, v2, v3), package.json – Handles deduplication, peer/dev/optional dependenciesFrogbot V3
Yarnyarn.lock (Yarn 3 required)Default jf audit
Yarnyarn.lock (Yarn 1 Classic and Yarn 2+/Berry), package.json – Workspaces, peer/dev/optional depsFrogbot V3
pnpmpnpm-lock.yaml – Workspace dependencies, scoped packages, peer dependency annotationsFrogbot V3
BowerNO Not supported—

Dependency Graph

Package ManagerDependency GraphAvailable with
npmYES FullDefault jf audit
npmYES Full – Nested node_modules, multiple version trackingFrogbot V3
YarnNO FlatDefault jf audit
YarnYES Full – Workspace-aware, constraint resolutionFrogbot V3
pnpmYES Full – Workspace filtering, root package detectionFrogbot V3

Related Topics


Did this page help you?