Skip to content

Simple library which compares two data sources and returns differences between them

License

Notifications You must be signed in to change notification settings

Hardyng/csv-comparator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv-comparator

License: MIT version

Compares csv files and string in browser. Also check out:

Usage

import compare from 'csv-comparator'

const result = compare(file, otherFile, {
    indexColumns
}).then(comparision => {
  const allData = comparision.getAll()
  console.log(allData.value) // => [{ status: 'CHANGED', values: [{changed: true, oldValue: '3', newValue: '2'}] }]
  console.log(allData.originalData) // first file
  console.log(allData.comparisionData) // second file
  console.log(allData.options) // { indexColumns }
})

About

Simple library which compares two data sources and returns differences between them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published