{"id":16125653,"url":"https://github.com/phrogz/neatxml","last_synced_at":"2025-04-06T13:12:55.310Z","repository":{"id":66445137,"uuid":"157322388","full_name":"Phrogz/NeatXML","owner":"Phrogz","description":"JavaScript-based XML serialization with a few handy features.","archived":false,"fork":false,"pushed_at":"2019-04-21T20:01:37.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T18:59:30.393Z","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/Phrogz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-11-13T04:55:29.000Z","updated_at":"2019-04-21T20:01:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"1735e46a-044f-4054-a2a1-9c68ce93be62","html_url":"https://github.com/Phrogz/NeatXML","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrogz%2FNeatXML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrogz%2FNeatXML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrogz%2FNeatXML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phrogz%2FNeatXML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phrogz","download_url":"https://codeload.github.com/Phrogz/NeatXML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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-09T21:30:22.227Z","updated_at":"2025-04-06T13:12:55.286Z","avatar_url":"https://github.com/Phrogz.png","language":"JavaScript","readme":"# NeatXML\nNeatXML is XML serialization (in JavaScript) with a few handy features.\n\nThe NeatXML module exports a single function, which takes an [XML Document](https://www.w3.org/TR/dom/#xml-document) or [Element](https://www.w3.org/TR/dom/#element) object to turn into a string, and an optional object specifying serialization options.\n\n```js\nimport NeatXML from './neatxml.js';\nconst xmlString = NeatXML(xmlNodeOrDoc, options);\n```\n\nThe `options` object accepts the following keys and values:\n\n* `indent`: if set to a number or string, each node in the supplied hierarchy will be placed on its own line and indented by the number of spaces (if a number) or by repetitions of the string specified by this option.\n* `strip`:  if set to `true`, remove leading/trailing whitespace from text nodes, and ignore whitespace-only nodes altogether.\n* `sort`:   if set to `true`, sort attributes within elements based on their name; attributes with no namespace will appear before those with a prefix.\n* `omitNS`: if set to a namespace URI string, or array of URIs, all attributes, elements, and namespace declarations matching the URI(s) will be omitted from the output.\n* `cdata`:  if set to `true`, all text nodes will be output as CDATA sections; if set to `false`, all CDATA nodes will be output as plain text.\n* `tightcdata`:  if this and `indent` are `true`, cdata nodes will start and end on the same line on their parent, with their text content on separate line(s).\n\nWhen using the `indent` option you will likely also want to use the `strip` option.\n\n## License \u0026 Contact\n\nNeatXML is copyright ©2018 by Gavin Kistner and is released under\nthe [MIT License](http://www.opensource.org/licenses/mit-license.php).\nSee the LICENSE.txt file for more details.\n\nFor bugs or feature requests please open [issues on GitHub](https://github.com/Phrogz/NeatXML/issues).\nFor other communication you can [email the author directly](mailto:!@phrogz.net?subject=NeatXML).\n\n## TODO (aka Known Limitations)\n\n* Set up a robust test suite.\n* Provide options for wrapping to set column widths.\n* Provide options for formatting numeric attributes to a number of decimals.\n\n## HISTORY\n\n* **v0.10 [2019-Apr-21]** — Add `tightcdata` feature.\n* **v0.9** — Initial release\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrogz%2Fneatxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrogz%2Fneatxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrogz%2Fneatxml/lists"}