Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

csv-excel-to-json-mapper

YizLab-Inc5MIT1.1.0

this package helps map files from excel or csv to a desired json data structure

readme

csv-excel-to-json-mapper

this package helps map files from excel or csv to a desired json data structure

NPM JavaScript Style Guide

Install

npm install --save csv-excel-to-json-mapper

Usage

import React from 'react'

import { FileToJsonMaper } from 'csv-excel-to-json-mapper'
import 'csv-excel-to-json-mapper/dist/index.css'

const App = () => {
  const keys = [
    { value: "surname", label: "Surname", required: true },
    { value: "otherNames", label: "Other Names", required: true },
    { value: "email", label: "email" },
    { value: "password", label: "Password" },
  ]
  return <FileToJsonMaper keys={keys} onComplete={(data) => console.log(data)} />
}

export default App

License

MIT © LogicalOgbonna