How to use the isEncoding function from buffer

Find comprehensive JavaScript buffer.isEncoding code examples handpicked from public code repositorys.

89
90
91
92
93
94
95
96
97
    return length;
}

// -- Buffer ---------------------------------------------------------------

original.BufferIsEncoding = Buffer.isEncoding;
Buffer.isEncoding = function(encoding) {
    return Buffer.isNativeEncoding(encoding) || iconv.encodingExists(encoding);
}
fork icon0
star icon0
watch icon2