@cpp.js/package-iconv
v1.0.0-beta.22
Published
This package provides the precompiled iconv library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. It provides a high-performance solution for converting between character encodings, ensuring cross-platfo
Downloads
256
Maintainers
Readme
@cpp.js/package-iconv
Precompiled iconv 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-iconv
To enable the library, modify the cppjs.config.js file as shown below.
+import iconv from '@cpp.js/package-iconv/cppjs.config.js';
export default {
dependencies: [
+ iconv
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the iconv in your C++ or JavaScript code.
Usage in C++ Code
+#include <iconv.h>
std::string Native::sample() {
+ return to_string(_LIBICONV_VERSION);
}
License
This project includes the precompiled libiconv library, which is distributed under the LGPL License.
iconv Homepage: https://www.gnu.org/software/libiconv/