Socket
Socket
Sign inDemoInstall

prettier-plugin-wxml

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-wxml

prettier 插件,提供微信小程序 wxml 文件的格式化能力


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

prettier-plugin-wxml

prettier 插件,提供微信小程序 wxml 文件的格式化能力

环境搭建

npm install --save-dev prettier prettier-plugin-wxml

使用示例

./node_modules/.bin/prettier --write '*/.wxml'

效果展示

input

<view
  bindtap="onClick"
  catchtap="onCatchClick"
  class="cart-container"
  wx:if="true"
  style="height: 100vh"
/>

output

<view
  wx:if="true"
  class="cart-container"
  style="height: 100vh"
  bindtap="onClick"
  catchtap="onCatchClick"
/>

联系作者

github

FAQs

Package last updated on 29 Aug 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc