Socket
Book a DemoInstallSign in
Socket

js-ast-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-ast-parser

把javascript代码字符串解析为AST对象

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

js-ast-parser

把代码字符串解析为AST对象

快速使用

npm install js-ast-parser

index.js

import { JavascriptAstParser } from 'js-ast-parser';

let code = `

function greeting (msg) {
    console.log(msg)
}

greeting('hello world');

`

new JavascriptAstParser(code).parse();

Keywords

typescript

FAQs

Package last updated on 17 Aug 2022

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