{"_id":"parse-columns","_rev":"16-54d6e1ba36f80406b9b7b64c7463ab14","name":"parse-columns","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"parse-columns","version":"1.0.0","keywords":["parse","parser","columns","column","col","row","text","string","str","unix","command","cmd","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"9e82ff7621f817f3e261dcf7f155fe88ad330022","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-1.0.0.tgz","integrity":"sha512-6aXwv70IDK+VHuVxYahUqj6h5bM/aWIAq7r3aANeuUpJ4HfqHroPjh+a2/Gp12DCR1xcT6ff96qcmwY2jqQqZg==","signatures":[{"sig":"MEYCIQC4ehA2kmGBdHqfqAEfurxe5DDQI6ANi1qOBmFDhavU6gIhAI1VrnUKRDIlXwZQ5p90G4B7UJXCKi+p6UYroRGFmXaZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"9e82ff7621f817f3e261dcf7f155fe88ad330022","engines":{"node":">=0.10.0"},"gitHead":"b2275b3d071a5aecb02c928ea15dfacfc9ae2ceb","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/parse-columns","type":"git"},"_npmVersion":"2.10.1","description":"Parse text columns, like the output of unix commands","directories":{},"_nodeVersion":"0.12.4","dependencies":{"execall":"^1.0.0","split-at":"^1.1.0","escape-string-regexp":"^1.0.3"},"devDependencies":{"ava":"0.0.4"}},"1.0.1":{"name":"parse-columns","version":"1.0.1","keywords":["parse","parser","columns","column","col","row","text","string","str","unix","command","cmd","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@1.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"6575c70828f2a8e0085b20eb9273a31c583b01a6","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-1.0.1.tgz","integrity":"sha512-bOJ9MtOmoIRFrX1UVi7HfwSCn1lSq1cEcXK0au0Mc64z7M2amQ/BKazpM6iKx26HGvCIJBhUCo23qsmXBblOBg==","signatures":[{"sig":"MEUCIQDyY99I6dXgYy9wDD8xR+BnVird8vXmzES3p/VyVw4XzQIgaUTBLfXh/LdRLUZ8pj2Mme0AKmIBObytodNvkyT3Y00=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"6575c70828f2a8e0085b20eb9273a31c583b01a6","engines":{"node":">=0.10.0"},"gitHead":"f9fa6e49d28a5721e8e25b208d93b230a252941f","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/parse-columns","type":"git"},"_npmVersion":"2.11.2","description":"Parse text columns, like the output of unix commands","directories":{},"_nodeVersion":"0.12.5","dependencies":{"execall":"^1.0.0","split-at":"^1.1.0","repeating":"^1.1.3","escape-string-regexp":"^1.0.3"},"devDependencies":{"ava":"0.0.4"}},"1.1.0":{"name":"parse-columns","version":"1.1.0","keywords":["parse","parser","columns","column","col","row","text","string","str","unix","command","cmd","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@1.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"8a54ca0d11043c63bbe9bcf10267a6e1516aaeab","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-1.1.0.tgz","integrity":"sha512-u596IYNQGSmxtWHmOhIl2L19zCnhUsb3JbZB1dy6XB/2pjehPkqD0zHwmkrDUT0a8n8JviQGVWpavBa2G1KAyA==","signatures":[{"sig":"MEQCIQDT4X9TZbr2T3eM13ueII+txO5ueDyVCYLBfZeIIUoIWAIfWXrmUR5t9oLArb8gLtE1NDnJhiBpe4MEnMmqhnqSQg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"8a54ca0d11043c63bbe9bcf10267a6e1516aaeab","engines":{"node":">=0.10.0"},"gitHead":"c2a3c767d26a52cfb741331df4db006061963528","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/parse-columns","type":"git"},"_npmVersion":"2.11.2","description":"Parse text columns, like the output of unix commands","directories":{},"_nodeVersion":"0.12.5","dependencies":{"execall":"^1.0.0","split-at":"^1.1.0","repeating":"^1.1.3","escape-string-regexp":"^1.0.3"},"devDependencies":{"ava":"0.0.4"}},"1.2.0":{"name":"parse-columns","version":"1.2.0","keywords":["parse","parser","columns","column","col","row","text","string","str","unix","command","cmd","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@1.2.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"19f15e057b6dee91261ced5c104b1ae3a18accd4","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-1.2.0.tgz","integrity":"sha512-foriTtc8qbO/9FGad3njM85zy7n7cBi+TZi9mIZAmVearqenNoUhANPniDa9tUDAkWWj5BkEUpC/hiNEiHPwmQ==","signatures":[{"sig":"MEYCIQDUEdJWaeyEK9QF81XLPxbbZiah3+tWxu2JwwlBwnT2MQIhAO0WHMNihOmhFy119gzLDI/nbyVi407OxiIpBLCccNmT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"19f15e057b6dee91261ced5c104b1ae3a18accd4","engines":{"node":">=0.10.0"},"gitHead":"38f440d3941c221218f740127599c5eb988e4811","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/parse-columns","type":"git"},"_npmVersion":"2.14.4","description":"Parse text columns, like the output of unix commands","directories":{},"_nodeVersion":"4.1.1","dependencies":{"execall":"^1.0.0","split-at":"^1.1.0","repeating":"^2.0.0","escape-string-regexp":"^1.0.3"},"devDependencies":{"ava":"^0.2.0"}},"1.3.0":{"name":"parse-columns","version":"1.3.0","keywords":["parse","parser","columns","column","col","row","text","string","str","unix","command","cmd","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@1.3.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"4353f662669910b20646a70871038e482aef04bc","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-1.3.0.tgz","integrity":"sha512-sbJfFoA/jPvxvZykVtUlZIBPL5PzgQqsyMe9N/Jpb25rBz7y7h14YllGjEPy7R/6aR1FGb4X7GXPcKgU2msIpQ==","signatures":[{"sig":"MEQCIHD5u9VPP2V4W+qSI6RMOjbW3kmXyMneRBnwINHVWtNXAiAgTX8Cph/P+v4jlcvWiDqOtsmysgNvkOb606cfoxthiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"4353f662669910b20646a70871038e482aef04bc","engines":{"node":">=0.10.0"},"gitHead":"193ad45743c3fbc0b07fb8436aad04fa019aba3e","scripts":{"test":"ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/parse-columns","type":"git"},"_npmVersion":"2.14.7","description":"Parse text columns, like the output of unix commands","directories":{},"_nodeVersion":"4.2.1","dependencies":{"execall":"^1.0.0","split-at":"^1.1.0","repeating":"^2.0.0","escape-string-regexp":"^1.0.3"},"devDependencies":{"ava":"*"}},"2.0.0":{"name":"parse-columns","version":"2.0.0","keywords":["parse","parser","columns","column","row","text","string","unix","command","output","csv","shell","sh","term","table"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns#readme","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"e66e9ba093e392f294bc25b9675efaf1f6482b3c","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-2.0.0.tgz","fileCount":5,"integrity":"sha512-I7snWmkeB9gqgifmX2qGbMPHnYusbCp2r1x2JpfWg18SJsk3C26Nt7pVDKnWhoCXAlXAVpr1fIcu1C3uFkZKpQ==","signatures":[{"sig":"MEQCIFNSDUW2Umly2+9Jy5xPMY7hj1cZFpvueuMTMlgVibYcAiA6yTlPuXT9UTBtjgluqovAW6IRt5p7K/8L4PB6++d85A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvulqCRA9TVsSAnZWagAAWsMP/ArtcB/6dHhPVZO1NFGS\nvDCEiYOcsKDVr2XBq9KO61vJ+LMAPnfDKWEhCPp+i6mODFAR+Z98bmTieeRV\nwKo+qfyA4TbQNjfhXQcNUMzzDzaX97/hWpryoPxxk3BSkeb7y3VlmpQH2jFr\nvXhgA+UbONT1RzqEO2mZ+Qf1hfPZc363SNGEm4cEQcm0XsQCl9BIb1DdoLZ5\nZB1ooYJmuNSjtLoT8+VcKXOZhZ5x7I7EkG4dV6ETJzFMj3p+U7G5ypIxUCCs\nqVFCcqxm6cAkMhUUf+s49yXZMjh5uksP4h2h/k4UQx76nqbCnpKn7hIBmDTQ\nrOVkHmXEXr1IKK39KEsljvu9bZYiztZ+jE++3y8wh2iCClTelGKNqddyfZoB\nhrprKrAJP2Tul7c/aW7eBDOwrNJnbMJV1hj5hccttqI4MKz/Gr+CHmVCFUHD\nFeQbRyGHa65As9NWDYjnitWL0KyMz/0wE2VWfX7PXEpRgOrV5anE9evxeK+c\nSSG5CzWKshz8xdae5oI7drSYHp2gLZePa8Yppvi31ClmK9monbZSZEFJX+t/\nzwinkmEgGhTOwjvDxu1+QsBK2ByOFHst9Ac1KaA+X0M4Aj7a6v1re1T+Nn9+\nCwwx6mWj4rU4HY3uWgDpgpVubRFGSbLDXQQe20bButLbpMMS5sR2Kgueu7lb\nPEqk\r\n=0LDV\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=8"},"gitHead":"0c1292219a81f998ff524f33a79b3521035b8758","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/parse-columns.git","type":"git"},"_npmVersion":"6.4.1","description":"Parse text columns, like the output of Unix commands","directories":{},"_nodeVersion":"10.15.3","dependencies":{"execall":"^2.0.0","split-at":"^2.0.0","escape-string-regexp":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/parse-columns_2.0.0_1556015465716_0.32371622748949713","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"parse-columns","version":"3.0.0","keywords":["parse","parser","columns","column","row","text","string","unix","command","output","csv","shell","sh","term","table"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"parse-columns@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/parse-columns#readme","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"dist":{"shasum":"d26311d7a314aac63a11dbd5803e5d1d7e8151d7","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-3.0.0.tgz","fileCount":5,"integrity":"sha512-GonZBwJI7aEd+gEpZK4oZa0wL8vIMgEfalr2qKtOh1NUx+xJuqtyF2ssu97REtUTZLip8LpHbUn4RPDftzlwrw==","signatures":[{"sig":"MEUCIDEMeV7aUxptiaeQfT3SbP8lNd/mI12SXOz1cDLWPhrwAiEAy7B34HKs8KO9H4Z9Qg51Ac8cgaOCGiynNAwTibO7EbY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh22SYCRA9TVsSAnZWagAAr7UQAJNz+malHupzs3QVcCH/\nnGL2FyUnUR6Icl79ozop1Xe+Ups9d/lx99OwkuYS6NsyRx6gQWhk/lYGkJ1e\nxT3cpv67q21DQJrzVxQ3A7o//sED84+d2KKHU4fxU93s2Cy/6/fBWRh9rq2B\nsmgUSOkRdpvIR+8lv+0DxsjiX8w51H/pce3VoqbYuC6ITiRVQGKjHXxsfg+J\n6UyS07MkOzirQVXpuc31EDyjYOw+KCwSzf1zG8sHVeFmj6i03a3SwdV2U/Gz\nby6QB/Cgg+cV17ZNdrxtXo7BTzcH0ZfUGT+AgSd9uEfMzuvxSyAfR+vyIeQl\n3jcDfXh1DnMsaOS55EuFnZuQjIpXzpDivbOfO5SanWyfXCGkpSAKbON5Kpqs\n/PJplMk1Aq/7eFITRWpOjDezuUp1QwutDUn+DdIkFUBdVdMQfM5ouLKbBB7W\nkGbqEU5958BSfuPmx6WCRkrGfjAMqUg9/7pnBA1GAMngJiokGIP4kPaPWVbw\ngC99qY9nvI5t1Y0CprrImXauzPtWWvanq9FKl4asXhGjmrb/hZAKnY1Cwydb\ndlZeKc1jhz6U0AEmAu0e/wbsw+yTLXr5wVEUIZ01f0uRUwsSH8VEpdyUgbPZ\nvHXRKloWwXIJrtoKzXNsSaqnjQDG7SjjpktxKatGUypRg30yGEo5KFjyHweg\ncwKm\r\n=94mv\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"3169c69ff74a871ec895244e59707d8216dd1d3c","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/parse-columns.git","type":"git"},"_npmVersion":"8.1.0","description":"Parse text columns, like the output of Unix commands","directories":{},"_nodeVersion":"12.22.1","dependencies":{"execall":"^3.0.0","split-at":"^3.0.0","escape-string-regexp":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.46.4","ava":"^3.15.0","tsd":"^0.18.0"},"_npmOperationalInternal":{"tmp":"tmp/parse-columns_3.0.0_1636003563511_0.73305062694962","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"parse-columns","version":"4.0.0","description":"Parse text columns, like the output of Unix commands","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-columns.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["parse","parser","columns","column","row","text","string","unix","command","output","csv","shell","sh","term","table"],"dependencies":{"escape-string-regexp":"^5.0.0","execall":"^3.0.0","split-at":"^3.0.0"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.2"},"_id":"parse-columns@4.0.0","gitHead":"682a2057c903e88cfc29a2a46962a73f35390b41","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"homepage":"https://github.com/sindresorhus/parse-columns#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-gDbL5+8ozVxQAqhKWrRcpdZeJJc1N01jIcbJpRb/ajH3TqiJTM+CpE2KhUt1IzIUXwpsYuAL0eNDCh9BnOG4QQ==","shasum":"2cad666161dbab15d8a7a722ffc26135b74db575","tarball":"https://registry.npmjs.org/parse-columns/-/parse-columns-4.0.0.tgz","fileCount":5,"unpackedSize":9215,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCn3h3fLt8B2ZowLZOEoaVu8rhwT8+smrme4RCSEMJJNQIgczxbpzh3FnuIJ+w5BxfAKVi5lCxPWmoSWOK7mXxceGA="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parse-columns_4.0.0_1757430815324_0.7633240715478955"},"_hasShrinkwrap":false}},"time":{"created":"2015-06-16T10:27:19.557Z","modified":"2025-09-09T15:13:35.674Z","1.0.0":"2015-06-16T10:27:19.557Z","1.0.1":"2015-06-30T21:23:44.496Z","1.1.0":"2015-07-07T13:12:46.223Z","1.2.0":"2015-10-15T18:33:42.929Z","1.3.0":"2015-11-14T11:07:16.609Z","2.0.0":"2019-04-23T10:31:05.869Z","3.0.0":"2021-11-04T05:26:03.651Z","4.0.0":"2025-09-09T15:13:35.494Z"},"bugs":{"url":"https://github.com/sindresorhus/parse-columns/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/parse-columns#readme","keywords":["parse","parser","columns","column","row","text","string","unix","command","output","csv","shell","sh","term","table"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/parse-columns.git"},"description":"Parse text columns, like the output of Unix commands","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# parse-columns\n\n> Parse text columns, like the output of Unix commands\n\n## Install\n\n```sh\nnpm install parse-columns\n```\n\n## Usage\n\n```\n$ df -kP\nFilesystem 1024-blocks      Used Available Capacity  Mounted on\n/dev/disk1   487350400 467871060  19223340    97%    /\ndevfs              185       185         0   100%    /dev\nmap -hosts           0         0         0   100%    /net\n```\n\n```js\nimport {promisify} from 'node:util';\nimport childProcess from 'node:child_process';\nimport parseColumns from 'parse-columns';\n\nconst execFileP = promisify(childProcess.execFile);\n\nconst {stdout} = await execFileP('df', ['-kP']);\n\nconsole.log(parseColumns(stdout, {\n\ttransform: (item, header, columnIndex) => {\n\t\t// Coerce elements in column index 1 to 3 to a number\n\t\tif (columnIndex >= 1 && columnIndex <= 3) {\n\t\t\treturn Number(item);\n\t\t}\n\n\t\treturn item;\n\t}\n}));\n/*\n[\n\t{\n\t\tFilesystem: '/dev/disk1',\n\t\t'1024-blocks': 487350400,\n\t\tUsed: 467528020,\n\t\tAvailable: 19566380,\n\t\tCapacity: '96%',\n\t\t'Mounted on': '/'\n\t},\n\t…\n]\n*/\n```\n\n## API\n\n### parseColumns(textColumns, options?)\n\n#### textColumns\n\nType: `string`\n\nThe text columns to parse.\n\n#### options\n\nType: `object`\n\n##### separator\n\nType: `string | RegExp`\nDefault: `' '`\n\nSeparator to split columns on.\n\n- `string`: Single character separator (default behavior)\n- `RegExp`: Regular expression pattern for flexible matching\n\n```js\n// Default space separator\nparseColumns(data);\n\n// Tab separator  \nparseColumns(data, {separator: '\\t'});\n\n// Any whitespace (spaces, tabs, etc.)\nparseColumns(data, {separator: /\\s+/});\n\n// Either spaces or tabs  \nparseColumns(data, {separator: /[ \\t]/});\n```\n\n##### headers\n\nType: `string[]`\n\nHeaders to use instead of the existing ones.\n\n##### transform\n\nType: `Function`\n\nTransform elements.\n\nUseful for being able to cleanup or change the type of elements.\n\nThe supplied function gets the following arguments and is expected to return the element:\n\n- `element` *(string)*\n- `header` *(string)*\n- `columnIndex` *(number)*\n- `rowIndex` *(number)*\n\n## Related\n\n- [parse-columns-cli](https://github.com/sindresorhus/parse-columns-cli) - CLI for this module\n","readmeFilename":"readme.md","users":{"khai96_":true,"mjurincic":true,"curioussavage":true}}