{"_id":"xml-reader","_rev":"3922826","name":"xml-reader","description":"XML Reader and Parser","dist-tags":{"latest":"2.4.3"},"maintainers":[{"name":"pladaria","email":""}],"time":{"modified":"2025-09-01T01:26:01.000Z","created":"2016-03-26T21:36:45.271Z","2.4.3":"2016-10-02T15:23:02.894Z","2.4.2":"2016-09-24T15:05:05.246Z","2.4.1":"2016-09-22T12:31:24.181Z","2.3.0":"2016-09-21T17:44:28.195Z","2.2.0":"2016-09-21T17:21:14.538Z","2.1.0":"2016-08-29T12:59:24.443Z","2.0.1":"2016-08-20T23:59:24.400Z","2.0.0":"2016-08-20T23:52:01.226Z","1.1.1":"2016-08-15T18:30:27.328Z","1.1.0":"2016-08-15T18:24:41.480Z","1.0.0":"2016-08-12T07:50:47.856Z","0.0.6":"2016-03-29T08:01:43.481Z","0.0.5":"2016-03-27T18:52:28.162Z","0.0.4":"2016-03-27T15:08:31.073Z","0.0.3":"2016-03-26T23:19:17.095Z","0.0.2":"2016-03-26T22:20:22.648Z","0.0.1":"2016-03-26T21:36:45.271Z"},"users":{},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"versions":{"2.4.3":{"name":"xml-reader","version":"2.4.3","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test && npm build","prebuild":"npm run clean","clean":"rimraf dist","test":"nyc ava --verbose test/test.js","report":"nyc report --reporter=html && opn coverage/index.html"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast","stream","streaming"],"dependencies":{"eventemitter3":"^2.0.0","xml-lexer":"^0.2.2"},"devDependencies":{"ava":"^0.16.0","babel-cli":"^6.14.0","babel-preset-es2015":"^6.14.0","clone":"^1.0.2","nyc":"^8.3.0","opn-cli":"^3.1.0","rimraf":"^2.5.4"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"9ae6d8f32d6c77650d81d3d825d298acce4f71d2","_id":"xml-reader@2.4.3","_shasum":"9f810caf7c425a5aafb848b1c45103c9e71d7530","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"9f810caf7c425a5aafb848b1c45103c9e71d7530","size":4644,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.4.3.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-2.4.3.tgz_1475421781519_0.7832101858220994"},"directories":{},"publish_time":1475421782894,"_hasShrinkwrap":false,"_cnpm_publish_time":1475421782894,"_cnpmcore_publish_time":"2021-12-16T21:07:36.702Z"},"2.4.2":{"name":"xml-reader","version":"2.4.2","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test && npm build","prebuild":"npm run clean","clean":"rimraf dist","test":"nyc ava --verbose test/test.js","report":"nyc report --reporter=html && opn coverage/index.html"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast","stream","streaming"],"dependencies":{"eventemitter3":"^2.0.0","xml-lexer":"^0.2.2"},"devDependencies":{"ava":"^0.16.0","babel-cli":"^6.14.0","babel-preset-es2015":"^6.14.0","clone":"^1.0.2","nyc":"^8.3.0","opn-cli":"^3.1.0","rimraf":"^2.5.4"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"6eddbe3428b7a6ab8779b3bd782b51a88969d525","_id":"xml-reader@2.4.2","_shasum":"3ab98b6ea13fc10770dcde987f7b1336ab01b1ff","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"3ab98b6ea13fc10770dcde987f7b1336ab01b1ff","size":4626,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.4.2.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-2.4.2.tgz_1474729503382_0.060714662773534656"},"directories":{},"publish_time":1474729505246,"_hasShrinkwrap":false,"_cnpm_publish_time":1474729505246,"_cnpmcore_publish_time":"2021-12-16T21:07:36.902Z"},"2.4.1":{"name":"xml-reader","version":"2.4.1","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test && npm build","prebuild":"npm run clean","clean":"rimraf dist","test":"nyc ava --verbose test/test.js","report":"nyc report --reporter=html && opn coverage/index.html"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast","stream","streaming"],"dependencies":{"eventemitter3":"^2.0.0","xml-lexer":"^0.2.1"},"devDependencies":{"ava":"^0.16.0","babel-cli":"^6.14.0","babel-preset-es2015":"^6.14.0","clone":"^1.0.2","nyc":"^8.3.0","opn-cli":"^3.1.0","rimraf":"^2.5.4"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"50d89d06e1594b63019a534c6eadde67b7f199b0","_id":"xml-reader@2.4.1","_shasum":"be6f9276b87f78b8ab1a0efa4640777ae8b08283","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"be6f9276b87f78b8ab1a0efa4640777ae8b08283","size":4628,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.4.1.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-2.4.1.tgz_1474547482395_0.043454415863379836"},"directories":{},"publish_time":1474547484181,"_hasShrinkwrap":false,"_cnpm_publish_time":1474547484181,"_cnpmcore_publish_time":"2021-12-16T21:07:37.092Z"},"2.3.0":{"name":"xml-reader","version":"2.3.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.2.1"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"de4742539c7c7c777e617de8a71ba394dc1ae16f","_id":"xml-reader@2.3.0","_shasum":"fe07b03461614ec30c5750f0e32c844b76f656ca","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"fe07b03461614ec30c5750f0e32c844b76f656ca","size":4128,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.3.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-2.3.0.tgz_1474479867562_0.8932820907793939"},"directories":{},"publish_time":1474479868195,"_hasShrinkwrap":false,"_cnpm_publish_time":1474479868195,"_cnpmcore_publish_time":"2021-12-16T21:07:37.274Z"},"2.2.0":{"name":"xml-reader","version":"2.2.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.2.1"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"19d31197cfc3a419059cc856e98677e16db42c81","_id":"xml-reader@2.2.0","_shasum":"94dba40e2ec63720e41691bfb647e856d4b35cc4","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"94dba40e2ec63720e41691bfb647e856d4b35cc4","size":4096,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.2.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-2.2.0.tgz_1474478473902_0.4144350641872734"},"directories":{},"publish_time":1474478474538,"_hasShrinkwrap":false,"_cnpm_publish_time":1474478474538,"_cnpmcore_publish_time":"2021-12-16T21:07:37.498Z"},"2.1.0":{"name":"xml-reader","version":"2.1.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.2.1"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"af08a684ae60eb66eae819e35d8e01d78c794a6b","_id":"xml-reader@2.1.0","_shasum":"0c961e2908d0306120ec9fae90d4e1dd23df92ed","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"0c961e2908d0306120ec9fae90d4e1dd23df92ed","size":4035,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.1.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-2.1.0.tgz_1472475563294_0.4071102016605437"},"directories":{},"publish_time":1472475564443,"_hasShrinkwrap":false,"_cnpm_publish_time":1472475564443,"_cnpmcore_publish_time":"2021-12-16T21:07:37.713Z"},"2.0.1":{"name":"xml-reader","version":"2.0.1","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"e4ae1e3487e1cadca4f193ffd7b3fac3a11914b4","_id":"xml-reader@2.0.1","_shasum":"b86e0ab03d220670e75004c1cafde17f0215d833","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"b86e0ab03d220670e75004c1cafde17f0215d833","size":4046,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.0.1.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-2.0.1.tgz_1471737563016_0.4969916329719126"},"directories":{},"publish_time":1471737564400,"_hasShrinkwrap":false,"_cnpm_publish_time":1471737564400,"_cnpmcore_publish_time":"2021-12-16T21:07:37.932Z"},"2.0.0":{"name":"xml-reader","version":"2.0.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"46df8f3dd5081f3ff2abc0712ee4761e0ee9eacb","_id":"xml-reader@2.0.0","_shasum":"0f4d1bae3c17399c1252d471b06682667875543b","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"0f4d1bae3c17399c1252d471b06682667875543b","size":4061,"noattachment":false,"key":"/xml-reader/-/xml-reader-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-2.0.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-2.0.0.tgz_1471737119260_0.926249897107482"},"directories":{},"publish_time":1471737121226,"_hasShrinkwrap":false,"_cnpm_publish_time":1471737121226,"_cnpmcore_publish_time":"2021-12-16T21:07:38.147Z"},"1.1.1":{"name":"xml-reader","version":"1.1.1","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"e121c2286627648312fcb6e6cbf110502f80c3fe","_id":"xml-reader@1.1.1","_shasum":"dcaa355ddadad2b4705022200e43b63b3b6acd40","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"dcaa355ddadad2b4705022200e43b63b3b6acd40","size":3600,"noattachment":false,"key":"/xml-reader/-/xml-reader-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-1.1.1.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-1.1.1.tgz_1471285825798_0.02813102863729"},"directories":{},"publish_time":1471285827328,"_hasShrinkwrap":false,"_cnpm_publish_time":1471285827328,"_cnpmcore_publish_time":"2021-12-16T21:07:38.363Z"},"1.1.0":{"name":"xml-reader","version":"1.1.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"7ad351c8043c5e2997bd3ac155bbc0345ac7c621","_id":"xml-reader@1.1.0","_shasum":"46b5bf306ce77c7d50017ca5dd4c9376116b312f","_from":".","_npmVersion":"3.10.2","_nodeVersion":"6.2.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"46b5bf306ce77c7d50017ca5dd4c9376116b312f","size":3534,"noattachment":false,"key":"/xml-reader/-/xml-reader-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-1.1.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-1.1.0.tgz_1471285479973_0.5377016328275204"},"directories":{},"publish_time":1471285481480,"_hasShrinkwrap":false,"_cnpm_publish_time":1471285481480,"_cnpmcore_publish_time":"2021-12-16T21:07:38.570Z"},"1.0.0":{"name":"xml-reader","version":"1.0.0","description":"XML Reader and Parser","main":"dist/reader.js","scripts":{"build":"babel src --out-dir dist","prepublish":"npm test","pretest":"npm run build","prebuild":"npm run clean","clean":"rimraf dist","test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"^0.1.0"},"devDependencies":{"babel-cli":"^6.11.4","babel-preset-es2015":"^6.13.2","clone":"^1.0.2","rimraf":"^2.5.4","tape":"^4.6.0"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"cf4cd77ecf67a6d585ec095c94c142152643d200","_id":"xml-reader@1.0.0","_shasum":"83580bc9cc2449364458bea9e3902a986f5883e2","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"83580bc9cc2449364458bea9e3902a986f5883e2","size":3356,"noattachment":false,"key":"/xml-reader/-/xml-reader-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-1.0.0.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-1.0.0.tgz_1470988245850_0.7310624669771641"},"directories":{},"publish_time":1470988247856,"_hasShrinkwrap":false,"_cnpm_publish_time":1470988247856,"_cnpmcore_publish_time":"2021-12-16T21:07:38.790Z"},"0.0.6":{"name":"xml-reader","version":"0.0.6","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.17"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"9749f0c4f10900210480b9b29fef53a45d33f891","_id":"xml-reader@0.0.6","_shasum":"15536452a1421fdb0d08d27fa611dac9041cbca0","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"15536452a1421fdb0d08d27fa611dac9041cbca0","size":3368,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.6.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.6.tgz_1459238502412_0.2917761958669871"},"directories":{},"publish_time":1459238503481,"_hasShrinkwrap":false,"_cnpm_publish_time":1459238503481,"_cnpmcore_publish_time":"2021-12-16T21:07:39.028Z"},"0.0.5":{"name":"xml-reader","version":"0.0.5","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.16"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"c59d8987119b797e67fc3548808613b0107d8394","_id":"xml-reader@0.0.5","_shasum":"598b5645c1f6870bce63b4e18923e7bf6e689372","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"598b5645c1f6870bce63b4e18923e7bf6e689372","size":3407,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.5.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.5.tgz_1459104745652_0.8200598952826113"},"directories":{},"publish_time":1459104748162,"_hasShrinkwrap":false,"_cnpm_publish_time":1459104748162,"_cnpmcore_publish_time":"2021-12-16T21:07:39.239Z"},"0.0.4":{"name":"xml-reader","version":"0.0.4","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.15"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"486ef78f13d88f82528d9e64663cc6fdcba1c558","_id":"xml-reader@0.0.4","_shasum":"7941ce4588d2739d572a495a746adf50a91c7444","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"7941ce4588d2739d572a495a746adf50a91c7444","size":3404,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.4.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.4.tgz_1459091308839_0.5416816486977041"},"directories":{},"publish_time":1459091311073,"_hasShrinkwrap":false,"_cnpm_publish_time":1459091311073,"_cnpmcore_publish_time":"2021-12-16T21:07:39.478Z"},"0.0.3":{"name":"xml-reader","version":"0.0.3","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.14"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"aa5a34482c718bff144fc0a4cc7f8627e3693328","_id":"xml-reader@0.0.3","_shasum":"854f8203fe8ee05df2c021d239ffb75ab07456fd","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"854f8203fe8ee05df2c021d239ffb75ab07456fd","size":3390,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.3.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.3.tgz_1459034354613_0.008449773536995053"},"directories":{},"publish_time":1459034357095,"_hasShrinkwrap":false,"_cnpm_publish_time":1459034357095,"_cnpmcore_publish_time":"2021-12-16T21:07:39.683Z"},"0.0.2":{"name":"xml-reader","version":"0.0.2","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.14"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"repository":{"type":"git","url":"git+https://github.com/pladaria/xml-reader.git"},"bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"homepage":"https://github.com/pladaria/xml-reader#readme","gitHead":"70fc4cb12d8289972f0e106039309cf30db782de","_id":"xml-reader@0.0.2","_shasum":"a1ef0c9ba34c5ac720c8e9b27e4864a40964022d","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"a1ef0c9ba34c5ac720c8e9b27e4864a40964022d","size":3362,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.2.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.2.tgz_1459030820082_0.9357658503577113"},"directories":{},"publish_time":1459030822648,"_hasShrinkwrap":false,"_cnpm_publish_time":1459030822648,"_cnpmcore_publish_time":"2021-12-16T21:07:39.893Z"},"0.0.1":{"name":"xml-reader","version":"0.0.1","description":"XML Reader and Parser","main":"index.js","scripts":{"test":"node test/test.js"},"author":{"name":"Pedro Ladaria","email":"pedro.ladaria@gmail.com"},"license":"MIT","keywords":["xml","reader","sax","lexer","parser","parsing","parse","ast"],"dependencies":{"eventemitter3":"^1.2.0","xml-lexer":"0.0.14"},"devDependencies":{"clone":"^1.0.2","tape":"^4.5.1"},"gitHead":"ea8e7886751ddf15af3b71ab8621500a685aacf4","_id":"xml-reader@0.0.1","_shasum":"33654e65eda7fe9e06214b2dc3508241c024222b","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"pladaria","email":"pedro.ladaria@gmail.com"},"dist":{"shasum":"33654e65eda7fe9e06214b2dc3508241c024222b","size":3060,"noattachment":false,"key":"/xml-reader/-/xml-reader-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-reader/download/xml-reader-0.0.1.tgz"},"maintainers":[{"name":"pladaria","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/xml-reader-0.0.1.tgz_1459028204368_0.5541086788289249"},"directories":{},"publish_time":1459028205271,"_hasShrinkwrap":false,"_cnpm_publish_time":1459028205271,"_cnpmcore_publish_time":"2021-12-16T21:07:40.090Z"}},"readme":"# XML Reader\n\nReads XML documents and emits JavaScript objects with a simple, easy to use structure.\n\n## Features\n\n- Small, fast and simple\n- Runs everywhere (browser, node.js, React Native, ServiceWorkers, WebWorkers...)\n- Event driven and synchronous API\n- Can process input piece-by-piece in a serial fashion\n- Stream mode (low memory usage)\n- Reads CDATA sections\n\n## Install\n\n```bash\nnpm install --save xml-reader\n```\n\n## Node structure\n\nObjects emitted by the reader are trees where each node has the following structure:\n\n```typescript\ninterface XmlNode {\n    name: string; // element name (empty for text nodes)\n    type: string; // node type (element or text), see NodeType constants\n    value: string; // value of a text node\n    parent: XmlNode; // reference to parent node (null with parentNodes option disabled or root node)\n    attributes: {[name: string]: string}; // map of attributes name => value\n    children: XmlNode[];  // array of children nodes\n}\n```\n\n## Breaking changes in version 2\n\nAdded the `tagPrefix` option with a default value of `'tag:'`. This way we avoid possible name collisions with the `done` event.\nTo keep the old behavior, set it to an empty string.\n\n## Reading results\n\nCheck the [`xml-query`](https://github.com/pladaria/xml-query) package! It is very useful to read values from the structures returned by `xml-reader`.\n\n## Examples\n\n### Read document (event driven)\n\nBasic example. Read and parse a XML document.\n\n```javascript\nconst XmlReader = require('xml-reader');\nconst reader = XmlReader.create();\nconst xml =\n    `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n    <message>\n        <to>Alice</to>\n        <from>Bob</from>\n        <heading color=\"blue\">Hello</heading>\n        <body color=\"red\">This is a demo!</body>\n    </message>`;\n\nreader.on('done', data => console.log(data));\nreader.parse(xml);\n\n/*\nConsole output:\n\n{ name: 'message',\n  type: 'element',\n  children: [\n    { name: 'to',\n      type: 'element',\n      children: [{ type: 'text', value: 'Alice' }]},\n    { name: 'from',\n      type: 'element',\n      children: [{ type: 'text', value: 'Bob' }]},\n    { name: 'heading',\n      type: 'element',\n      attributes: { color: 'blue' },\n      children: [{ type: 'text', value: 'Hello' }]},\n    { name: 'body',\n      type: 'element',\n      attributes: { color: 'red' },\n      children: [{ type: 'text', value: 'This is a demo!' }]}]}\n\nNote: empty values and references to parent nodes removed for brevity!\n*/\n```\n\n### Read document (synchronous)\n\nThis mode is only valid for reading complete documents (root node must be closed).\n\n```javascript\nconst XmlReader = require('xml-reader');\n\nconst xml = '<doc>Hello!</doc>';\nconst result = XmlReader.parseSync(xml/*, options*/);\n```\n\n### Stream mode\n\nIn stream mode, nodes are removed from root as they are emitted. This way memory usage does not increases.\n\n```javascript\nconst XmlReader = require('xml-reader');\n\nconst reader = XmlReader.create({stream: true});\nconst xml =\n    `<root>\n        <item v=1/>\n        <item v=2/>\n        <item v=3/>\n    </root>`;\n\nreader.on('tag:item', (data) => console.log(data));\n// {name: 'item', type: 'element', value: '', attributes: {v: '1'}, children: []}\n// {name: 'item', type: 'element', value: '', attributes: {v: '2'}, children: []}\n// {name: 'item', type: 'element', value: '', attributes: {v: '3'}, children: []}\n\nreader.on('done', (data) => console.log(data.children.length));\n// 0\n\nreader.parse(xml);\n```\n\nYou can also listen to all tags:\n\n```javascript\nreader.on('tag', (name, data) => console.log(`received a ${name} tag:`, data));\n```\n\n### Stream mode (chunked)\n\nIn this example we are calling multiple times to the parser. This is useful if your XML document is a stream that comes from a TCP socket or WebSocket (for example XMPP streams).\n\nSimply feed the parser with the data as it arrives. As you can see, the result is exactly the same as the previous one.\n\n```javascript\nconst XmlReader = require('xml-reader');\n\nconst reader = XmlReader.create({stream: true});\nconst xml =\n    `<root>\n        <item v=1/>\n        <item v=2/>\n        <item v=3/>\n    </root>`;\n\nreader.on('tag:item', (data) => console.log(data));\n// {name: 'item', type: 'element', value: '', attributes: {v: '1'}, children: []}\n// {name: 'item', type: 'element', value: '', attributes: {v: '2'}, children: []}\n// {name: 'item', type: 'element', value: '', attributes: {v: '3'}, children: []}\n\nreader.on('done', (data) => console.log(data.children.length));\n// 0\n\n// Note that we are calling the parse function providing just one char each time\nxml.split('').forEach(char => reader.parse(char));\n```\n\n### Reset\n\nUse the `reset()` method to reset the reader. This is useful if a stream gets interrupted and you want to start a new one or to use the same reader instance to parse multiple documents (just reset the reader between them).\n\nExample:\n```javascript\nconst doc1 = '<document>...</document>';\nconst doc2 = '<document>...</document>';\n\nreader.parse(doc1);\n\n// when the document ends, the reader stops emitting events\nreader.reset();\n\n// now you can parse a new document\nreader.parse(doc2);\n```\n\n### Options\n\nDefault options are:\n\n```javascript\n{\n  stream: false,\n  parentNodes: true,\n  tagPrefix: 'tag:',\n  doneEvent: 'done',\n  emitTopLevelOnly: false,\n}\n```\n\n#### parentNodes (boolean)\n\nIf `true` (default), each node of the AST has a `parent` node which point to its parent. If `false` the parent node is always `null`.\n\n#### stream (boolean)\n\nEnable or disable stream mode. In stream mode nodes are removed from root after being emitted. Default `false`.\nIgnored in `parseSync`;\n\n\n#### doneEvent (string)\n\nDefault value is `'done'`. This is the name of the event emitted when the root node is closed and the parse is done.\nIgnored in `parseSync`;\n\n#### tagPrefix (string)\n\nDefault value is `'tag:'`. The event driven API emits an event each time a tag is read. Use this option to set a name prefix.\nIgnored in `parseSync`;\n\n#### emitTopLevelOnly (boolean)\n\nDefault value is `false`. When true, tag events are only emitted by top level nodes (direct children from root). This is useful for XMPP streams like XMPP where each top level child is a stanza.\n\nFor example, given the following XML stream:\n\n```xml\n<stream>\n  <message from=\"alice\" to=\"bob\">\n    <body>hello</body>\n    <date>2016-10-06</date>\n  </message>\n\n  <message from=\"alice\" to=\"bob\">\n    <body>bye</body>\n    <date>2016-10-07</date>\n  </message>\n```\n\ntags emitted with `emitTopLevelOnly=false`\n```text\nbody\ndate\nmessage\nbody\ndate\nmessage\n```\n\ntags emitted with `emitTopLevelOnly=true`\n\n```text\nmessage\nmessage\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/pladaria/xml-reader#readme","bugs":{"url":"https://github.com/pladaria/xml-reader/issues"},"license":"MIT"}