sudo apt-get install xclip -y
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
If you're working with traditional web development and don't have a backend server, you can still use client-side libraries to convert an HTML table to Excel. Here are a couple of options that you can use in such scenarios:
TableExport.js: TableExport.js is a JavaScript library that enables exporting HTML tables to various formats, including Excel. It doesn't require a backend server and works entirely on the client-side.
<script src="https://unpkg.com/[email protected]/dist/js/tableexport.min.js"></script>
<script>
var table = document.getElementById('myTable');
TableExport(table, {
formats: ['xlsx'],
import '@/styles/index.css'; | |
import '@/styles/chrome-bug.css'; | |
import 'keen-slider/keen-slider.min.css'; | |
import { AppProps, NextWebVitalsMetric } from 'next/app'; | |
import { useRouter } from 'next/router'; | |
import { ApolloProvider } from '@apollo/client'; | |
import { useEffect, FC } from 'react'; | |
import { useApollo } from '@/lib/apollo'; | |
import * as gtag from '@/lib/analytics'; |