@cpp.js/package-expat
v1.0.0-beta.22
Published
This package provides the precompiled Expat XML parser library, built using Cpp.js, for seamless integration into JavaScript, WebAssembly, and React Native projects. It enables fast and efficient parsing of XML data, making it ideal for applications requi
Downloads
233
Maintainers
Readme
@cpp.js/package-expat
Precompiled expat library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
Integration
Start by installing these package with the following command:
npm install @cpp.js/package-expat
To enable the library, modify the cppjs.config.js file as shown below.
+import expat from '@cpp.js/package-expat/cppjs.config.js';
export default {
dependencies: [
+ expat
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the expat in your C++ or JavaScript code.
Usage in C++ Code
+#include <expat.h>
std::string Native::sample() {
+ return std::string(XML_ExpatVersion());
}
License
This project includes the precompiled expat library, which is distributed under the MIT License.
Expat Homepage: https://github.com/libexpat/libexpat