This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example: | |
| # echo "one,two,three,four,five" | csv_header | |
| # Result: | |
| # 1 one | |
| # 2 two | |
| # 3 three | |
| # 4 four | |
| # 5 five |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Convert using terminal STDIN & Pipe | |
| Example: | |
| cat files.csv | node csv2json.js | |
| */ | |
| var lines=""; | |
| process.stdin.setEncoding('utf8'); | |
| process.stdin.on('readable', () => { | |
| var chunk = process.stdin.read(); | |
| if (chunk !== null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script> | |
| <link rel="stylesheet" href="https://unpkg.com/chota@latest"> | |
| </head> | |
| <body> | |
| <div id="app"> | |
| </div> | |
| </body> | |
| <script> |
NewerOlder