Comments (7)
Currently not. node-iconv handles transliteration and has a broader support for different charsets. But in the future, when iconv-lite catches up, then yes. Right now, iconv-lite is just a fallback for the systems where node-iconv has compiling issues and node-iconv is preferred.
from encoding.
Perhaps time to take another look at this?
from encoding.
node-iconv is not a required dependency anymore and iconv-lite is used by default. node-iconv is only used if it is installed separately.
from encoding.
Ah, gotcha. Browserify still breaks when building encoding
because it detects the iconv
dep, but this can be fixed by the user by passing iconv
to Browserify's ignore
. So probably not worth fixing here.
from encoding.
Though, I believe the fix would be as easy as:
try {
var iconv_package = 'iconv'; // this is to fool browserify so it doesn't try (in vain) to install it.
Iconv = require(iconv_package).Iconv;
} catch (E) {
// node-iconv not present
}
Would be happy to submit a PR if you like.
from encoding.
I don't really care about browserify compatibility but haven't got anything against it, so if you'd create a PR that doesn't break anything existing and works with browserify I'd pull it.
from encoding.
Great, submitted. Let me know if that's okay
from encoding.
Related Issues (13)
- Detecting charset HOT 1
- fails with iconv-lite unsupported encoding error HOT 3
- Null bytes not trimmed. HOT 3
- test failure for ISO-2022-JP HOT 1
- Warnings with webpack. HOT 17
- iconv-loader webpack issue HOT 19
- about auto detect charset HOT 1
- Buffer() is deprecated HOT 1
- Critical dependency: the request of a dependency is an expression HOT 1
- Error: Cannot find module 'iconv
- Please add copyright statement and license text HOT 4
- iconv-lite version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from encoding.