🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

csv-transpose

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
c

csv-transpose

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

1.2.0
latest
74

Supply Chain Security

100

Vulnerability

88

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
967
2.98%
Maintainers
1
Weekly downloads
 
Created
Issues
0

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

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts