{"id":15673541,"url":"https://github.com/lmammino/x2j-cli","last_synced_at":"2026-03-05T16:16:57.807Z","repository":{"id":57400908,"uuid":"76447172","full_name":"lmammino/x2j-cli","owner":"lmammino","description":"Node.js command line script to convert xml input into json output (can be piped easily)","archived":false,"fork":false,"pushed_at":"2023-04-14T00:20:17.000Z","size":9,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T03:41:19.214Z","etag":null,"topics":["json","json-data","json-files","json-parser","pipe","unix","x2j-cli","xml","xml-configuration"],"latest_commit_sha":null,"homepage":"https://lmammino.github.io/x2j-cli/","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/lmammino.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":"2016-12-14T09:58:20.000Z","updated_at":"2021-07-25T15:07:19.000Z","dependencies_parsed_at":"2024-10-23T11:25:19.178Z","dependency_job_id":null,"html_url":"https://github.com/lmammino/x2j-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fx2j-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fx2j-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fx2j-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmammino%2Fx2j-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmammino","download_url":"https://codeload.github.com/lmammino/x2j-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782441,"owners_count":21803378,"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":["json","json-data","json-files","json-parser","pipe","unix","x2j-cli","xml","xml-configuration"],"created_at":"2024-10-03T15:41:11.172Z","updated_at":"2025-09-17T21:59:34.236Z","avatar_url":"https://github.com/lmammino.png","language":"JavaScript","readme":"# x2j-cli\n\n[![npm version](https://badge.fury.io/js/x2j-cli.svg)](http://badge.fury.io/js/x2j-cli)\n[![Build Status](https://travis-ci.org/lmammino/x2j-cli.svg?branch=master)](https://travis-ci.org/lmammino/x2j-cli)\n\nNode.js command line script to convert XML input into JSON output. It can be\npiped to a command printing XML to stdout to have it converted and pretty printed\nto JSON.\n\n\n## Example\n\n```bash\ncurl -sS http://www.w3schools.com/xml/note.xml | x2j\n```\n\nWill print:\n\n```json\n{\n  \"note\": {\n    \"to\": [\n      \"Tove\"\n    ],\n    \"from\": [\n      \"Jani\"\n    ],\n    \"heading\": [\n      \"Reminder\"\n    ],\n    \"body\": [\n      \"Don't forget me this weekend!\"\n    ]\n  }\n}\n```\n\n\n## Install\n\nIt requires Node (4.0.0 or higher) and Npm (2 or higher):\n\n```bash\nnpm install --global x2j-cli\n```\n\nThis is going to install globally the executable `x2j` (and its alias `xml2json`)\nwhich you can use to convert xml string from the standard input into formatted\nJSON into the standard output as shown in the example above.\n\n\n## Contributing\n\nEveryone is very welcome to contribute to this project.\nYou can contribute just by submitting bugs or suggesting improvements by\n[opening an issue on GitHub](https://github.com/lmammino/x2j-cli/issues).\n\n\n## License\n\nLicensed under [MIT License](LICENSE). © Luciano Mammino.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fx2j-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmammino%2Fx2j-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmammino%2Fx2j-cli/lists"}