# node-xml2json

> xml to json for Node.js

Latest version **1.0.0** (published 2012-05-06) · 0 weekly downloads

## Install

```sh
npm install node-xml2json
pnpm add node-xml2json
yarn add node-xml2json
bun add node-xml2json
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2012-05-06 |
| First published | 2012-05-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kenshin |
| Maintainers | kenshin |
| Keywords | xml, json, xml to json, xml2json |

## Links

- npm: https://www.npmjs.com/package/node-xml2json
- Repository: git@github.com:Kenshin/node-xml2json
- npm.io page: https://npm.io/package/node-xml2json

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2012-05-06

## README

##xml2json Node.js Library
基于Node.js版的xml to json

### 使用方法：  
安装：  
<pre>
$ npm install -g node-xml2json
</pre>

使用：  
<pre>
var xml2json = require(&quot;node-xml2json&quot;);
var xml      = &quot;<xml>hello</xml>&quot;;
var json     = xml2json.parser( xml );
console.log( json.xml )
</pre>

详细用法：  
[http://www.thomasfrank.se/xml_to_json.html](http://www.thomasfrank.se/xml_to_json.html)

测试：  
<pre>
..\node_modules\node-xml2json\test\ node test.js
</pre>

其他版本的分页组件：  
JavaScript版：[https://github.com/Kenshin/js-pagination](https://github.com/Kenshin/js-pagination)

## 更新日志：
version 1.0.0 [2012-05-06]
* 在[http://www.thomasfrank.se/xml_to_json.html](http://www.thomasfrank.se/xml_to_json.html)的基础上，修改为Node.js的模块
* xml对象转换Json对象

## 联系方式：
* 博客：[k-zone.cn](http://www.k-zone.cn/zblog)
* 微博：[新浪微博](http://weibo.com/23784148)
* 联络：kenshin[AT]ksria.com

## 版权和许可：
Copyright 2012 [k-zone.cn](http://www.k-zone.cn/zblog)  
Licensed under MIT or GPL Version 2 licenses

---
_Source: https://npm.io/package/node-xml2json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
