Gathering detailed insights and metrics for @types/babel__code-frame
Gathering detailed insights and metrics for @types/babel__code-frame
Gathering detailed insights and metrics for @types/babel__code-frame
Gathering detailed insights and metrics for @types/babel__code-frame
The repository for high quality TypeScript type definitions.
npm install @types/babel__code-frame
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,030 Stars
89,737 Commits
30,433 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 13, 2025
Latest Version
7.0.6
Package Id
@types/babel__code-frame@7.0.6
Unpacked Size
5.80 kB
Size
2.07 kB
File Count
5
Published on
Nov 06, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/babel__code-frame
This package contains type definitions for @babel/code-frame (https://github.com/babel/babel/tree/master/packages/babel-code-frame).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__code-frame.
1export interface SourceLocation { 2 start: { line: number; column?: number | undefined }; 3 end?: { line: number; column?: number | undefined } | undefined; 4} 5export function codeFrameColumns( 6 rawLines: string, 7 location: SourceLocation, 8 options?: BabelCodeFrameOptions, 9): string; 10 11export interface BabelCodeFrameOptions { 12 /** Syntax highlight the code as JavaScript for terminals. default: false */ 13 highlightCode?: boolean | undefined; 14 /** The number of lines to show above the error. default: 2 */ 15 linesAbove?: number | undefined; 16 /** The number of lines to show below the error. default: 3 */ 17 linesBelow?: number | undefined; 18 /** 19 * Forcibly syntax highlight the code as JavaScript (for non-terminals); 20 * overrides highlightCode. 21 * default: false 22 */ 23 forceColor?: boolean | undefined; 24 /** 25 * Pass in a string to be displayed inline (if possible) next to the 26 * highlighted location in the code. If it can't be positioned inline, 27 * it will be placed above the code frame. 28 * default: nothing 29 */ 30 message?: string | undefined; 31} 32 33/** 34 * Generate errors that contain a code frame that point to source locations. 35 * 36 * @param rawLines Raw lines to frame 37 * @param lineNumber Line number (1 indexed) 38 * @param colNumber Column number 39 * @param options Additional options 40 * 41 * @returns Framed code 42 */ 43export default function codeFrame( 44 rawLines: string, 45 lineNumber: number, 46 colNumber: number, 47 options?: BabelCodeFrameOptions, 48): string; 49
These definitions were written by Mohsen Azimi, and Forbes Lindesay.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More