<commit_before>node-osm
========

A node.js module for working with the OpenStreetMap API.<commit_msg>Added an example how to use the XmlChangesetReader<commit_after>node-osm
========

A node.js module for working with OpenStreetMap data and the OpenStreetMap API.

XmlChangesetReader
------------------

```javascript
var osm = require('node-osm');

var reader = new osm.XmlChangesetReader();

reader.on('metadata', function (metadata) {
    console.log(metadata);    
});

reader.on('data', function (changesets) {
    console.log(changesets.length);
});

reader.on('end', function () {
    console.log('end');
});

reader.readFile('changesets-latest.osm');
```
{'fraction_non_alphanumeric': 0.18099547511312217, 'fraction_numerical': 0.0, 'mean_word_length': 4.354838709677419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5462499', 'n_tokens_mistral': 211, 'n_tokens_neox': 199, 'n_words': 50}