pixsy/node_modules/less/lib/less-node/environment.js

15 lines
444 B
JavaScript
Raw Normal View History

2017-12-22 17:22:08 +00:00
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;
}
};