index.js
function bufferReviver(k, v) {
    if (
        v !== null &&
        typeof v === 'object' &&
        'type' in v &&
        v.type === 'Buffer' &&
        'data' in v &&
        Array.isArray(v.data)) {
        return new Buffer(v.data);
    }
    return v;
}
function bufferReviver(k, v) {
    if (
        v !== null &&
        typeof v === 'object' &&
        'type' in v &&
        v.type === 'Buffer' &&
        'data' in v &&
        Array.isArray(v.data)) {
        return new Buffer(v.data);
    }
    return v;
}
function bufferReviver ( k , v ) { if ( v !== null && typeof v === 'object' && 'type' in v && v . type === 'Buffer' && 'data' in v && Array . isArray ( v . data ) ) { return new Buffer ( v . data ) ; } return v ; }
Helper function that revives buffers from object representation on JSON.parse
Helper function that revives buffers from object representation on JSON . parse