15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
module.exports = {
|
|
encodeBase64: function encodeBase64(str) {
|
|
return new Buffer(str).toString('base64');
|
|
},
|
|
mimeLookup: function (filename) {
|
|
return require('mime').lookup(filename);
|
|
},
|
|
charsetLookup: function (mime) {
|
|
return require('mime').charsets.lookup(mime);
|
|
},
|
|
getSourceMapGenerator: function getSourceMapGenerator() {
|
|
return require("source-map").SourceMapGenerator;
|
|
}
|
|
};
|