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

wxml-minifier

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wxml-minifier

微信小程序WXML压缩工具

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

image

npm npm NPM coverage

wxml-minifier

微信小程序 WXML 压缩工具

安装

npm i -D wxml-minifier

使用

minifier(resource[, options])

基础使用

const minifier = require('wxml-minifier')
const wxmlStr = `
<view class="home"         >
<!-- test -->
</view>
`
const minified = minifier(wxmlStr)

console.log(minified) // <view class="home></view>

选项

名称类型默认值功能
whitespaceBooleantrue移除 wxml 多余的空格
commentBooleantrue移除所有的注释

Keywords

minifier

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