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

@iannazzi/awesome-table

v1.1.12

Published

javascript table to display, create, list, sort, search records

Downloads

107

Readme

Awesome Table

AwesomeTable is used to rapidly build HTML tables to display, edit, sort, and search collections of records.

AwesomeTable is written in pure javascript with very one dependency. Thenby is used to help with multi level sorting.

AwesomeTable is written using an MVC pattern and an Event pattern. The M stands for Model. The Model holds the table definition and any table data. The V stands for the View. The View renders the table. The C stands for Controller. The Controller handles user interaction. Event handling is also separated into files.

The table is defined by a table definition object. The table columns are defined by a column definition object. Both a record table and a collection table can be defined using a single column definition. In other words, define the columns once, then build a searchable table, a collection table, and a record table with the single column definition. This optimizes display and editing of database records.

Three different types of tables can be created:

Record Table : Used to display individual records. Collection Table: Used to display an array of records, or a collection. Searchable Table: A collection table with a search table.

Basic stying is also included

Installation

npm install @iannazzi/awesome-table

Usage

check out the demos folder for usage examples.

https://iannazzi.github.io/awesome-table/

Tests

Setting up the testing tooling was a bit of a nightmare... so what I did is built the tests into the demo pages, and output success if they all pass. You can manually verify these tests by going to the individual pages in the demos folder and checking the test status at the bottom.

I use nightwatch to run automated testing, however all this is doing is verifying the tests pass in the demo pages. To make it work you need selenium and the browser drivers for the browser you want to test. Checkout the documentation at nightwatch.io.

npm test

Contributing

Feel free to contribute!