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

@schascha/utable

v1.1.1

Published

Just a responsive table plugin

Downloads

53

Readme

uTable

Build npm

Just a responsive table plugin

https://schascha.github.io/utable/

Installation

npm install @schascha/utable
import { UTable } from '@schascha/utable';

const table = new UTable('table', {
	// Options
});

Configuration

| Option | Type | Default | Description | | -------------------- | -------- | -------------- | --------------------------------------- | | buttons | boolean | true | Enable or disable buttons | | overlays | boolean | true | Enable or disable overlays | | sticky | boolean | true | Enable or disable sticky observer | | width | string | auto | Width of the table, auto or fixed | | classBody | string | tbody | Class name for body element | | classButtonLeft | string | button-left | Class name for left button | | classButtonRight | string | button-right | Class name for right button | | classHead | string | thead | Class name for head element | | classOverlayLeft | string | scroll-left | Class name for left overlay | | classOverlayRight | string | scroll-right | Class name for right overlay | | classScroller | string | scroller | Class name for scroller | | classSticky | string | is-sticky | Class name if table header is sticky | | classTop | string | top | Class name for top element | | classWrapper | string | utable | Class name for wrapper element | | textButtonLeft | string | Left | Text for left button | | textButtonRight | string | Right | Text for right button | | titleButtonLeft | string | Scroll left | Title for left button | | titleButtonRight | string | Scroll right | Title for right button | | onClickButtonLeft | function | - | Callback function on left button click | | onClickButtonRight | function | - | Callback function on right button click | | onScroll | function | - | Callback function on scroll | | onScrollend | function | - | Callback function on scroll end | | onUpdate | function | - | Callback function on update |

Styles

The table is highly customizable and does not force you to embed styles. However, it is recommended to apply at least some base styles to ensure the table displays correctly. You can rewrite CSS classes or deactivate features, like buttons or overlay, via the module configuration. Just use it as you need it for your layout.

Basic styles and an example table layout can be found here: utable.css

Bugs? 🐛

Please let me know: https://github.com/Schascha/utable/issues

Buy me a Coffee ☕

Support this project and others via PayPal. Thanks

License

MIT

Copyright (c) 2024 Sascha Künstler