{"id":21245359,"url":"https://github.com/jstransformers/jstransformer-xml2js","last_synced_at":"2025-08-24T12:38:10.970Z","repository":{"id":29832733,"uuid":"33377383","full_name":"jstransformers/jstransformer-xml2js","owner":"jstransformers","description":"XML support for JS Transformers, transform XML to JSON. Using `xml2js`","archived":false,"fork":false,"pushed_at":"2023-07-26T17:56:38.000Z","size":73,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-21T20:15:41.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/jstransformer-xml2js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"alibaba/dubbo","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jstransformers.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2015-04-03T18:45:31.000Z","updated_at":"2023-04-10T13:34:58.000Z","dependencies_parsed_at":"2024-11-21T02:03:27.863Z","dependency_job_id":null,"html_url":"https://github.com/jstransformers/jstransformer-xml2js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-xml2js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-xml2js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-xml2js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstransformers%2Fjstransformer-xml2js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstransformers","download_url":"https://codeload.github.com/jstransformers/jstransformer-xml2js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685528,"owners_count":20330980,"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-21T01:50:51.488Z","updated_at":"2025-03-15T04:41:39.535Z","avatar_url":"https://github.com/jstransformers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jstransformer-xml2js\n\n[xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) support for [JSTransformers](http://github.com/jstransformers).\n\n[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-xml2js/master.svg)](https://travis-ci.org/jstransformers/jstransformer-xml2js)\n[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-xml2js/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-xml2js)\n[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-xml2js/master.svg)](http://david-dm.org/jstransformers/jstransformer-xml2js)\n[![NPM version](https://img.shields.io/npm/v/jstransformer-xml2js.svg)](https://www.npmjs.org/package/jstransformer-xml2js)\n\n## Installation\n\n    npm install jstransformer-xml2js\n\n## API\n\n```js\nvar xml = require('jstransformer')(require('jstransformer-xml'));\nvar opts = {};\n\nvar fixture = '\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\u003cfeed xmlns=\"http://www.w3.org/2005/Atom\"\u003e\u003ctitle\u003eExample Feed\u003c/title\u003e\u003c/feed\u003e';\n\nvar promise = xml.renderAsync(fixture, opts);\npromise.then(function(data) {\n  console.log(JSON.parse(data.body));\n  //=\u003e { feed:\n  // { '$': { xmlns: 'http://www.w3.org/2005/Atom' },\n  //   title: [ 'Example Feed' ] } }\n});\n\nvar promise = xml.renderFileAsync('./path/to/config.xml', opts);\npromise.then(function(data) {\n  console.log(JSON.parse(data.body));\n  //=\u003e { feed:\n  // { '$': { xmlns: 'http://www.w3.org/2005/Atom' },\n  //   title: [ 'Example Feed' ] } }\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-xml2js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstransformers%2Fjstransformer-xml2js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstransformers%2Fjstransformer-xml2js/lists"}