{"id":15647844,"url":"https://github.com/doowb/converter","last_synced_at":"2025-04-30T13:41:13.321Z","repository":{"id":12712154,"uuid":"15384694","full_name":"doowb/converter","owner":"doowb","description":"Library to convert to or from JSON, YAML, XML, PLIST or CSV.","archived":false,"fork":false,"pushed_at":"2017-01-05T01:42:43.000Z","size":84,"stargazers_count":42,"open_issues_count":8,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T20:55:29.664Z","etag":null,"topics":[],"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/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-23T00:42:47.000Z","updated_at":"2024-08-01T12:59:36.000Z","dependencies_parsed_at":"2022-09-26T18:50:39.269Z","dependency_job_id":null,"html_url":"https://github.com/doowb/converter","commit_stats":null,"previous_names":["assemble/converter","assemble/data-convert"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fconverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fconverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fconverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fconverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251713223,"owners_count":21631505,"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","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":[],"created_at":"2024-10-03T12:21:33.027Z","updated_at":"2025-04-30T13:41:13.300Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# converter [![NPM version](https://badge.fury.io/js/converter.png)](http://badge.fury.io/js/converter)  [![Build Status](https://github.com/assemble/converter.png)](https://github.com/assemble/converter)\n\n\u003e Convert between XML, JSON and YAML, from one format to another.\n\n## Getting Started\nTo install the module, run the following in the command line:\n\n```bash\nnpm i converter --save\n```\n\nUse within your application with the following line of JavaScript:\n\n```js\nvar converter = require('converter');\n```\n\nCalling `var convert = converter(options);` gives you a `transform` stream that will take in data and convert it based on the options passed in.\n\n```js\n\nvar fs = require('fs');\nvar converter = require('converter');\n\n// get a file stream reader pointing to the csv file to convert\nvar reader = fs.createReadStream('path/to/csv/file.csv');\n\n// get a file stream writer pointing to the json file to write to\nvar writer = fs.createWriteStream('path/to/output/json/file.json');\n\n// setup the options for the data converter\nvar options = {\n\tfrom: 'csv',\n\tto: 'json'\n};\n\n// get a data converter stream using the given options\nvar convert = converter(options);\n\n// pipe everything to do the conversion\nreader.pipe(convert).pipe(writer);\n\n```\n\n\n## Contributing\nFind a bug? Have a feature request? Please [create an Issue](https://github.com/assemble/converter/issues).\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][], and build the documentation with [grunt-readme](https://github.com/assemble/grunt-readme).\n\nPull requests are also encouraged, and if you find this project useful please consider \"starring\" it to show your support! Thanks!\n\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/jonschlinkert)\n\n\n## Related\n+ [helpers](https://github.com/helpers): some great handlebars helpers that we decided not to include in the [handlebars-helpers](https://github.com/assemble/handlebars-helpers) project, most likely because the code footprint was too big or the helper wasn't generic enough.\n\n\n## License\nCopyright (c) 2014 Brian Woodward, contributors.\nReleased under the  license\n\n***\n\n_This file was generated by [grunt-readme](https://github.com/assemble/grunt-readme) on Monday, January 13, 2014._\n\n[grunt]: http://gruntjs.com/\n[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md\n[package.json]: https://npmjs.org/doc/json.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fconverter/lists"}