aboutsummaryrefslogtreecommitdiff
path: root/utilities/hash_script/node_modules/encoding/lib/iconv-loader.js
blob: 8e925fd8e09c2e1c7bd92bfd190bf81ad704e32b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

var iconv_package;
var Iconv;

try {
    // this is to fool browserify so it doesn't try (in vain) to install iconv.
    iconv_package = 'iconv';
    Iconv = require(iconv_package).Iconv;
} catch (E) {
    // node-iconv not present
}

module.exports = Iconv;