We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e3893e commit 9ca8e32Copy full SHA for 9ca8e32
mime-functions.js
@@ -1,6 +1,12 @@
1
2
-// see http://github.com/bnoordhuis/node-iconv for more info
3
-var Iconv = require("iconv").Iconv;
+try{
+ // see http://github.com/bnoordhuis/node-iconv for more info
4
+ var Iconv = require("iconv").Iconv;
5
+}catch(E){
6
+ // convert nothing
7
+ Iconv = function(){}
8
+ Iconv.prototype.convert = function(buf){return buf;};
9
+}
10
11
/* mime related functions - encoding/decoding etc*/
12
/* TODO: Only UTF-8 and Latin1 are allowed with encodeQuotedPrintable */
package.json
@@ -1,7 +1,7 @@
{
"name": "mimelib",
"description": "MIME functions to encode/decode e-mails etc.",
- "version": "0.1.1",
+ "version": "0.1.2",
"author" : "Andris Reinman",
"homepage":"http://github.com/andris9/mimelib",
"maintainers":[
0 commit comments