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

wolf-table-plus

v0.0.7

Published

a based-canvas table

Downloads

340

Readme

WolfTablePlus

基于 WolfTable 进行完善的 web table 库

LICENSE

MIT

Install

pnpm / npm i wolf-table-plus

Usage

    import WolfTablePlus from 'wolf-table-plus'
    import 'wolf-table-plus/dist/wolf-table-plus.css'
    
    const container = document.querySelector('#container')
    const wt = WolfTablePlus.create(
        container,
        () => container.clientWidth,
        () => container.clientHeight,
        {
            scrollable: true,
            resizable: true,
            selectable: true,
            editable: true,
            copyable: true,
            data: {
                // cols: 30,
                // rows: 103,
            },
        },
    )
        .render()

Development

pnpm dev

PREVIEW PAGE

Preview

目前已支持的功能

  • 基础功能
    • 输入文字
    • 输出到 HTML
    • 插入图片
  • 顶部菜单栏
    • 撤销/恢复操作
    • 格式刷
    • 清除单元格样式
    • 格式化单元格
    • 字体设置
    • 字号设置
    • 文字加粗
    • 斜体
    • 中划线
    • 下划线
    • 文字颜色
    • 单元格背景色
    • 边框设置
    • 合并单元格
    • 文字 (水平/垂直) 对齐
    • 自动换行
    • 冻结单元格
    • 单元格下拉选功能 [TODO]
    • 公式功能 [TODO]
  • 右键菜单
    • 撤销/恢复
    • 剪切
    • 复制/粘贴
    • 粘贴内容
    • 插入行/列
    • 删除行/列
    • 清空内容
    • 清空格式
    • 完全清空
  • 键盘控制
    • up/down/left/right - 移动单元格
    • ctrl + x - 剪切
    • ctrl + c - 复制
    • ctrl + v - 粘贴
    • ctrl + z - 撤销
    • ctrl + y - 恢复
    • ctrl + b - 字体加粗
    • ctrl + u - 下划线
    • ctrl + i - 斜体
    • Esc - 当存在复制或剪切时取消选中的单元格
    • Backspace - 删除内容
    • shift + Backspace - 删除样式
    • delete - 完全删除
  • OTHERS
    • 支持扩展功能 - 可以自定义渲染器
    • 显示图片 [done v.0.1]