Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 859 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 859 Bytes

Clipboard to CSL (Comma Separated List)

I often copy a column of values from excel and I need to convert it into a comma separated list. Example:

5555
6666
7777
8888
9999

and need to paste it somewhere in the format 5555,6666,7777,8888,9999

This script grabs whatever is on the clipboard, splits it by new line characters \n and joins it by commas ,

Install

# clone repo localy
cd path/to/download
npm install
# make `clipboard-2-csv` executable
chmod +x clipboard-2-csv

Todo

  • Distribution step? .exe .dmg ?

Usage

  • Copy list from excel or anything that puts text into the clipboard sparated by new lines.
  • /PATH/TO/clipboard-2-csv (I have it as a shortcut)
  • Paste. What you past will be comma separated.