unquote.js 212 Bytes Raw Blame History Permalink 1 2 3 4 5 6 module.exports = function unquote(str, quoteChar) { quoteChar = quoteChar || '"'; if (str[0] === quoteChar && str[str.length - 1] === quoteChar) return str.slice(1, str.length - 1); else return str; };