lib/utils.js
function bufferSlice(code, range, format) {
    format = format || varThrough;
    return JSON.stringify(
            code.slice(Math.max(0, code.index - range), code.index)
        )
        .slice(1, -1) +
        format(
            JSON.stringify(code.charAt(code.index) || 'EOF')
            .slice(1, -1)
        ) +
        JSON.stringify(
            code.slice(
                code.index + 1,
                Math.min(code.length, code.index + 1 + range)
            )
        )
        .slice(1, -1);
}
function bufferSlice(code, range, format) {
    format = format || varThrough;
    return JSON.stringify(
            code.slice(Math.max(0, code.index - range), code.index)
        )
        .slice(1, -1) +
        format(
            JSON.stringify(code.charAt(code.index) || 'EOF')
            .slice(1, -1)
        ) +
        JSON.stringify(
            code.slice(
                code.index + 1,
                Math.min(code.length, code.index + 1 + range)
            )
        )
        .slice(1, -1);
}
function bufferSlice ( code , range , format ) { format = format || varThrough ; return JSON . stringify ( code . slice ( Math . max ( 0 , code . index - range ) , code . index ) ) . slice ( 1 , - 1 ) + format ( JSON . stringify ( code . charAt ( code . index ) || 'EOF' ) . slice ( 1 , - 1 ) ) + JSON . stringify ( code . slice ( code . index + 1 , Math . min ( code . length , code . index + 1 + range ) ) ) . slice ( 1 , - 1 ) ; }
Stringified CodeBuffer slice.
@param  {CodeBuffer} code CodeBuffer to slice.
@param  {Number} range    Range to slice before and after `code.index`.
Stringified CodeBuffer slice .