{"_id":"export-to-csv-fix-source-map","_rev":"1-b19dd9afe115a04790fddff43c697c09","name":"export-to-csv-fix-source-map","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.1":{"name":"export-to-csv-fix-source-map","version":"0.2.1","description":"Easily create CSV data from json collection","repository":{"type":"git","url":"git+https://github.com/alexcaza/export-to-csv.git"},"scripts":{"dev":"tsc --watch","test":"tsc && karma start","build":"tsc"},"keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"author":{"name":"alexcaza"},"email":"alex@alexcaza.com","license":"MIT","bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"main":"./build/index.js","types":"./build/export-to-csv.d.ts","homepage":"https://github.com/alexcaza/export-to-csv#readme","devDependencies":{"@types/jasmine":"^2.5.46","es6-shim":"^0.35.3","jasmine-core":"^2.4.1","karma":"^1.5.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.4","karma-sourcemap-loader":"^0.3.7","karma-typescript":"^3.0.8","typescript":"~2.4.0"},"gitHead":"f91f13df69cddf86e84307ff5b78115d5efe8fb0","_id":"export-to-csv-fix-source-map@0.2.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-02CGZG9Kduc0l9ErJ5b+99+PjeQIyoeVGz+f7/Yc04V4YKNPbdT63sQqBC5RW05va4w0MZen7pQpf92H3funYw==","shasum":"820020401ae7a29e3d08b9f863c03a112038bb8e","tarball":"https://registry.npmjs.org/export-to-csv-fix-source-map/-/export-to-csv-fix-source-map-0.2.1.tgz","fileCount":7,"unpackedSize":15562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDmmbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrlcxAApKRysSNyJfTcMbDtomscayBC9VuxxOaN1sQ5V6JHchcjbKnV\r\nI827nHf8A17AMT+jTIuO8qh5j5b6pgKzRZIoamPtl9sFtKYiPtTpxGpy2S9w\r\nnLb6sURUmn6W3ABQi1IORX7nh0DngyArMrzcp9D1/ZHfAHxTELHh/ZoT6sq2\r\nFVp3+u+2IOldXBD16VI0z4bOOO1pxq/I4KYdUvTsEACSv8xJ+3W+IvGyOWPk\r\nu7jpYwf6nS8jtyCZzkcY+Ef3xXMXnLbsQIooAE+Yky7K4ucrl/LOTZLzwqLs\r\nHzXLajwGHEW3nw3TDMZZTmF69SL5NOWlUlEpGJWATKvnve7O1fubtQzMYOCf\r\nxnMdJFQXW72AkxU2bSIocIon+DnDdgEF2ccf7vEEQtC9mwGqIqw2n5Fnv4UT\r\najPdz7CVuUKHLz1noNLzFCqoxlG85m2GAuj3ETYnQ0h4avmSpMP2sW60OMTm\r\n00dfly5r/DuFgFduFqDJoo9rH2Lj2ejpxRs9KIJ13X8AvXPlLeDfhehMs1aV\r\n4MFMJeA+rjsz9yck/pQEHbNBSeZOWZu1nBRGqNEQUZpGU0x0vXemWGZ3IX63\r\nsTo85urqBACyOICjWBF5cDOuaZtnZPR+IZ4/soYat74eIQ7c/fcPoEkQGyyT\r\nMrHNLyncwR1Un3vpNJ3Rkbtagw7qrZNyUjE=\r\n=rLu6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHAvW0DyoWYFlQYcGTCHIrv2WmsqBXtW08JirUmFeFANAiEAgAWC7HEQd4tbyjxpH0F5qqVU/wK9/uiV1lrNhi4N0Jo="}]},"_npmUser":{"name":"omerfarukaplak","email":"omer@pankod.com"},"directories":{},"maintainers":[{"name":"omerfarukaplak","email":"omer@pankod.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/export-to-csv-fix-source-map_0.2.1_1645111707807_0.2568149498201455"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-17T15:28:27.806Z","0.2.1":"2022-02-17T15:28:27.999Z","modified":"2022-05-01T22:14:35.322Z"},"maintainers":[{"name":"omerfarukaplak","email":"omer@pankod.com"}],"description":"Easily create CSV data from json collection","homepage":"https://github.com/alexcaza/export-to-csv#readme","keywords":["export-to-csv","export-to-excel","csv","excel","libreoffice","openoffice","angular2","typescript","react","ngx","angular4","angular5"],"repository":{"type":"git","url":"git+https://github.com/alexcaza/export-to-csv.git"},"author":{"name":"alexcaza"},"bugs":{"url":"https://github.com/alexcaza/export-to-csv/issues"},"license":"MIT","readme":"# export-to-csv | Export to CSV Mini Library\nBased off of [this library](https://github.com/javiertelioz/angular2-csv) by Javier Telio\n\n> Helper library to quickly and easily create a CSV file in browser or Node\n> \n\n## Installation\n\n```javascript\nyarn add export-to-csv\n// npm install --save export-to-csv\n```\n\n## Usage\n```javascript\n\nimport { ExportToCsv } from 'export-to-csv';\n\nvar data = [\n  {\n    name: 'Test 1',\n    age: 13,\n    average: 8.2,\n    approved: true,\n    description: \"using 'Content here, content here' \"\n  },\n  {\n    name: 'Test 2',\n    age: 11,\n    average: 8.2,\n    approved: true,\n    description: \"using 'Content here, content here' \"\n  },\n  {\n    name: 'Test 4',\n    age: 10,\n    average: 8.2,\n    approved: true,\n    description: \"using 'Content here, content here' \"\n  },\n];\n\n  const options = { \n    fieldSeparator: ',',\n    quoteStrings: '\"',\n    decimalSeparator: '.',\n    showLabels: true, \n    showTitle: true,\n    title: 'My Awesome CSV',\n    useTextFile: false,\n    useBom: true,\n    useKeysAsHeaders: true,\n    // headers: ['Column 1', 'Column 2', etc...] <-- Won't work with useKeysAsHeaders present!\n  };\n\nconst csvExporter = new ExportToCsv(options);\n\ncsvExporter.generateCsv(data);\n\n```\n\n## API\n\n\n| Option        | Default           | Description  |\n| :------------- |:-------------:| -----|\n| **fieldSeparator**      | , | Defines the field separator character |\n| **filename**      | 'generated' | Sets the name of the downloaded file. \".csv\" will be appended to the value provided. |\n| **quoteStrings**      | \"      | If provided, will use this characters to \"escape\" fields, otherwise will use double quotes as deafult |\n| **decimalSeparator** | .      | 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| **showLabels** | false      | If true, the first row will be the `headers` option or object keys if `useKeysAsHeaders` is present|\n| **showTitle** | false      | Includes the title as the first line in the generated file   |\n| **title** | 'My Generated Report' | This string will be used as the report title |\n| **useBom** | true      | If true, adds a BOM character at the start of the CSV to improve file compatibility |\n| **useTextFile** | false      | If true, returns a `.txt` file instead of `.csv` |\n| **useKeysAsHeaders** | false      | If true, this will use the keys of the first object in the collection as the column headers|\n| **headers** | []      | Expects an array of strings, which if supplied, will be used as the column headers|\n\n\n# Thanks!\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"}