iconv-lite
iconv-lite copied to clipboard
Make browser version without Browserify
- [ ] Use UInt8Array or just Array as a Buffer (make a single place for codecs to create resulting objects and make a switch there)
- [ ] Reimplement utf-8, utf-16, base64, hex, binary.
- [ ] Make separate file for dbcs codec and its tables.
- [ ] Make interface compatible with Encoding Standard.
+1 on this ^^
+1
👍 +1
+1 could you please tell me why not make a browser version directly? we need an official version in browser
Short version: don't have to time to create and maintain a separate piece of code. Please use browserify or similar.
On Sun, Feb 16, 2020 at 10:17 PM WonderZC [email protected] wrote:
+1 could you please tell me why not make a browser version directly? we need an official version in browser
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ashtuchkin/iconv-lite/issues/58?email_source=notifications&email_token=AAEZKHNEAO3ALIJDLIVBHU3RDH6SZA5CNFSM4AO4LGO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL452CQ#issuecomment-586800394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZKHKB5TTDJ3IPUEYZZ6TRDH6SZANCNFSM4AO4LGOQ .
@ashtuchkin Can please you tell me how? Can you ad at least some examples? For me it is a nightmare ...
Just follow instructions on https://browserify.org/ and import iconv-lite there.
It's not enough. I want to use my library https://www.npmjs.com/package/fifatables which is using your library in browser. I want to use it in Angular application. I spend few hours to find some example (Angular / React / ...) / stackblitz / codesandbox ...
Sorry I don't have time to create a full fledged example at this time. Maybe someone from the community can help you. Or you can try posting this question in stack overflow, I heard people there are pretty responsive.
The closest example I have found is here: https://github.com/publicVoid-info/ts-gulp-browserify/blob/master/gulpfile.js Unfortunately it is not working with typescript. There are very old libs with many bugs ...