├── .coveralls.yml ├── .gitignore ├── .travis.yml ├── LICENSE ├── _config.yml ├── gulpfile.js ├── lib ├── index.js └── streamify.js ├── package.json ├── readme.md ├── src ├── index.ts └── streamify.ts ├── test ├── debug.js ├── genTestData.ts ├── performance-tests.ts ├── spectrum-tests.ts └── spectrum │ ├── index.ts │ ├── json │ ├── comma_in_quotes.json │ ├── empty.json │ ├── empty_crlf.json │ ├── escaped_quotes.json │ ├── json.json │ ├── newlines.json │ ├── newlines_crlf.json │ ├── quotes_and_newlines.json │ ├── simple.json │ ├── simple_crlf.json │ └── utf8.json │ ├── readme.md │ └── text │ ├── comma_in_quotes.csv │ ├── empty.csv │ ├── empty_crlf.csv │ ├── escaped_quotes.csv │ ├── json.csv │ ├── newlines.csv │ ├── newlines_crlf.csv │ ├── quotes_and_newlines.csv │ ├── simple.csv │ ├── simple_crlf.csv │ ├── tab_separated.csv │ └── utf8.csv └── tsconfig.json /.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: D3Ydx8bjxJBrr6tQjHjsGWJE0v6CW2gtK -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/LICENSE -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/_config.yml -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/gulpfile.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/streamify.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/lib/streamify.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/readme.md -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/streamify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/src/streamify.ts -------------------------------------------------------------------------------- /test/debug.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/debug.js -------------------------------------------------------------------------------- /test/genTestData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/genTestData.ts -------------------------------------------------------------------------------- /test/performance-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/performance-tests.ts -------------------------------------------------------------------------------- /test/spectrum-tests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum-tests.ts -------------------------------------------------------------------------------- /test/spectrum/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/index.ts -------------------------------------------------------------------------------- /test/spectrum/json/comma_in_quotes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/comma_in_quotes.json -------------------------------------------------------------------------------- /test/spectrum/json/empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/empty.json -------------------------------------------------------------------------------- /test/spectrum/json/empty_crlf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/empty_crlf.json -------------------------------------------------------------------------------- /test/spectrum/json/escaped_quotes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/escaped_quotes.json -------------------------------------------------------------------------------- /test/spectrum/json/json.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/json.json -------------------------------------------------------------------------------- /test/spectrum/json/newlines.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/newlines.json -------------------------------------------------------------------------------- /test/spectrum/json/newlines_crlf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/newlines_crlf.json -------------------------------------------------------------------------------- /test/spectrum/json/quotes_and_newlines.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/quotes_and_newlines.json -------------------------------------------------------------------------------- /test/spectrum/json/simple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/simple.json -------------------------------------------------------------------------------- /test/spectrum/json/simple_crlf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/simple_crlf.json -------------------------------------------------------------------------------- /test/spectrum/json/utf8.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/json/utf8.json -------------------------------------------------------------------------------- /test/spectrum/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/readme.md -------------------------------------------------------------------------------- /test/spectrum/text/comma_in_quotes.csv: -------------------------------------------------------------------------------- 1 | first,last,address,city,zip 2 | John,Doe,120 any st.,"Anytown, WW",08123 -------------------------------------------------------------------------------- /test/spectrum/text/empty.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,"","" 3 | 2,3,4 -------------------------------------------------------------------------------- /test/spectrum/text/empty_crlf.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,"","" 3 | 2,3,4 -------------------------------------------------------------------------------- /test/spectrum/text/escaped_quotes.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/text/escaped_quotes.csv -------------------------------------------------------------------------------- /test/spectrum/text/json.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/text/json.csv -------------------------------------------------------------------------------- /test/spectrum/text/newlines.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | "Once upon 4 | a time",5,6 5 | 7,8,9 6 | -------------------------------------------------------------------------------- /test/spectrum/text/newlines_crlf.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | "Once upon 4 | a time",5,6 5 | 7,8,9 6 | -------------------------------------------------------------------------------- /test/spectrum/text/quotes_and_newlines.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/test/spectrum/text/quotes_and_newlines.csv -------------------------------------------------------------------------------- /test/spectrum/text/simple.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | -------------------------------------------------------------------------------- /test/spectrum/text/simple_crlf.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | -------------------------------------------------------------------------------- /test/spectrum/text/tab_separated.csv: -------------------------------------------------------------------------------- 1 | a b c 2 | 1 2 3 -------------------------------------------------------------------------------- /test/spectrum/text/utf8.csv: -------------------------------------------------------------------------------- 1 | a,b,c 2 | 1,2,3 3 | 4,5,ʤ -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nilobarp/text2json/HEAD/tsconfig.json --------------------------------------------------------------------------------