Skip to content

Transpose (rotate) data from rows to columns or vice verse in csv/tsv

License

Notifications You must be signed in to change notification settings

beenotung/csv-transpose

Repository files navigation

csv-transpose

npm Package Version

Transpose (rotate) data from rows to columns or vice verse in csv/tsv

Installation

# for cli
npm i -g csv-transpose

# for import usage
npm i csv-transpose

Executables:

  • csv-transpose
  • tsv-transpose

Examples

View Help Messages

csv-transpose --help

Using files

csv-transpose -i in.csv -o out.csv

Using pipe

cat in.csv | csv-transpose > out.csv

Calling from node.js

let lib = require('csv-transpose')
let text = '...some csv text...'
let separator = ','
text = lib.transpose(text, separator)

Calling from typescript

import { transpose } from 'csv-transpose'
let text = '...some csv text...'
let separator = ','
text = lib.transpose(text, separator)

The file mode and pipe mode can be used in combination.

License

This project is licensed with BSD-2-Clause

This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:

  • The freedom to run the program as you wish, for any purpose
  • The freedom to study how the program works, and change it so it does your computing as you wish
  • The freedom to redistribute copies so you can help others
  • The freedom to distribute copies of your modified versions to others

About

Transpose (rotate) data from rows to columns or vice verse in csv/tsv

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy