/**
 * Minify javascript string.
 * @function lib.minify.minifyJsString
 * @param {string} src - Source javascript string.
 * @param {function} callback - Callback when done.
 * @author Taka Okunishi
 *
 */
module.exports = function (src, callback) {
    var UglifyJS = require("uglify-js");
    var minified = UglifyJS.minify(src, {
        fromString: true
    });
    callback(null, minified.code);
};