@cpp.js/package-expat

1.0.0 • Public • Published

@cpp.js/package-expat

Precompiled expat library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.

NPM version License

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

Package Sidebar

Install

npm i @cpp.js/package-expat

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

8.17 MB

Total Files

77

Last publish

Collaborators

  • bugra9