https://github.com/lsongdev/xmljs
simple xml reader and parser
https://github.com/lsongdev/xmljs
xml-parser xml-parsing xml-serialization
Last synced: about 1 year ago
JSON representation
simple xml reader and parser
- Host: GitHub
- URL: https://github.com/lsongdev/xmljs
- Owner: lsongdev
- License: mit
- Created: 2018-11-06T06:45:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-19T09:10:17.000Z (almost 6 years ago)
- Last Synced: 2025-02-13T22:23:51.127Z (about 1 year ago)
- Topics: xml-parser, xml-parsing, xml-serialization
- Language: JavaScript
- Homepage: https://npmjs.org/xml2
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## xml2 [](https://npmjs.org/xml2)
> simple xml reader and parser
### Installation
```bash
$ npm install xml2
```
### Example
```js
const XML = require('xml2');
const xml = new XML();
xml.on('open-tag', name => {
console.log('tag name: ', name);
});
fs.createReadStream('/tmp/demo.xml').pipe(xml)
```
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
### MIT
This work is licensed under the [MIT license](./LICENSE).
---