The repository for high quality TypeScript type definitions.
Installations
npm install @types/babylon
Developer Guide
Typescript
Yes
Module System
N/A
Score
99.8
Supply Chain
87.7
Quality
75.9
Maintenance
100
Vulnerability
100
License
Contributors
Languages
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Developer
DefinitelyTyped
Download Statistics
Total Downloads
213,205,282
Last Day
74,449
Last Week
309,537
Last Month
1,370,320
Last Year
20,500,985
GitHub Statistics
49,092 Stars
88,622 Commits
30,287 Forks
640 Watching
5 Branches
9,977 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
213,205,282
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Installation
npm install --save @types/babylon
Summary
This package contains type definitions for babylon (https://github.com/babel/babylon).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babylon.
index.d.ts
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
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/babel-types
Credits
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
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
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
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:5
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:12
- Info: 20 out of 20 GitHub-owned GitHubAction dependencies pinned
- Info: 8 out of 8 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/UpdateCodeowners.yml:19
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ghostbuster.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/support-window.yml:22
- Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/UpdateCodeowners.yml:14
- Warn: no topLevel permission defined: .github/workflows/format-and-commit.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ghostbuster.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-md.yml:7
- Warn: no topLevel permission defined: .github/workflows/pnpm-cache.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/support-window.yml:17
- Warn: no topLevel permission defined: .github/workflows/watchdog-publisher.yml:1
- Warn: no topLevel permission defined: .github/workflows/watchdog-typescript-bot.yml:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 27 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
7
/10
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 MoreOther packages similar to @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.