🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

datatables.net

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
D

datatables.net

jQuery DataTables

2.3.0
100

Supply Chain Security

100

Vulnerability

91

Quality

89

Maintenance

100

License

Version published
Weekly downloads
453K
-20.13%
Maintainers
1
Weekly downloads
 
Created

What is datatables.net?

The datatables.net npm package is a popular library for creating interactive and feature-rich HTML tables. It provides a wide range of functionalities such as pagination, searching, sorting, and filtering, making it easier to manage and display large datasets in a tabular format.

What are datatables.net's main functionalities?

Pagination

This feature allows you to add pagination to your tables, making it easier to navigate through large datasets by breaking them into smaller, more manageable pages.

const $ = require('jquery');
require('datatables.net')();

$(document).ready(function() {
  $('#example').DataTable({
    'paging': true
  });
});

Searching

This feature enables a search box that allows users to filter table data based on their input, making it easier to find specific information within the table.

const $ = require('jquery');
require('datatables.net')();

$(document).ready(function() {
  $('#example').DataTable({
    'searching': true
  });
});

Sorting

This feature allows you to sort table columns in ascending or descending order, providing a way to organize data based on different criteria.

const $ = require('jquery');
require('datatables.net')();

$(document).ready(function() {
  $('#example').DataTable({
    'ordering': true
  });
});

Filtering

This feature allows you to apply filters to specific columns, enabling more granular control over the data displayed in the table.

const $ = require('jquery');
require('datatables.net')();

$(document).ready(function() {
  $('#example').DataTable({
    'columnDefs': [
      {
        'targets': [0],
        'searchable': true
      }
    ]
  });
});

Other packages similar to datatables.net

FAQs

Package last updated on 30 Apr 2025

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