Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
vue-blob-json-csv
Advanced tools
[![Latest Version on NPM](https://img.shields.io/npm/v/vue-blob-json-csv.svg?style=flat-square)](https://npmjs.com/package/vue-blob-json-csv) [![Total Downloads on NPM](https://img.shields.io/npm/dt/vue-blob-json-csv.svg)](https://www.npmjs.com/package/vu
Component library to download a JSON or CSV file using Vue.
$ yarn add vue-blob-json-csv
# or
$ npm i --save vue-blob-json-csv
import VueBlobJsonCsv from 'vue-blob-json-csv';
Vue.use(VueBlobJsonCsv)
<template>
<vue-blob-json-csv
@success="handleSuccess"
@error="handleError"
file-type="json"
file-name="sample"
title="Download JSON"
:data="data"
confirm="download it?"
>
</template>
<template>
<vue-blob-json-csv
@success="handleSuccess"
@error="handleError"
file-type="json"
file-name="sample"
:data="data"
confirm="download it?"
>
<h2>Title</h2>
<p>csv download</p>
</vue-blob-json-csv>
</template>
Prop | Data Type | Required | Default | Description |
---|---|---|---|---|
tagName | String | false | Element Tag Name | |
title | String | false | Button title name | |
fileType | String | true | csv | File extension (csv or json ) |
fileName | String | false | data | File name |
data | Array | true | Data you want to export | |
fields | Array | false | Export only specific keys | |
confirm | String | false | Text to display in the dialog |
Event | Description |
---|---|
success | Event after download is complete |
error | Error |
Welcome to improve vue-blob-json-csv with any issue, pull request or code review.
# Setup
$ cd vue-blob-json-csv
$ yarn
# dev-server
$ yarn serve
# Build
$ yarn build:lib
# Unit Testing
$ yarn test:unit
# Lint
$ yarn lint
# Lint - fix
$ yarn lint --fix
MIT
FAQs
[![Latest Version on NPM](https://img.shields.io/npm/v/vue-blob-json-csv.svg?style=flat-square)](https://npmjs.com/package/vue-blob-json-csv) [![Total Downloads on NPM](https://img.shields.io/npm/dt/vue-blob-json-csv.svg)](https://www.npmjs.com/package/vu
The npm package vue-blob-json-csv receives a total of 104 weekly downloads. As such, vue-blob-json-csv popularity was classified as not popular.
We found that vue-blob-json-csv 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.