Socket
Book a DemoInstallSign in
Socket

@dazl/typescript

Package Overview
Dependencies
Maintainers
33
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazl/typescript

API

latest
Source
npmnpm
Version
18.5.1
Version published
Weekly downloads
75
368.75%
Maintainers
33
Weekly downloads
 
Created
Source

npm version @dazl/typescript on Github

Home > @dazl/typescript

typescript package

TypeScript utilities

Functions

FunctionDescription
compileCode(code, fakePath)Compiles a code string to typescript AST
findAllNodes(source, predicate)Finds all nodes satisfying the predicate
findNode(source, predicate)Finds the first node (via DFS) satisfying the predicate
findNodeAfterComment(node, comment)Finds all nodes following a comment
getLeadingComments(node)A more regorges ts.getLeadingCommentRanges: Finds mid - statement comments as well
isSame(a, b, ignore, reportDiff)Compared 2 code snippet (or ASTs)
match(code, pattern)

Finds a node matching the pattern. The pattern is a valid TS statement

It may include:

- //[ignore] to skip some of its structure,

- //[return] to return an inner node instead of the root

Type Aliases

Type AliasDescription
Comment_2

FAQs

Package last updated on 14 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts