Commit Graph

47 Commits

Author SHA1 Message Date
FourierTransformer
e6324c4014
Make the delimiter optional in the encoder (#45) 2024-08-14 10:38:42 -05:00
FourierTransformer
11f1c6e437
Make delimiter optional and fix bug when reusing options table (#42) 2024-08-06 07:58:30 -05:00
Diego Coy
527620af3d
docs fix: Update README.md (#38) 2023-05-30 20:31:10 -05:00
FourierTransformer
8d5af9f7d7 updating rockspec for release 2023-02-20 11:07:42 -06:00
FourierTransformer
6238c5a0e8
Rename noQuotes to onlyRequiredQuotes and fix encoding bug (#35) 2023-02-20 11:00:39 -06:00
FourierTransformer
5be2f78119
Fix Header-less file bug and add ability to encode without Quotes (#34) 2023-02-02 23:19:00 -06:00
FourierTransformer
c858f99825
Delete .travis.yml 2023-01-03 20:21:27 -06:00
FourierTransformer
49bf0e7e28
Fixed bufferSize default bug with options present and new release (#29) 2023-01-03 20:21:09 -06:00
FourierTransformer
697856f0c2
Update to work with Lua 5.4 (#27)
* updates for lua 5.4
2020-10-28 21:46:04 -05:00
FourierTransformer
86686314e0
New Release 1.2.0 (#26)
## Features
 * Can now parse files line by line in a fixed-size reading mode
 * Now has an option to ignore quotes when parsing

## Improvements
 * Speed increases in vanilla Lua and LuaJIT (benchmarks updated!)
 * Refactored code for easier maintenance

## Bugfixes
 * Better handling of multiple escaped quotes in vanilla lua (thanks @fredrikj83 #25)
2020-04-04 13:47:24 -05:00
Shakil Thakur
705d3a589a Performance improvements and new release (#20)
* massive speedup by removing pcall

* updated readme with benchmarks and getting ready for another release
2018-05-30 22:32:28 -05:00
Shakil Thakur
8bd8fbe065 returned headers should now be correct, BOM fix for headerless files and added dynamic_features_spec (#19) 2018-05-29 19:31:28 -05:00
Shakil Thakur
2dff1f2764 updated version numbers (#18) 2018-05-27 12:21:44 -05:00
Shakil Thakur
14b0dded42 better quote handling (#17)
* fixed quote escape bug

* made findClosingQuote more consistent and added unit tests

* fixed bug with findClosingQuote

* minor speedup of findClosingQuote for vanilla lua
2018-05-27 11:26:48 -05:00
Shakil Thakur
ca292adee0 fixed bug with no header and no newline at end (#15) 2018-05-26 20:44:53 -05:00
Shakil Thakur
9ef72b8810 update travis to run lua 5.2/5.3 (#16) 2018-05-26 20:18:08 -05:00
Shakil Thakur
54d0817376 Merge pull request #11 from FourierTransformer/os9-line-endings-fix
Mac OS9 line endings fix and BOM removal
2017-12-01 22:56:10 -06:00
FourierTransformer
111199c94a minor clarifications 2017-12-01 08:50:16 -06:00
FourierTransformer
d2ddda79f7 will now strip out BOM 2017-11-30 22:46:10 -06:00
FourierTransformer
6c820e03a1 version bump 2017-11-30 22:02:49 -06:00
FourierTransformer
2ad3fb7be9 can now handle os 9 line endings 2017-11-30 21:58:36 -06:00
Shakil Thakur
29675f4d61 Merge pull request #7 from Oozlum/return_headers
ftcsv.parse also returns table of column headers
2017-11-05 22:50:15 -06:00
Shakil Thakur
1a40dd1126 Update README.md
added a newline to fix the contributing guide
2017-11-02 20:48:02 -05:00
Chris Smith
62b1c1bd8f ftcsv.parse also returns table of column headers
output, headers = ftcsv.parse(...) -- headers = { 'Column 1', 'Column 2', ... }
2017-11-02 10:28:14 +00:00
Shakil Thakur
7d5ac974b0 updated to fix bad md formatting 2017-10-07 10:50:41 -05:00
FourierTransformer
a94461c347 fixed bug where quote existed in non-quoted field 2016-11-12 17:44:41 -06:00
Shakil Thakur
49baa6df90 Merge pull request #5 from FourierTransformer/better_testing
better error handling with unit tests!
2016-11-06 11:42:52 -06:00
FourierTransformer
20f4dd306e better error handling with unit tests! 2016-11-06 11:36:24 -06:00
FourierTransformer
e218fb0a75 updated version and added some more unit tests 2016-10-20 22:56:26 -05:00
Shakil Thakur
3ba34b333a Merge pull request #2 from Robert-M-Muench/patch-1
Delmiter was not taken into account for Headers
2016-10-20 22:34:44 -05:00
Robert M. Münch
2e0d8a6284 Delmiter was not taken into account for Headers
Headers were always separated with "," char even when other delimiter was given.
2016-10-20 20:20:12 +02:00
FourierTransformer
ee24dcd9a6 code refactor, can now modify headers via function, and slight performance increase 2016-04-02 15:42:32 -05:00
FourierTransformer
f2083dd38b localizing some commonly used funcs 2016-04-02 08:42:11 -05:00
FourierTransformer
4b68b9f097 release 1.0.3 2016-03-29 20:20:37 -05:00
Shakil Thakur
47ed4dabf9 Merge pull request #1 from srdgame/patch-1
Convert value to string before escape it
2016-03-29 20:18:02 -05:00
cch
c1a4012027 Convert value to string before escape it
Originall ftcsv will be failed when encoding a number field content
2016-03-29 14:20:23 +08:00
FourierTransformer
db9941aee8 code cleanup and release version 2016-03-19 14:04:17 -05:00
FourierTransformer
e34c08b772 major vanilla lua speedups 2016-03-19 13:27:47 -05:00
FourierTransformer
c58bd79a24 major non-jit lua speedup 2016-03-19 01:17:32 -05:00
FourierTransformer
48fbb20d46 updated readme 2016-03-14 20:28:35 -05:00
FourierTransformer
1dd41ce025 forgot to add cjson to travis yml file 2016-03-14 20:15:16 -05:00
FourierTransformer
864e3e6a1a added support for lua 5.1 and 5.3 and have setup .travis.yml 2016-03-14 20:12:45 -05:00
FourierTransformer
ddb654ebe1 First Release :shipit: 2016-03-13 21:47:57 -05:00
FourierTransformer
d24a00c290 added more unit tests and finalized api 2016-03-13 00:33:31 -06:00
FourierTransformer
66e8c1306e Merge branch 'master' of https://github.com/FourierTransformer/ftcsv 2016-03-09 06:42:47 -06:00
Shakil Thakur
7e6e56f7d9 Initial commit 2016-03-09 06:38:25 -06:00
FourierTransformer
572997ae12 adding ftcsv and test scripts 2016-03-09 06:37:25 -06:00