{"id":19343030,"url":"https://github.com/wenkesj/xml-compiler","last_synced_at":"2026-07-06T19:30:21.270Z","repository":{"id":98777167,"uuid":"41442853","full_name":"wenkesj/xml-compiler","owner":"wenkesj","description":":anchor: XML to JSON Compiler based on JXON https://developer.mozilla.org/en-US/docs/JXON","archived":false,"fork":false,"pushed_at":"2016-01-08T20:32:08.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T12:40:53.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wenkesj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-26T18:30:49.000Z","updated_at":"2016-04-26T15:55:45.000Z","dependencies_parsed_at":"2023-03-20T18:18:57.732Z","dependency_job_id":null,"html_url":"https://github.com/wenkesj/xml-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenkesj%2Fxml-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenkesj%2Fxml-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenkesj%2Fxml-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wenkesj%2Fxml-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wenkesj","download_url":"https://codeload.github.com/wenkesj/xml-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240449891,"owners_count":19803125,"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-11-10T03:37:06.287Z","updated_at":"2026-07-06T19:30:21.197Z","avatar_url":"https://github.com/wenkesj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml-compiler #\nXML and JSON Compiler based on the documentation of [JXON](https://developer.mozilla.org/en-US/docs/JXON)\n\n```bash\nnpm install xml-compiler --save\n```\n# Try it out #\n```bash\nnode example\n```\n\n# API #\n## new XMLCompiler(config) ##\nCreate a new instance of the **XMLCompiler**\n+ config - Object based on [JXON](https://www.npmjs.com/package/jxon) [optional]\n\n## XMLCompiler.toJSON(DocObject) ##\nCreate a new JSON file from an XML file. Returns the corresponding JSON object from the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).\n\n**DocObject**\n\n| Property | Type | Description | Required |\n| -------- | ---- | ----------- | -------- |\n| docPaths | Array (String) | Array of paths to the target files. | Yes |\n| destDir | String | Path destination for the compiled files. | No |\n| jsOut | Bool | Optional JS file to be added with the source of the JSON file in a require statement. | No |\n\n**For example**\n```js\n{\n  docPaths: ['some/path/to/file.xml'],\n  destDir: 'some/output/path'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenkesj%2Fxml-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwenkesj%2Fxml-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwenkesj%2Fxml-compiler/lists"}