npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wxser

v1.1.1

Published

cli for wxser

Downloads

121

Readme

wxser 命令行工具 npm install -g wxser

  1. 小程序如何使用wxser :
    1. 获取框架代码
      1. 方式一
      2. 方式二
        • 首先确保已经安装wxser : npm install -g wxser
        • 使用wxser命令获取框架代码 : wxser code
        • 在app.wxss内粘贴内容即可
      • 【到这步则已经引用了该文件, 后续可以按照框架文档开发界面了】
    2. 若需要wxser辅助快速开发,则打开控制台
      • 首先确保已经安装wxser : npm install -g wxser
        • 安装示意图
      • 使用wxser命令
        • wxser ls 列出所有元素
        • wxser get <type> 指定查看某类元素的二级类型
        • 使用示意图
  2. 框架文档
    • 基础
      • 文本对齐方式
        has-text-left,
        has-text-centered, 
        has-text-right 
      • 文本颜色
        has-text-dark, 
        has-text-gray, 
        has-text-white, 
        has-text-danger, 
        has-text-info, 
        has-text-warning, 
        has-text-primary
      • 背景颜色
        has-bg-dark, 
        has-bg-gray, 
        has-bg-white, 
        has-bg-danger, 
        has-bg-info, 
        has-bg-warning, 
        has-bg-primary
      • 主题颜色(应用于容器或复合组件)
        is-dark, 
        is-white, 
        is-danger, 
        is-info, 
        is-warning, 
        is-primary
      • 形状
        is-square(方形), 
        is-round(圆形) 
      • 尺寸
        is-large(大), 
        is-medium(中), 
        is-small(小) 
    • 表单
      • button 可应用颜色,尺寸,形状 wxser命令: wxser get button
      • input 可应用颜色,尺寸,形状 wxser命令: wxser get input
      • textarea 可应用颜色,尺寸,形状 wxser命令: wxser get textarea
    • 容器
      • section <view class="section"></view> wxser命令: wxser get section
      • container <view class="container"></view> wxser命令: wxser get container
      • hero 可应用主题 <view class="hero"></view> wxser命令: wxser get hero
      • footer <view class="footer"></view> wxser命令: wxser get footer
    • 布局
      • 网格 [columns>column] 一行(columns)最多12等分(column)
        • columns <view class="columns"></view> wxser命令: wxser get columns
        • column <view class="column"></view> wxser命令: wxser get column
        • 细节
          • 按column个数等分columns 示意图
            <view class="columns">
                <view class="column"></view>
                <view class="column"></view>
                <view class="column"></view>
                <view class="column"></view>
            </view> 
          • 指定size的column [ is-{size} ]; e.g. is-2, is-3, ..., is-11 示意图
            <view class="columns">
                <view class="column is-6"></view>
                <view class="column"></view>
            </view> 
          • 指定几分之几的column [ is-{num-numth} ]; e.g. is-one-third, is-half, ..., is-three-quarter 示意图
            <view class="columns">
                <view class="column is-one-third"></view>
                <view class="column"></view>
            </view> 
          • 指定具体px的column [ is-narrow ] 同时指定 style="width:280px" ; 示意图
            <view class="columns">
                <view class="column is-narrow" style="width:280px"></view>
                <view class="column"></view>
            </view> 
          • 指定偏移的column [ is-offset-{size} ] ; e.g. is-offset-2, is-offset-4, ... 示意图
            <view class="columns">
                <view class="column is-6 is-offset-3"></view>
                <view class="column"></view>
            </view> 
      • 浮动 [float>float-left] [float>float-right] wxser命令: wxser get float
        • 细节
          • 左浮动
            <view class="float">
                <view class="float-left"></view>
            </view> 
          • 右浮动
            <view class="float">
                <view class="float-right"></view>
            </view> 
      • 乐高 [lego]+[is-ancestor|is-parent|is-child]+[is-vertical] wxser命令: wxser get lego
        • 细节
          • 水平乐高 示意图
            <view class="lego is-ancestor">
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
            </view> 
          • 垂直乐高 示意图
            <view class="lego is-ancestor is-vertical">
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
                <view class="lego"><text>+</text></view>
            </view> 
          • 混合乐高 示意图
            <view class="lego is-ancestor">
                <view class="lego is-3">
                    <view class="lego is-parent">
                        <view class="lego is-child"><text>+</text></view>
                        <view class="lego is-child"><text>+</text></view>
                    </view>
                </view>
                <view class="lego is-2">
                    <view class="lego is-parent">
                        <view class="lego is-child"><text>+</text></view>
                    </view>
                </view>
                <view class="lego is-7">
                    <view class="lego is-parent is-vertical">
                        <view class="lego is-child"><text>+</text></view>
                        <view class="lego is-child"><text>+</text></view>
                        <view class="lego is-child"><text>+</text></view>
                    </view>
                </view>
            </view> 
      • 大头针 [pin]+[top|bottom|center]?+[abs]
        • wxser命令: wxser get pin
        • 细节
          • fixed定位
            • center <view class="pin center"><view>+</view></view>
            • top <view class="pin top"><view>+</view></view>
            • bottom <view class="pin bottom"><view>+</view></view>
          • absolute定位
            • center <view class="pin abs center"><view>+</view></view>
            • top <view class="pin abs top"><view>+</view></view>
            • bottom <view class="pin abs bottom"><view>+</view></view>
    • 组件
      • wxser命令: wxser get {组件名}
      • 组件名:
        • accordion
        • accordions
        • breadcrumb
        • card
        • comment
        • icon(遵循Font-Awesome规范)
        • media
        • menu
        • message
        • modal
        • notification
        • panel
        • tabs
        • tag