All Projects → victorboissiere → vue-xls-csv-parser

victorboissiere / vue-xls-csv-parser

Licence: other
Simple VueJS component to parse XLS/CSV files with validation

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to vue-xls-csv-parser

Sylvan.Data.Excel
The fastest .NET library for reading Excel data files.
Stars: ✭ 65 (+132.14%)
Mutual labels:  xlsx
easy-excel
🚀 快速读写Excel文件,简单高效
Stars: ✭ 118 (+321.43%)
Mutual labels:  xlsx
keikai-tutorial
A tutorial of a web spreadsheet component, keikai
Stars: ✭ 19 (-32.14%)
Mutual labels:  xlsx
kodbox
kodbox is a file manager for web. It is a newly designed product based on kodexplorer. It is also a web code editor, which allows you to develop websites directly within the web browser.You can run kodbox either online or locally,on Linux, Windows or Mac based platforms
Stars: ✭ 1,188 (+4142.86%)
Mutual labels:  xlsx
xlsx-reader
xlsx-reader is a PHP library for fast and efficient reading of XLSX spreadsheet files. Its focus is on reading the data contained within XLSX files, disregarding all document styling beyond that which is strictly necessary for data type recognition. It is built to be usable for very big XLSX files in the magnitude of multiple GBs.
Stars: ✭ 40 (+42.86%)
Mutual labels:  xlsx
qTsConverter
A simple tool to convert qt translation file (ts) to other format (xlsx / csv) and vice versa
Stars: ✭ 26 (-7.14%)
Mutual labels:  xlsx
spreadcheetah
SpreadCheetah is a high-performance .NET library for generating spreadsheet (Microsoft Excel XLSX) files.
Stars: ✭ 107 (+282.14%)
Mutual labels:  xlsx
Dexiom.EPPlusExporter
A very simple, yet incredibly powerfull library to generate Excel documents out of objects, arrays, lists, collections, etc.
Stars: ✭ 19 (-32.14%)
Mutual labels:  xlsx
Qxlnt
Use xlnt in Qt 5 or 6. xlnt is cross-platform user-friendly xlsx library for C++14.
Stars: ✭ 66 (+135.71%)
Mutual labels:  xlsx
xlsx-extract
nodejs lib for extracting data from XLSX files
Stars: ✭ 33 (+17.86%)
Mutual labels:  xlsx
xls2db
Export table data from excel to mysql database, implemented with python.
Stars: ✭ 33 (+17.86%)
Mutual labels:  xlsx
json-as-xlsx
Create excel from json npm package
Stars: ✭ 103 (+267.86%)
Mutual labels:  xlsx
xlsx-js-style
SheetJS Community Edition + Basic Cell Styles
Stars: ✭ 129 (+360.71%)
Mutual labels:  xlsx
laravel-xlswriter
an excel export/import tool for laravel based on php-xlswriter
Stars: ✭ 54 (+92.86%)
Mutual labels:  xlsx
fxl
fxl is a Clojure spreadsheet library
Stars: ✭ 117 (+317.86%)
Mutual labels:  xlsx
xlsx-renderer
Render xlsx from template
Stars: ✭ 21 (-25%)
Mutual labels:  xlsx
xltpl
A python module to generate xls/x files from a xls/x template.
Stars: ✭ 46 (+64.29%)
Mutual labels:  xlsx
opentbs
With OpenTBS you can merge OpenOffice - LibreOffice and Ms Office documents with PHP using the TinyButStrong template engine. Simple use OpenOffice - LibreOffice or Ms Office to edit your templates : DOCX, XLSX, PPTX, ODT, OSD, ODP and other formats. That is the Natural Template philosophy.
Stars: ✭ 48 (+71.43%)
Mutual labels:  xlsx
pikaz-excel-js
一个纯js版本的excel导入导出插件
Stars: ✭ 145 (+417.86%)
Mutual labels:  xlsx
xlsx over web
Django开发的excel表格展示系统,将本地xlsx文件导入到数据库,显示到JS页面 online excel manage with django
Stars: ✭ 27 (-3.57%)
Mutual labels:  xlsx

Vue XLS/CSV parser

Description

This npm package will help you parse XLS/CSV files and validate them. The user will be asked to associate his file columns with the columns you require. Once validated, an event will be triggered where you will be able to get only the data you need.

Demo

Requirements

You will need Bootstrap 3.x. It has not been tested yet with Boostrap 4.

Components

XlsCsvParser

Props

Name Type Description
columns (required) Array An array of object representing the columns you required: [{ name: 'Student login', value: 'login', isOptional: false }]
validateButtonId String The id of the custom validate button. The component validation button will not be displayed
help String Help text shown on the file dropzone
lang String en, nl or fr. Default: en

Events

  • onValidate(results): all the data parsed by the component and returned after the user validation

Example usage

<template>
  <div class="app">
    <h3>Example - Import file with required login, firstname, lastname and optional values</h3>
    <br>
    <xls-csv-parser :columns="columns" @on-validate="onValidate" :help="help" lang="en"></xls-csv-parser>
    <br><br>
    <div class="results" v-if="results">
      <h3>Results:</h3>
      <pre>{{ JSON.stringify(results, null, 2) }}</pre>
    </div>
  </div>
</template>

<script>
  import { XlsCsvParser } from 'vue-xls-csv-parser';
  export default {
    name: 'App',
    components: {
      XlsCsvParser,
    },
    methods: {
      onValidate(results) {
        this.results = results;
      },
    },
    data() {
      return {
        columns: [
          { name: 'Student login', value: 'login' },
          { name: 'Student firstname', value: 'firstname' },
          { name: 'Student lastname', value: 'lastname' },
          { name: 'Other', value: 'other', isOptional: true },
        ],
        results: null,
        help: 'Necessary columns are: login, firstname and lastname',
      };
    },
  };
</script>

Tests

Simpliy run yarn mocha.

Build Setup

# install dependencies
yarn intall

# serve with hot reload at localhost:8080
yarn start

# build for a release
yarn bundle:dist
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].