@mikeal/csv-merge

1.0.7 • Public • Published

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

/@mikeal/csv-merge/

    Package Sidebar

    Install

    npm i @mikeal/csv-merge

    Weekly Downloads

    2

    Version

    1.0.7

    License

    (Apache-2.0 AND MIT)

    Unpacked Size

    5.95 kB

    Total Files

    7

    Last publish

    Collaborators

    • mikeal