Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-blob-json-csv

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-blob-json-csv

[![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

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
110
increased by48.65%
Maintainers
1
Weekly downloads
 
Created
Source

Latest Version on NPM Total Downloads on NPM Software License

vue-blob-json-csv

Component library to download a JSON or CSV file using Vue.

Installation

$ yarn add vue-blob-json-csv
# or
$ npm i --save vue-blob-json-csv

Global Registration

import VueBlobJsonCsv from 'vue-blob-json-csv';
Vue.use(VueBlobJsonCsv)

Usage

<template>
  <vue-blob-json-csv
    @success="handleSuccess"
    @error="handleError"
    file-type="json"
    file-name="sample"
    title="Download JSON"
    :data="data"
    confirm="download it?"
  >
</template>

Use Slot

<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>

Props

PropData TypeRequiredDefaultDescription
tagNameStringfalseElement Tag Name
titleStringfalseButton title name
fileTypeStringtruecsvFile extension (csv or json)
fileNameStringfalsedataFile name
dataArraytrueData you want to export
fieldsArrayfalseExport only specific keys
confirmStringfalseText to display in the dialog

Events

EventDescription
successEvent after download is complete
errorError

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 25 Apr 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc