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
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
babylon-react-prop-types
A tool used to generate react component description.
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.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
213,205,282
Last Day
74,449
Last Week
309,537
Last Month
1,370,320
Last Year
20,500,985
49,092 Stars
88,622 Commits
30,287 Forks
640 Watching
5 Branches
9,977 Contributors
Latest Version
6.16.9
Package Id
@types/babylon@6.16.9
Unpacked Size
5.76 kB
Size
2.16 kB
File Count
5
Publised On
06 Nov 2023
Cumulative downloads
Total Downloads
Last day
5.7%
74,449
Compared to previous day
Last week
-13.4%
309,537
Compared to previous week
Last month
0.9%
1,370,320
Compared to previous month
Last year
-14.5%
20,500,985
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 2 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
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-01-27
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