Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-expat

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-expat - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

.npmignore

28

bench.js

@@ -1,5 +0,6 @@

var sys = require('sys');
var util = require('util');
var node_xml = require("node-xml");
var libxml = require("libxmljs");
var expat = require('./lib/node-expat');
var expat = require('node-expat');
var sax = require('sax');

@@ -18,2 +19,8 @@ function NodeXmlParser() {

}
function SaxParser() {
var parser = sax.parser();
this.parse = function(s) {
parser.write(s).close();
}
}
function ExpatParser() {

@@ -28,2 +35,3 @@ var parser = new expat.Parser();

//var p = new LibXmlJsParser();
//var p = new SaxParser();
var p = new ExpatParser();

@@ -39,5 +47,17 @@ p.parse("<r>");

var its =[];
setInterval(function() {
sys.puts(nEl + " el/s");
util.puts(nEl + " el/s");
its.push(nEl);
nEl = 0;
}, 1000);
}, 1000);
process.on('SIGINT', function () {
var average = 0;
its.forEach(function (v){
average += v;
});
average /= its.length;
util.puts("Average: " + average + " el/s");
process.exit(0);
});

27

package.json
{ "name": "node-expat"
,"version": "1.4.1"
,"version": "1.4.2"
,"main": "./lib/node-expat"
,"description": "NodeJS binding for fast XML parsing."
,"keywords": ["xml","sax","expat","libexpat","parse","parsing"]
,"scripts" : { "install": "node-waf configure build"
,"update": "node-waf build"
,"test": "node test.js"
,"test": "vows --spec ./test.js"
}
,"dependencies": []
,"devDependencies": ["vows"]
,"repositories": [{ "type": "git"
,"path": "git://github.com/astro/node-expat.git"
}]
,"dependencies": {}
,"devDependencies": {"vows": ">=0.5.12"}
,"repository": { "type": "git"
, "path": "git://github.com/astro/node-expat.git"
}
,"homepage": "http://github.com/astro/node-expat"
,"bugs": "http://github.com/astro/node-expat/issues"
,"maintainers": [{ "name": "Astro"
,"email": "astro@spaceboyz.net"
,"web": "http://spaceboyz.net/~astro/"
}]
,"contributors": ["Stephan Maka", "Derek Hammer", "Iein Valdez", "Peter Körner", "Camilo Aguilar"]
,"author": { "name": "Astro"
, "email": "astro@spaceboyz.net"
, "web": "http://spaceboyz.net/~astro/"
}
,"contributors": ["Stephan Maka", "Derek Hammer", "Iein Valdez", "Peter Körner", "Camilo Aguilar", "Michael Weibel"]
,"licenses": [{ "type": "MIT" }]
,"engine": "node"
,"engines": { "node": ">=0.4" }
}

@@ -1,2 +0,1 @@

var sys = require('sys');
var expat = require('./lib/node-expat');

@@ -238,4 +237,4 @@ var Buffer = require('buffer').Buffer;

assert.ok(true, "Did not segfault");
},
},
'parsing twice the same document with the same parser instance should be fine': 'reset() not yet implemented'

@@ -252,5 +251,5 @@ /*function() {

assert.ok(result2);
}*/
}
}).run();
}).export(module);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc