Gathering detailed insights and metrics for @types/babylon
Gathering detailed insights and metrics for @types/babylon
Gathering detailed insights and metrics for @types/babylon
Gathering detailed insights and metrics for @types/babylon
@types/babylon-walk
TypeScript definitions for babylon-walk
babylon-toolkit-types
Babylon Toolkit TypeScript Declarations
gogocode
The simplest tool to parse/transform/generate code on ast
@types/babylonjs
Stub TypeScript definitions entry for babylonjs, which provides its own types definitions
The repository for high quality TypeScript type definitions.
npm install @types/babylon
Typescript
Module System
99.8
Supply Chain
87.7
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
220,259,781
Last Day
21,200
Last Week
396,173
Last Month
1,744,943
Last Year
19,751,834
NOASSERTION License
50,001 Stars
89,698 Commits
30,431 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 05, 2025
Latest Version
6.16.9
Package Id
@types/babylon@6.16.9
Unpacked Size
5.76 kB
Size
2.16 kB
File Count
5
Published on
Nov 06, 2023
Cumulative downloads
Total Downloads
Last Day
-5.6%
21,200
Compared to previous day
Last Week
-9.9%
396,173
Compared to previous week
Last Month
1.9%
1,744,943
Compared to previous month
Last Year
-14.7%
19,751,834
Compared to previous year
1
npm install --save @types/babylon
This package contains type definitions for babylon (https://github.com/babel/babylon).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon.
1import { Expression, File } from "babel-types"; 2 3export function parse(code: string, opts?: BabylonOptions): File; 4 5export function parseExpression(input: string, options?: BabylonOptions): Expression; 6 7export interface BabylonOptions { 8 /** 9 * By default, import and export declarations can only appear at a program's top level. 10 * Setting this option to true allows them anywhere where a statement is allowed. 11 */ 12 allowImportExportEverywhere?: boolean | undefined; 13 14 /** 15 * By default, a return statement at the top level raises an error. Set this to true to accept such code. 16 */ 17 allowReturnOutsideFunction?: boolean | undefined; 18 19 allowSuperOutsideMethod?: boolean | undefined; 20 21 /** 22 * Indicate the mode the code should be parsed in. Can be either "script" or "module". 23 */ 24 sourceType?: "script" | "module" | undefined; 25 26 /** 27 * Correlate output AST nodes with their source filename. Useful when 28 * generating code and source maps from the ASTs of multiple input files. 29 */ 30 sourceFilename?: string | undefined; 31 32 /** 33 * Array containing the plugins that you want to enable. 34 */ 35 plugins?: PluginName[] | undefined; 36} 37 38export type PluginName = 39 | "estree" 40 | "jsx" 41 | "flow" 42 | "typescript" 43 | "classConstructorCall" 44 | "doExpressions" 45 | "objectRestSpread" 46 | "decorators" 47 | "classProperties" 48 | "exportExtensions" 49 | "asyncGenerators" 50 | "functionBind" 51 | "functionSent" 52 | "dynamicImport"; 53
These definitions were written by Troy Gerwien, and Marvin Hagemeister.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
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-06-30
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