New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@leejim/wxml-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leejim/wxml-parser

微信小程序WXML Parser

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

npm npm NPM

wxml-parser

微信小程序 WXML Parser

安装

npm install -D @leejim/wxml-parser

使用

var WXMLParser = require('@leejim/wxml-parser');
var parser = new WXMLParser({
    onopentag(tagname, attrs, isSelfClosing) {},

    onclosetag(tagname) {},

    ontext(text) {},

    oncomment(cmt) {},

    ontemplate(tmp) {}
});
parser.write('<view>test</view>');

参数

onopentag

参数名数据类型描述
tagnamestring标签名
attrs`Array<stringAttrEntity>; interface AttrEntity { key: string; value: string } `
isSelfClosingboolean是否自闭合标签

Keywords

wxml

FAQs

Package last updated on 09 Jul 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