
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
vue-table-to-excel
Advanced tools
$ npm install vue-table-to-excel
+ component
<script>
import { jsontoexcel } from "vue-table-to-excel";
export default {
data() {
return {
json: {
dataSource: [
{ name: "Tom", phone: "+86 01012", email: "000@gmail.com" },
{ name: "Jack", phone: "+86 01012", email: "000@gmail.com" },
{ name: "Alice", phone: "+86 01012", email: "000@gmail.com" }
],
head: ["name", "phone", "email"],
fileName: "download.xlsx"
}
};
},
methods: {
download() {
const { data, head, fileName } = this.json;
jsontoexcel.getXlsx(data, head, fileName);
}
}
};
</script>
A series of mixins is automatically generated for the url synchronization function
options
{{}} A map of $route.query keys to vm's property path
options.KeyOfOptions
{string} Key of options is the value key on url query string,
and its also the key in vm.$routeoptions.ValueOfOptions
{string} Value of options is a path to find the actual value in vmReturns {} A series of mixins
process escape string to value with its data type
str
{string}Returns (string | any | undefined | number)
process value to escape string
val
{any}Returns string
This project is licensed under the MIT license.
FAQs
Export the json data as an excel spreadsheet
The npm package vue-table-to-excel receives a total of 269 weekly downloads. As such, vue-table-to-excel popularity was classified as not popular.
We found that vue-table-to-excel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.