{"id":22485416,"url":"https://github.com/mfaheemakhtar/csvtojsonfile","last_synced_at":"2025-08-02T18:32:21.516Z","repository":{"id":127753768,"uuid":"113761076","full_name":"mfaheemakhtar/csvtojsonfile","owner":"mfaheemakhtar","description":"A simple Node.js module to convert CSV file to JSON file.","archived":false,"fork":false,"pushed_at":"2017-12-10T19:45:11.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T02:30:32.682Z","etag":null,"topics":["csv","csvtojson","json","node","nodejs","npm-module","npm-package"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfaheemakhtar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-10T15:29:02.000Z","updated_at":"2021-09-02T12:04:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"721af3e9-6630-4f6f-abf3-33d0a958a905","html_url":"https://github.com/mfaheemakhtar/csvtojsonfile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mfaheemakhtar/csvtojsonfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaheemakhtar%2Fcsvtojsonfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaheemakhtar%2Fcsvtojsonfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaheemakhtar%2Fcsvtojsonfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaheemakhtar%2Fcsvtojsonfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfaheemakhtar","download_url":"https://codeload.github.com/mfaheemakhtar/csvtojsonfile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaheemakhtar%2Fcsvtojsonfile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268433097,"owners_count":24249688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","csvtojson","json","node","nodejs","npm-module","npm-package"],"created_at":"2024-12-06T17:12:33.607Z","updated_at":"2025-08-02T18:32:21.508Z","avatar_url":"https://github.com/mfaheemakhtar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# csvtojsonfile\nA simple Node.js module to convert CSV file to JSON file.\n\n## How to use:\n\n### Install:\n\n```\nnpm install csvtojsonfile --save\n```\nTIP: You can exclude \"--save\" if you are using npm 5.\n\n### Include:\n\n```\nconst csvtojson = require('csvtojsonfile');\n```\nOR\n```\nimport csvtojson from 'csvtojsonfile';\n```\n\n## Examples:\n\n```js\n// files are in the same directory\ncsvtojson('read.csv', 'write.json', err =\u003e {\n  if (err) console.error(err);\n  else console.log('DONE');\n});\n```\n\n```js\n// files are in another directory\ncsvtojson('./dir/read.csv', './dir/write.json', err =\u003e {\n  if (err) console.error(err);\n  else console.log('DONE');\n});\n```\nNOTE: All parameters are necessary.\n\n## Features:\n* Simple to use.\n* No dependencies. Only uses the core node modules.\n* Light-weight -- Just 55 lines of code including comments and blank lines.\n* Amazingly fast -- uses Asynchronous file read and write API.\n\n## Limitations:\n* Does not check for file type.\n* Uses JSON.stringify, which is Synchronous.\n\n## Support:\nIf you find errors or bugs, kindly open a issue on [GitHub](https://github.com/mfaheemakhtar/csvtojsonfile/)\n\nPull requests are also welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaheemakhtar%2Fcsvtojsonfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfaheemakhtar%2Fcsvtojsonfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaheemakhtar%2Fcsvtojsonfile/lists"}