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

saxophone

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saxophone - npm Package Compare versions

Comparing version 0.7.2 to 0.8.0

11

lib/Saxophone.test.js

@@ -19,2 +19,7 @@ const {Readable} = require('readable-stream');

const finish = () => {
assert.equal(eventsIndex, events.length, 'should process all events');
assert.end();
};
uniq(events.map(([name]) => name)).forEach(eventName => {

@@ -36,2 +41,3 @@ parser.on(eventName, eventArgs => {

);
finish();
} else {

@@ -47,6 +53,3 @@ assert.deepEqual(

parser.on('finish', () => {
assert.equal(eventsIndex, events.length, 'should process all events');
assert.end();
});
parser.on('finish', finish);

@@ -53,0 +56,0 @@ if (!Array.isArray(xml)) {

{
"name": "saxophone",
"description": "Fast and lightweight event-driven XML parser in pure JavaScript",
"version": "0.7.2",
"version": "0.8.0",
"license": "MIT",

@@ -26,3 +26,3 @@ "main": "lib/index.js",

"engines": {
"node": "10 || 12 || 14 || 15"
"node": "14 || 16 || 18"
},

@@ -46,4 +46,4 @@ "keywords": [

"benchmark": "^2.1.4",
"common-tags": "^1.8.0",
"eslint": "^7.31.0",
"common-tags": "^1.8.2",
"eslint": "^8.18.0",
"faucet": "0.0.1",

@@ -53,8 +53,8 @@ "lodash.uniq": "^4.5.0",

"tap-spec": "^5.0.0",
"tape": "^5.2.2"
"tape": "^5.5.3"
},
"dependencies": {
"readable-stream": "^3.6.0",
"readable-stream": "^4.0.0",
"string_decoder": "^1.3.0"
}
}

@@ -9,3 +9,2 @@ # Saxophone 🎷

[![coverage](https://img.shields.io/coveralls/matteodelabre/saxophone.svg?style=flat-square)](https://coveralls.io/github/matteodelabre/saxophone)
[![dependencies status](http://img.shields.io/david/matteodelabre/saxophone.svg?style=flat-square)](https://david-dm.org/matteodelabre/saxophone)

@@ -35,7 +34,7 @@ Saxophone is inspired by SAX parsers such as [sax-js](https://github.com/isaacs/sax-js) and [EasySax](https://github.com/vflash/easysax): unlike most XML parsers, it does not create a Document Object Model ([DOM](https://en.wikipedia.org/wiki/Document_Object_Model)) tree as a result of parsing documents.

-------------------|--------:|----------------------------------------:
**Saxophone** | 0.5.0 | **6,797 ±2.99%**
**EasySax** | 0.3.2 | **7,919 ±1.21%**
node-expat | 2.3.18 | 904 ±1.77%
libxmljs.SaxParser | 0.19.7 | 869 ±0.98%
sax-js | 1.2.4 | 634 ±2.01%
**Saxophone** | 0.8.0 | **5,608 ±1.97%**
**EasySax** | 0.3.2 | **8,192 ±2.33%**
node-expat | 2.4.0 | 939 ±0.89%
libxmljs.SaxParser | 0.19.10 | 767 ±0.79%
sax-js | 1.2.4 | 771 ±0.82%

@@ -42,0 +41,0 @@ ```sh

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