Precompiled expat library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
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,
}
};
Below are the steps to use the expat in your C++ or JavaScript code.
+#include <expat.h>
std::string Native::sample() {
+ return std::string(XML_ExpatVersion());
}
This project includes the precompiled expat library, which is distributed under the MIT License.
Expat Homepage: https://github.com/libexpat/libexpat