New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

table-purify

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table-purify

This module makes querying a table easier.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Table Purifyer

This module makes easier to query a table.

Installation

npm i table-purify --save

Usage

const purify = require('table-purify')

purify('inputId','tableId',columnIndex)

# inputId - is the html id of input element where you will input the text you wanna filter by. 
# (i.e. in input you type "123" and in table you will see only the rows contiaing "123")

# tableId - is the html id of the table you want to filter

# columnIndex - is the index (starting from 0) of column you want to check.
# i.e the text "123" from input is taken and compared with every row of one column assigned by index column
# if you table has 3 columns (id, name, barcode) and you want to show only the rows that have "123" on barcode column => columnIndex = 2

Contributing

This module is taken from stackoverflow and published here for being easier to use from here by installing using npm

License

MIT

FAQs

Package last updated on 30 Sep 2020

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