JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6668
  • Score
    100M100P100Q132011F
  • License MIT

Package Exports

  • vue-papa-parse

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-papa-parse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

VuePapaParse

A simple wrapper for for the original PapaParse built for VueJs.

Installation

npm i vue-papa-parse

# or

yarn add vue-papa-parse

Default import

import Vue from 'vue'
import VuePapaParse from 'vue-papa-parse'
Vue.use(VuePapaParse)

Usage

PARSE STRING

this.$papa.parse(csvString[, config])

PARSE LOCAL FILES

this.$papa.parse(file, config)

PARSE REMOTE FILE

this.$papa.parse(url, {
    download: true,
    // rest of config ...
})

UNPARSE

this.$papa.unparse(data[, config])

Config Options

{
    delimiter: "",	// auto-detect
    newline: "",	// auto-detect
    quoteChar: '"',
    escapeChar: '"',
    header: false,
    transformHeader: undefined,
    dynamicTyping: false,
    preview: 0,
    encoding: "",
    worker: false,
    comments: false,
    step: undefined,
    complete: undefined,
    error: undefined,
    download: false,
    downloadRequestHeaders: undefined,
    skipEmptyLines: false,
    chunk: undefined,
    fastMode: undefined,
    beforeFirstChunk: undefined,
    withCredentials: undefined,
    transform: undefined,
    delimitersToGuess: [',', '\t', '|', ';', Papa.RECORD_SEP, Papa.UNIT_SEP]
}

View all available PapaParse options by visiting the docs