{"_id":"export-to-csv","_rev":"18-3ac34ea607e7eabce9e8d8c0752ebaa7","name":"export-to-csv","dist-tags":{"latest":"1.5.0"},"versions":{"0.1.0":{"name":"export-to-csv","version":"0.1.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@0.1.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"bba94c2998d3573be5156a054fdfddfdcb8aaad9","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-0.1.0.tgz","integrity":"sha512-Dmh2pIQQazlBStnnKSYqCZbX6KOy4jIzagf/tW1DzK1RAFcvE/4N4ZIGMbVtre+OmUuj0GQZqGFhKrj1WmPVWA==","signatures":[{"sig":"MEUCIQDGAqbpYNLRcjTJ7rQJT6mDfWgRcQ3QRv+lajLy5AjsjAIgEAO/jhArRwbJ0osXfrE6Mr7Qzl4cgd78/+vs0M/nM/c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./build/index.js","_from":".","email":"alex@alexcaza.com","types":"./build/export-to-csv.d.ts","_shasum":"bba94c2998d3573be5156a054fdfddfdcb8aaad9","gitHead":"1396b230f3c12259c2479da112d5fbea41b21ceb","scripts":{"dev":"tsc --watch","test":"tsc && karma start","prepublishOnly":"tsc"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"4.1.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"7.7.4","devDependencies":{"karma":"^1.5.0","es6-shim":"^0.35.3","typescript":"~2.4.0","jasmine-core":"^2.4.1","karma-jasmine":"^1.0.2","@types/jasmine":"^2.5.46","karma-typescript":"^3.0.8","karma-chrome-launcher":"^2.0.0","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv-0.1.0.tgz_1511205845511_0.030916978139430285","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"export-to-csv","version":"0.1.1","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@0.1.1","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"79dcf45e8cb7fba959b81d9ec917230660c54422","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-0.1.1.tgz","integrity":"sha512-gqBcpK8+hhuNr3om1l4HI9yUnyBTYvUDPpwen9D96UAPqyuw5YSRtbtebcNZOhpWCD3MKb7RB5oOi/kGHPAKZg==","signatures":[{"sig":"MEUCIHBxMMPGbvZJoVmx/l0cXv8zMwXywBBEJbXAEmOYoWI6AiEAo31V/4AZ66qaoLX0GAT61buzm2hYdNzdVmvNirxWJjk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./build/index.js","_from":".","email":"alex@alexcaza.com","types":"./build/export-to-csv.d.ts","_shasum":"79dcf45e8cb7fba959b81d9ec917230660c54422","gitHead":"3e0956da34d1160468b873a874174f338be1014c","scripts":{"dev":"tsc --watch","test":"tsc && karma start","prepublishOnly":"tsc"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"4.1.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"7.7.4","devDependencies":{"karma":"^1.5.0","es6-shim":"^0.35.3","typescript":"~2.4.0","jasmine-core":"^2.4.1","karma-jasmine":"^1.0.2","@types/jasmine":"^2.5.46","karma-typescript":"^3.0.8","karma-chrome-launcher":"^2.0.0","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv-0.1.1.tgz_1511206771168_0.9489635310601443","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"export-to-csv","version":"0.1.2","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@0.1.2","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"6579c18e7cd8e0ed2412496093123d0335bc9833","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-0.1.2.tgz","fileCount":7,"integrity":"sha512-GTjashjm0uQ3/iy1feEOLUBIZhHtX6WemgteGxEzmFMhyaRnegMKUnB643qHYl1GCneKxYfQnCHz+ox1iIu6gw==","signatures":[{"sig":"MEYCIQDts8K9ZEQb0iX2cNGuRo6M5EmIFIAxK7YGXZe7qNV+PwIhAPMRuIIWlkyMObz1eyqZzHPDyjSclLsSZDW6OzvzER3p","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15081,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbddTuCRA9TVsSAnZWagAAmtMP/RGG5TArGdHFlxQVPAyw\nUlYglPsId0s2Urw27z9tNQY4/rtDNqP8oufwA/3shgsWynWhZ9WlSvX7vliL\nAZvLOD0rtnYmAgE+wHwRQxnqOotmxjkTJ3ee7UCr6dzbc8phweW6qsRcQDI+\nOSFMPqCJPU8uZOLaKD/1oaWNyv3I++qTKRmefeC/uOSGB/dHHpIl+ufGHxua\nNVBUaQ/XJutXGdBv9mz9EpcJwBTFCqoMC00Ju+RaBppMPEds7pH4+at3r1Lf\n/vOGFzlwUFQs418aORkoR+YSm0h0/iq46e6rwPdF6dLCabimEG59aIxOrZ9r\nrglWILznj0ENlyhqMGLKXlWG8V3yz4KqHXazf++bipHDq3Kn2A2GWJnY+ueN\npZe2CEfk5Q9TrtIVsy09eCa6bU5emgArh8OPYKCuW/7dqb5qVCOO5eMTtNab\n9QUE3NePBaYAA/9uzcWyDBdguxuPxh6cBqIQ4EM/pLfu/uNThs3c0T5+HlqK\nwU9+akIatfFzwXaRCQ07zQcshwKYtcKizkmJxoY+mliZah6XAFK1LGG/4lCZ\nIkyaxs4KMPMM0URMYnbt9L8/0LAHnSk+XQrfReTDHdRI6HYKey/BlJUWK3Ua\nRGfatR2Q3+IlGVU+cUBgLQO2wLYpo4OLEHI2+/IJYlOERDFSon7Ob4QAt+kw\nlk8Y\r\n=OshG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","email":"alex@alexcaza.com","types":"./build/export-to-csv.d.ts","gitHead":"ad2221a3358a2f88839b026a5deff3227744d287","scripts":{"dev":"tsc --watch","test":"tsc && karma start","prepublishOnly":"tsc"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"5.5.1","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"8.9.2","_hasShrinkwrap":false,"devDependencies":{"karma":"^1.5.0","es6-shim":"^0.35.3","typescript":"~2.4.0","jasmine-core":"^2.4.1","karma-jasmine":"^1.0.2","@types/jasmine":"^2.5.46","karma-typescript":"^3.0.8","karma-chrome-launcher":"^2.0.0","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_0.1.2_1534448877896_0.8413103667119741","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"export-to-csv","version":"0.2.1","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@0.2.1","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"8f997156feebc1cf995096da16341aa0100cce4e","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-0.2.1.tgz","fileCount":16,"integrity":"sha512-KTbrd3CAZ0cFceJEZr1e5uiMasabeCpXq1/5uvVxDl53o4jXJHnltasQoj2NkzrxD8hU9kdwjnMhoir/7nNx/A==","signatures":[{"sig":"MEUCIQC6ai39IrQ3lIE5/uTpgo9w76YX5AUrsV/eMXRdSFZR/gIgdHslosoKOFhVs7DhPrb0Vd/YkgXnCIfR1Ypj7n8ZG1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcP2JXCRA9TVsSAnZWagAActkP/jB2HFsy5ESAgMFhRwdo\nMiO78hkLA3B0gyq32n21MdayhXhsXtMNwgZp+fKgQpX3YrjSt2E6p9gHBhur\nlbgmfyVTn64H9oWF08vky+jHAEXzG1nzpTvW/j8X0/aRmzKevsiqBtNwVT6K\nPlP6KCKRL1NRQ54ST3AmbsNdvR9DulJVyT5mNeDq2a3X99UEgU4OLBBIHB+4\nvQvrTuSkFp3C6mu/S44OmL7TNH/nkYfb8Zr5Rxw2AKlEihPajoma5w11pbaX\nPD2U7t1cTKWMDo17NGlHNI8fQFcRDd+462ssftnjR70m2mvMTmGHyFWW+t8K\nbNzgEVP4LiX+Ml7zP/sDIhi6yqtRL37+qb9uFsmFg4Q32UPpbTrn1Q2bizlB\nabyqYhC0/ioeuT9SajRK/5YNXHCpXuiHbK25U7fAz1ooMagYqU/BG5VKhRfi\noAqWu0nEufjyEGwYGVHOxsavwoxrAFQ+dvEPSjkP/Xf3a/zp/Is91CZ0kJdk\nf+tDqWL2DoHjRO2cc8Q9wST4qRO7YhITtsIhEa2mO5Jorx2oq6ejW60CMcR9\niw7nlhSaRBGU7eQgbSY+aYGRSqt3Kk35x/Ga7EO9A4+nhicp5IXzAQ23waBk\ngwxsIWf9zKzt8+0gJCRdsUDUtMU7ekss8p/QFF7oeshwzh5l9/4m0gh/5+IQ\nGB3f\r\n=mVB8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","email":"alex@alexcaza.com","types":"./build/export-to-csv.d.ts","gitHead":"f91f13df69cddf86e84307ff5b78115d5efe8fb0","scripts":{"dev":"tsc --watch","test":"tsc && karma start","prepublishOnly":"tsc"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"5.5.1","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"8.9.2","_hasShrinkwrap":false,"devDependencies":{"karma":"^1.5.0","es6-shim":"^0.35.3","typescript":"~2.4.0","jasmine-core":"^2.4.1","karma-jasmine":"^1.0.2","@types/jasmine":"^2.5.46","karma-typescript":"^3.0.8","karma-chrome-launcher":"^2.0.0","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_0.2.1_1547657814855_0.2934312173515554","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"export-to-csv","version":"0.2.2","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@0.2.2","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"201ee08453dfb0d07792ee5e01fda48e4ff472ce","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-0.2.2.tgz","fileCount":18,"integrity":"sha512-KHExLOjF2yvo8JU8Sv+5RuJAHzP1TpFvUgnWn8ex7zBrv1ZsABJAOpvG1RNRRWr1spYpDJmBBaR5/cV/8aBQSw==","signatures":[{"sig":"MEUCIEijTPWR9QvX6ktLtHlbm+NCe/iVfVH477Efe9oHJXq9AiEA+jeLOns+zqzypMaKF6FBpiwcRNM02dkB+6Y94nwGFho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94600},"main":"./build/index.js","email":"alex@alexcaza.com","types":"./build/export-to-csv.d.ts","gitHead":"5d0ffdedf2c5dc67a3f9b4bfbdcde956cb6ec151","scripts":{"dev":"tsc --watch","test":"karma start","prepublishOnly":"tsc"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"karma":"^6.4.2","prettier":"3.0.3","typescript":"~5.2.2","jasmine-core":"^5.1.1","karma-jasmine":"^5.1.0","@types/jasmine":"^4.3.5","karma-typescript":"^5.5.4","karma-chrome-launcher":"^3.2.0","karma-sourcemap-loader":"^0.4.0","karma-phantomjs-launcher":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_0.2.2_1693601926552_0.12930549816295067","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"export-to-csv","version":"1.0.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.0.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"be2b8d2fa7d92a03012129639f2a7b735fff82a4","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.0.0.tgz","fileCount":12,"integrity":"sha512-PMwskctJEbZMXZ3sRWcJHlaobY5b9JvbpB7+jpJF5FGrIh1ASWWI0IB4JrooIK9Kv+7GE+czp+gHKFFGkk8/ig==","signatures":[{"sig":"MEYCIQDpXbEJFoc2lpgot7q7uJ4mIqP7B6yxz/2FkzhWcb3s9QIhAODqcPXv+WYoIizPnIt4Xj1Y3npM+9/3ByTV0rnXB7lV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21503},"main":"./output/index.js","type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","gitHead":"e934c3678ea983869a00662d419eacb7a5889248","scripts":{"dev":"tsc --watch","e2e":"rm -rf integration/export-to-csv.js && npm run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"jest","build":"rm -rf output && rollup -c rollup.config.mjs","e2e-ci":"rm -rf integration/export-to-csv.js && npm run build && cp output/index.js integration/export-to-csv.js && npx playwright install --with-deps && playwright test","e2e-server":"npx http-server ./integration -p 3000","prepublishOnly":"npm run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","tslib":"^2.6.2","rollup":"^3.28.1","prettier":"3.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.0.0_1693791404898_0.19724450384168746","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"export-to-csv","version":"1.1.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.1.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"137abd06547351209b6f1e979432674f1505436c","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.1.0.tgz","fileCount":12,"integrity":"sha512-gw6lpDvmYl6k0aJyd5yJ3aah3D2JOTrAtahckiuW3pUxsR597vfXrokpCmiwTPRC8o0tk76ZV6fIvZ24uFC4Mw==","signatures":[{"sig":"MEYCIQCmgIEIOHL3cHlrzN0qHB08SawqEOWQK66ZbRn5OE8knQIhAL0Rj3vjPRzKUoYerWiUs0d2J//RyMt5SWahhgGNk8KT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":159067},"main":"./output/index.js","type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","gitHead":"578b2a2618a3f91b92fcc286ced718585f342525","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc index.ts --declaration --emitDeclarationOnly --outdir ./output","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.3","tslib":"^2.6.2","prettier":"3.0.3","bun-types":"^1.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.1.0_1696552339990_0.6391824868071849","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"export-to-csv","version":"1.2.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.2.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"2ccb7fb81a5ff98651a9e1ed687504dcd321401a","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.2.0.tgz","fileCount":11,"integrity":"sha512-BKmwBHvE3rP4uA/wqwPMhWqzoX0CwrR67XJ9vBAcTpBd5SQN9/3IZY5z7ZzG8T8bHnJAGfFYWwJ7AHCOGUcKOA==","signatures":[{"sig":"MEYCIQCH1Wat4IzPRe4l/nfmNjh//BWY0EKZEy+S0+8N4pAy6AIhAMHR8qwMr/9xdoqxy8AgTn5maEmjHUtmQDq7ExlZQknT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20379},"main":"./output/index.js","type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","gitHead":"707f519aeb84db58764d6b1e6fc9c6c607b8a147","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc index.ts --declaration --emitDeclarationOnly --outdir ./output","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.3","tslib":"^2.6.2","prettier":"3.0.3","bun-types":"^1.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.2.0_1696811080631_0.4805489681106627","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"export-to-csv","version":"1.2.1","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.2.1","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"42c3cb74040ce960a2a0bff6e4c54427c808ebc6","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.2.1.tgz","fileCount":12,"integrity":"sha512-Q16f4RAu99VcBy3ZVXWAdJ4N+6GIijLI/7Uw5rQ4Mi1WeiAK+s6i11AN/wdYTS+hK14wM6xlSrVhnLyEVEvMFQ==","signatures":[{"sig":"MEYCIQDOVWggFkMAk4IkSLHQ6e3NVMhyzgY60dxD0l6GvOI8wwIhAMMTZRXZjy7UhIEQilyfYhZmNhsAV9lNFWypHKqi4OP2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22598},"main":"./output/index.js","type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","gitHead":"cef9076d40275f2cf4ba25529b562e9537d5f0f9","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc index.ts --declaration --emitDeclarationOnly --outdir ./output","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.3","tslib":"^2.6.2","prettier":"3.0.3","bun-types":"^1.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.2.1_1698447160722_0.8665973954137762","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"export-to-csv","version":"1.2.2","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.2.2","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"24f09a2dba34aff65f8f97402a869e88232b8f58","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.2.2.tgz","fileCount":12,"integrity":"sha512-d9BxkLlyxeyFU1yhQKGjnnEQj2fh6PjyDVGyiI/uj7PD/oe7Lo1551B1lTaQeXHGPRX2DHuk6i3JMZB6ncJApQ==","signatures":[{"sig":"MEQCIBUGBw2gJZJdF/LlTiNG051AIaCM/KpinRKZ0vulxP9YAiBVFPH/DXxj79APJEXWQyCGPwf8Im0PoZwaMTNYbq15Qg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22621},"main":"./output/index.js","type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","gitHead":"49a9168d15f63672e7a5d1a7ecd7e4ca37b44d34","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc index.ts --declaration --emitDeclarationOnly --outdir ./output","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"8.19.2","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.3","tslib":"^2.6.2","prettier":"3.0.3","bun-types":"^1.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.2.2_1702929001196_0.2539870545550611","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"export-to-csv","version":"1.2.3","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.2.3","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"01ffed393bb195d9b45216ca13094392880cb48e","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.2.3.tgz","fileCount":13,"integrity":"sha512-N+hWdpEQNSn4BeltgusTuW65gC+2B5hmOWe4Eu0gw0NwKq92dzD+5ObSSBUeKTy7k+PGG7xDqaThPg8elZ7k+g==","signatures":[{"sig":"MEYCIQDs/dX9ag1GWDmlCqwFebD1YfxyPlHvwYaPff5Ey6EmWwIhAMXkIbB80V24tpZsVj2fYIlZoEeEc4Qf4jZCBsX2O2B3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22699},"type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","engines":{"node":"^v12.20.0 || >=v14.13.0"},"exports":"./output/index.js","gitHead":"6c93dde6d19188de44a187b5a529b5c105d10660","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"10.2.4","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.3","tslib":"^2.6.2","prettier":"3.0.3","bun-types":"^1.0.3","babel-jest":"^29.6.4","typescript":"~5.2.2","@babel/core":"^7.22.11","http-server":"^14.1.1","@jest/globals":"^29.6.4","@playwright/test":"^1.37.1","@babel/preset-env":"^7.22.14","@babel/preset-typescript":"^7.22.11","@rollup/plugin-typescript":"^11.1.3"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.2.3_1708562846006_0.8364959628127437","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"export-to-csv","version":"1.2.4","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.2.4","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"3e1bd326993657f04b5e870c24de79421e700f16","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.2.4.tgz","fileCount":14,"integrity":"sha512-mniFCil3DPLb4esJX00Nm6R77WbTMAqlzgYBlqN++QXZ2juNu19RMnRgmjuPH2pyRbrQvOieKg8zTp5lCwUFyQ==","signatures":[{"sig":"MEYCIQC+Axj92zu05jIPK0mS0UTgJQgiAVPLad4rQUNcQhGUJgIhALAH/zDpMKhtXahHfZp0sNOBW8ND4z+2lOb79XeKTgrI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24582},"type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","engines":{"node":"^v12.20.0 || >=v14.13.0"},"exports":"./output/index.js","gitHead":"e7607c503cc8f76dca2f74166184e2a9970d5a01","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"10.2.4","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.28","prettier":"3.0.3","bun-types":"^1.0.28","typescript":"~5.3.3","http-server":"^14.1.1","@playwright/test":"^1.37.1"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.2.4_1709770884872_0.9253722645140314","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"export-to-csv","version":"1.3.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.3.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"9f53cf61fcd6bed836683ed7d611767022d49919","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.3.0.tgz","fileCount":14,"integrity":"sha512-msPjbfozZdYzDghAEKmCVH5veMeKHNacplE6noXvGiA8AeV1qa/SOxp6JXDjF9R8Kf6v3ypI6jskiY19dkhZeA==","signatures":[{"sig":"MEQCIGOh6Wwz5mWWfcIIEjUS46DdtUfehUR496u2I+almEWlAiB/G2XF8GGnPyk7+m4qhQguWdxYzvcGjjCnSQP/INCGKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27203},"type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","engines":{"node":"^v12.20.0 || >=v14.13.0"},"exports":"./output/index.js","gitHead":"51c8d10415c4f95fc456c4f74aabb8bb4ec1edeb","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"10.5.0","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"18.20.2","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.28","prettier":"3.0.3","bun-types":"^1.0.28","typescript":"~5.3.3","http-server":"^14.1.1","@playwright/test":"1.40.0"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.3.0_1714423188097_0.15124890977560002","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"export-to-csv","version":"1.4.0","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"author":{"name":"alexcaza"},"license":"MIT","_id":"export-to-csv@1.4.0","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"homepage":"https://github.com/alexcaza/export-to-csv#readme","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"dist":{"shasum":"03fb42a4a4262cd03bde57a7b9bcad115149cf4b","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.4.0.tgz","fileCount":13,"integrity":"sha512-6CX17Cu+rC2Fi2CyZ4CkgVG3hLl6BFsdAxfXiZkmDFIDY4mRx2y2spdeH6dqPHI9rP+AsHEfGeKz84Uuw7+Pmg==","signatures":[{"sig":"MEUCIQDgqRVhN9zWM5G45l64Lh8DnM12QKEFwoKjnynYje3tewIgSd5R70YmJWZ3/vsSII9QqgQ76/y3zBMo9j9Y7mb91o8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27947},"type":"module","email":"alex@alexcaza.com","types":"./output/index.d.ts","engines":{"node":"^v12.20.0 || >=v14.13.0"},"exports":"./output/index.js","gitHead":"59019571cd0a14d06040cee9bc567651fc9f95bb","scripts":{"e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","test":"bun test lib/__specs__/","build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc","watch":"rm -rf output && bun build index.ts --outdir ./output --minify --watch","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","format":"bunx prettier --write '.'","prepare":"bun run build","e2e-server":"bunx http-server ./integration -p 3000","prepublishOnly":"bun run build"},"_npmUser":{"name":"alexcaza","email":"alex@alexcaza.com"},"repository":{"url":"git+https://github.com/alexcaza/export-to-csv.git","type":"git"},"_npmVersion":"10.7.0","description":"Easily create CSV data from json collection","directories":{},"_nodeVersion":"18.20.4","_hasShrinkwrap":false,"devDependencies":{"bun":"~1.0.28","prettier":"3.0.3","bun-types":"^1.0.28","typescript":"~5.3.3","http-server":"^14.1.1","@playwright/test":"1.40.0"},"_npmOperationalInternal":{"tmp":"tmp/export-to-csv_1.4.0_1725143184586_0.9654887108794574","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"export-to-csv","version":"1.5.0","author":{"name":"alexcaza"},"repository":{"type":"git","url":"git+https://github.com/alexcaza/export-to-csv.git"},"devDependencies":{"@playwright/test":"1.61.1","bun-types":"~1.3.14","http-server":"^14.1.1","prettier":"~3.9.6","bun":"~1.3.14","typescript":"~7.0.2"},"exports":"./output/index.js","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"description":"Easily create CSV data from json collection","email":"alex@alexcaza.com","engines":{"node":"^v12.20.0 || >=v14.13.0"},"homepage":"https://github.com/alexcaza/export-to-csv#readme","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"license":"MIT","scripts":{"build":"rm -rf output && bun build index.ts --outdir ./output --minify && tsc","watch":"rm -rf output && bun build index.ts --outdir ./output --minify --watch","e2e":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && playwright test","e2e-ci":"rm -rf integration/export-to-csv.js && bun run build && cp output/index.js integration/export-to-csv.js && bunx playwright install --with-deps && playwright test","e2e-server":"bunx http-server ./integration -p 3000","test":"bun test lib/__specs__/","format":"bunx prettier --write '.'","prepublishOnly":"bun run build","prepare":"bun run build"},"type":"module","types":"./output/index.d.ts","gitHead":"68a4082fa8b849d8e929820f9824cecafabf2115","_id":"export-to-csv@1.5.0","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-0wT2NKAMMDALQ0W6wzThyn+4ZQf5Voe9o9l+kjlhVLrwgdNr9869xnFmj2VovUlx6K93XRDCXrKM7Fs0nfyxGg==","shasum":"aefd64233c5b78ac5ecc7711c0100f8470438de0","tarball":"https://registry.npmjs.org/export-to-csv/-/export-to-csv-1.5.0.tgz","fileCount":13,"unpackedSize":28550,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/export-to-csv@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD3nV5daSJzSWM7IQFtaVR/qVwiFiC5D0dRM5RHurpMAgIhAJNJxCzXq9hYTpvjwNptmD3KjaUt8IyLFyvhMgABgNb9"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:15fdab00-08d9-4ceb-b1cd-70fea6d65ecf"}},"directories":{},"maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/export-to-csv_1.5.0_1787153513052_0.9377135949588631"},"_hasShrinkwrap":false}},"time":{"created":"2017-11-20T19:24:05.788Z","modified":"2026-08-19T15:31:53.540Z","0.1.0":"2017-11-20T19:24:05.788Z","0.1.1":"2017-11-20T19:39:31.278Z","0.1.2":"2018-08-16T19:47:57.962Z","0.2.1":"2019-01-16T16:56:55.036Z","0.2.2":"2023-09-01T20:58:46.737Z","1.0.0":"2023-09-04T01:36:45.053Z","1.1.0":"2023-10-06T00:32:20.229Z","1.2.0":"2023-10-09T00:24:40.822Z","1.2.1":"2023-10-27T22:52:40.927Z","1.2.2":"2023-12-18T19:50:01.417Z","1.2.3":"2024-02-22T00:47:26.175Z","1.2.4":"2024-03-07T00:21:25.055Z","1.3.0":"2024-04-29T20:39:48.326Z","1.4.0":"2024-08-31T22:26:24.805Z","1.5.0":"2026-08-19T15:31:53.195Z"},"bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"author":{"name":"alexcaza"},"license":"MIT","homepage":"https://github.com/alexcaza/export-to-csv#readme","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","typescript","zero-dependencies"],"repository":{"type":"git","url":"git+https://github.com/alexcaza/export-to-csv.git"},"description":"Easily create CSV data from json collection","maintainers":[{"name":"alexcaza","email":"alex@alexcaza.com"}],"readme":"# export-to-csv | Export to CSV Mini Library\n\nLike this library and want to support active development?\n\n<a href='https://ko-fi.com/T6T8XO5J5' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>\n\nSmall, simple, and single purpose. Zero dependencies, functionally inspired, and fairly well-typed.\n\nIf you're looking for a fully CSV-compliant, consistently maintained, whole-package library, I'd recommend looking elsewhere! (see [alternatives](#alternatives) section below)\n\nIf you want a lightweight, stable, easy-to-use basic CSV generation and download library, feel free to install.\n\n## Installation\n\n```javascript\nnpm install --save export-to-csv\n```\n\n## Usage\n\nThis library was written with TypeScript in mind, so the examples will be in TS.\n\nYou can easily use this library in JavaScript as well. The bundle uses ES modules, which all modern browsers support.\n\nYou can also look at the [integration tests](integration/index.html) for browser/JS use, and the [unit tests](lib/__specs__) to understand how the library functions.\n\n### In-browser\n\n```typescript\nimport { mkConfig, generateCsv, download } from \"export-to-csv\";\n\n// mkConfig merges your options with the defaults\n// and returns WithDefaults<ConfigOptions>\nconst csvConfig = mkConfig({ useKeysAsHeaders: true });\n\nconst mockData = [\n  {\n    name: \"Rouky\",\n    date: \"2023-09-01\",\n    percentage: 0.4,\n    quoted: '\"Pickles\"',\n  },\n  {\n    name: \"Keiko\",\n    date: \"2023-09-01\",\n    percentage: 0.9,\n    quoted: '\"Cactus\"',\n  },\n];\n\n// Converts your Array<Object> to a CsvOutput string based on the configs\nconst csv = generateCsv(csvConfig)(mockData);\n\n// Get the button in your HTML\nconst csvBtn = document.querySelector(\"#csv\");\n\n// Add a click handler that will run the `download` function.\n// `download` takes `csvConfig` and the generated `CsvOutput`\n// from `generateCsv`.\ncsvBtn.addEventListener(\"click\", () => download(csvConfig)(csv));\n```\n\n### Node.js\n\n```typescript\nimport { mkConfig, generateCsv, asString } from \"export-to-csv\";\nimport { writeFile } from \"node:fs\";\nimport { Buffer } from \"node:buffer\";\n\n// mkConfig merges your options with the defaults\n// and returns WithDefaults<ConfigOptions>\nconst csvConfig = mkConfig({ useKeysAsHeaders: true });\n\nconst mockData = [\n  {\n    name: \"Rouky\",\n    date: \"2023-09-01\",\n    percentage: 0.4,\n    quoted: '\"Pickles\"',\n  },\n  {\n    name: \"Keiko\",\n    date: \"2023-09-01\",\n    percentage: 0.9,\n    quoted: '\"Cactus\"',\n  },\n];\n\n// Converts your Array<Object> to a CsvOutput string based on the configs\nconst csv = generateCsv(csvConfig)(mockData);\nconst filename = `${csvConfig.filename}.csv`;\nconst csvBuffer = new Uint8Array(Buffer.from(asString(csv)));\n\n// Write the csv file to disk\nwriteFile(filename, csvBuffer, (err) => {\n  if (err) throw err;\n  console.log(\"file saved: \", filename);\n});\n```\n\n### Using `generateCsv` output as a `string`\n\n**Note: this is only applicable to projects using Typescript. If you're using this library with Javascript, you might not run into this issue.**\n\nThere might be instances where you want to use the result from `generateCsv` as a `string` instead of a `CsvOutput` type. To do that, you can use `asString`, which is exported from this library.\n\n```typescript\nimport { mkConfig, generateCsv, asString } from \"export-to-csv\";\n\nconst csvConfig = mkConfig({ useKeysAsHeaders: true });\n\nconst addNewLine = (s: string): string => s + \"\\n\";\n\nconst mockData = [\n  {\n    name: \"Rouky\",\n    date: \"2023-09-01\",\n    percentage: 0.4,\n    quoted: '\"Pickles\"',\n  },\n  {\n    name: \"Keiko\",\n    date: \"2023-09-01\",\n    percentage: 0.9,\n    quoted: '\"Cactus\"',\n  },\n];\n\n// Converts your Array<Object> to a CsvOutput string based on the configs\nconst csvOutput = generateCsv(csvConfig)(mockData);\n\n// This would result in a type error\n// const csvOutputWithNewLine = addNewLine(csvOutput);\n// ❌ => CsvOutput is not assignable to type string.\n\n// This unpacks CsvOutput which turns it into a string before use\nconst csvOutputWithNewLine = addNewLine(asString(csvOutput));\n```\n\nThe reason the `CsvOutput` type exists is to prevent accidentally passing in a string which wasn't formatted by `generateCsv` to the `download` function.\n\n### Using `generateCsv` output as a `Blob`\n\nA case for this would be using browser extension download methods _instead of_ the supplied `download` function. There may be scenarios where using a `Blob` might be more ergonomic.\n\n```typescript\nimport { mkConfig, generateCsv, asBlob } from \"export-to-csv\";\n\n// mkConfig merges your options with the defaults\n// and returns WithDefaults<ConfigOptions>\nconst csvConfig = mkConfig({ useKeysAsHeaders: true });\n\nconst mockData = [\n  {\n    name: \"Rouky\",\n    date: \"2023-09-01\",\n    percentage: 0.4,\n    quoted: '\"Pickles\"',\n  },\n  {\n    name: \"Keiko\",\n    date: \"2023-09-01\",\n    percentage: 0.9,\n    quoted: '\"Cactus\"',\n  },\n];\n\n// Converts your Array<Object> to a CsvOutput string based on the configs\nconst csv = generateCsv(csvConfig)(mockData);\n\n// Generate the Blob from the CsvOutput\nconst blob = asBlob(csvConfig)(csv);\n\n// Requires URL to be available (web workers or client scripts only)\nconst url = URL.createObjectURL(blob);\n\n// Assuming there's a button with an id of csv in the DOM\nconst csvBtn = document.querySelector(\"#csv\");\n\ncsvBtn.addEventListener(\"click\", () => {\n  // Use Chrome's downloads API for extensions\n  chrome.downloads.download({\n    url,\n    body: csv,\n    filename: \"chrome-extension-output.csv\",\n  });\n});\n```\n\n## API\n\n| Option              | Default                          | Type                                                   | Description                                                                                                                                                                                                                                                                                                                                  |\n| ------------------- | -------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `fieldSeparator`    | `\",\"`                            | `string`                                               | Defines the field separator character                                                                                                                                                                                                                                                                                                        |\n| `filename`          | `\"generated\"`                    | `string`                                               | Sets the name of the file created from the `download` function                                                                                                                                                                                                                                                                               |\n| `quoteStrings`      | `false`                          | `boolean`                                              | Determines whether or not to quote strings (using `quoteCharacter`'s value). Whether or not this is set, `\\r`, `\\n`, and `fieldSeparator` will be quoted.                                                                                                                                                                                    |\n| `quoteCharacter`    | `'\"'`                            | `string`                                               | Sets the quote character to use.                                                                                                                                                                                                                                                                                                             |\n| `decimalSeparator`  | `\".\"`                            | `string`                                               | Defines the decimal separator character (default is .). If set to \"locale\", it uses the [language-sensitive representation of the number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString).                                                                                           |\n| `showTitle`         | `false`                          | `boolean`                                              | Sets whether or not to add the value of `title` to the start of the CSV. (This is not supported by all CSV readers)                                                                                                                                                                                                                          |\n| `title`             | `\"My Generated Report\"`          | `string`                                               | The title to display as the first line of the CSV file. (This **is not** the name of the file [see `filename`])                                                                                                                                                                                                                              |\n| `showColumnHeaders` | `true`                           | `boolean`                                              | Determines if columns should have headers. When set to `false`, the first row of the CSV will be data.                                                                                                                                                                                                                                       |\n| `columnHeaders`     | `[]`                             | `Array<string \\| {key: string, displayLabel: string}>` | **Use this option if column/header order is important!** Determines the headers to use as the first line of the CSV data. If the item is a `string`, it will be used for lookup in your collection AND as the header label. If the item is an object, `key` will be used for lookup, and `displayLabel` will be used as the header label.    |\n| `useKeysAsHeaders`  | `false`                          | `boolean`                                              | If set, the CSV will use the key names in your collection as headers. **Warning: `headers` recommended for large collections. If set, it'll override the `headers` option. Column/header order also not guaranteed. Use `headers` only if order is important!**                                                                              |\n| `boolDisplay`       | `{true: \"TRUE\", false: \"FALSE\"}` | `{true: string, false: string}`                        | Determines how to display boolean values in the CSV. **This only works for `true` and `false`. `1` and `0` will not be coerced and will display as `1` and `0`.**                                                                                                                                                                            |\n| `useBom`            | `true`                           | `boolean`                                              | Adds a [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark) which is required by Excel to display CSVs, despite it not being necessary with UTF-8 🤷‍♂️                                                                                                                                                                             |\n| `useTextFile`       | `false`                          | `boolean`                                              | _Deprecation warning. This will be removed in the next major version._ Will download the file as `text/plain` instead of `text/csv` and use a `.txt` vs `.csv` file extension.                                                                                                                                                               |\n| `fileExtension`     | `csv`                            | `string`                                               | File extension to use. Currently, this only applies if `useTextFile` is `false`.                                                                                                                                                                                                                                                             |\n| `escapeFormulas`    | `false`                          | `boolean`                                              | Prefixes values that start with `=`, `+`, `-`, `@`, tab, or carriage return with a `'` so spreadsheet apps (Excel, Google Sheets, LibreOffice) don't interpret them as formulas. Use this when writing untrusted data to a CSV to protect against [CSV/formula injection](https://owasp.org/www-community/attacks/CSV_Injection) (CWE-1236). |\n\n# Alternatives\n\nAs mentioned above, this library is intentionally small and was designed to solve a very simple need. It **was not** originally designed to be fully CSV compliant, so many things you need _might_ be missing. I'm also not the most active on it (~7 year gap between updates). So, here are some alternatives with more support and that might be more fully featured.\n\n- https://csv.js.org/\n- https://www.papaparse.com/\n\n# Thanks!\n\nThis library was originally based on [this library](https://github.com/javiertelioz/angular2-csv) by Javier Telio\n\n| Credits and Original Authors                        |\n| :-------------------------------------------------- |\n| **[javiertelioz](https://github.com/javiertelioz)** |\n| **[sn123](https://github.com/sn123)**               |\n| **[arf1980](https://github.com/arf1980)**           |\n","readmeFilename":"README.md"}