npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@mikeal/csv-merge

1.0.7

@mikeal

npmHomeRepoSnykSocket
Downloads:4
$ npm install @mikeal/csv-merge
DailyWeeklyMonthlyYearly

csv-merge

Takes two CSV files with identical columns and writes the last column to new names in a new csv file.

const fs = require('fs')
const read = fs.readFileSync
const f1 = '../npm-regressions/2019-02---2019-02/depOwnersPerMonth.csv'
const f2 = '../npm-regressions/2019-02---2019-02/ownerReleasesByMonth.csv'
const string = merge(read(f1), read(f2), 'dependedOn', 'releases')
console.log(string) // string of the new csv