var convert = require('convert-source-map');
var type = require('../file-type');

function getComment(map, fileType) {

    var mapConverter = convert.fromObject(map);

    switch (fileType) {

        case type.CSS:
            return mapConverter.toComment({
                multiline: true
            });

        case type.JS:
            return mapConverter.toComment();

    }

}

module.exports = getComment;
var convert = require('convert-source-map');
var type = require('../file-type');

function getComment(map, fileType) {

    var encodedMap = 'sourceMappingURL=data:application/json;base64,' + convert.fromObject(map).toBase64();

    switch (fileType) {

        case type.CSS:
            return '/*# ' + encodedMap + ' */';

        case type.JS:
            return '//# ' + encodedMap;

    }

}

module.exports = getComment;
Make this a bit clearer.
Make this a bit clearer.
