1'use strict'; 2 3var iconv_package; 4var Iconv; 5 6try { 7 // this is to fool browserify so it doesn't try (in vain) to install iconv. 8 iconv_package = 'iconv'; 9 Iconv = require(iconv_package).Iconv; 10} catch (E) { 11 // node-iconv not present 12} 13 14module.exports = Iconv; 15