iconv-lite icon indicating copy to clipboard operation
iconv-lite copied to clipboard

Make browser version without Browserify

Open ashtuchkin opened this issue 10 years ago • 10 comments

  • [ ] 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.

ashtuchkin avatar May 01 '14 10:05 ashtuchkin

+1 on this ^^

reinaldorauch avatar Jul 12 '17 22:07 reinaldorauch

+1

breezechen avatar Dec 13 '18 14:12 breezechen

👍 +1

anaerobic avatar Feb 11 '19 22:02 anaerobic

+1 could you please tell me why not make a browser version directly? we need an official version in browser

WonderZC avatar Feb 17 '20 03:02 WonderZC

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 avatar Feb 17 '20 07:02 ashtuchkin

@ashtuchkin Can please you tell me how? Can you ad at least some examples? For me it is a nightmare ...

Celtian avatar Jul 16 '22 18:07 Celtian

Just follow instructions on https://browserify.org/ and import iconv-lite there.

ashtuchkin avatar Jul 16 '22 18:07 ashtuchkin

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 ...

Celtian avatar Jul 16 '22 19:07 Celtian

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.

ashtuchkin avatar Jul 16 '22 20:07 ashtuchkin

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 ...

Celtian avatar Jul 17 '22 06:07 Celtian