sindresorhus / df

Get free disk space info from `df -kP`
MIT License
64 stars 12 forks source link

Use parse-columns to fix #13 #14

Closed julien-f closed 3 years ago

julien-f commented 3 years ago

I tried to do as you suggested, unfortunately it breaks on spaces.

sindresorhus commented 3 years ago

Would you be able to submit a failing test to parse-columns? I'll then try to get some attention to the issue.

julien-f commented 3 years ago

I don't think I'll have the time to take care of it soon.

sindresorhus commented 3 years ago

No problem. I looked into this and it seems the problem only occurs when using the headers option. So you can work around it by not using the headers option and then just replace the headers after getting them from parseColumns.

https://github.com/sindresorhus/parse-columns/issues/13

sindresorhus commented 3 years ago

Closing for lack of activity.