istextorbinary
Advanced tools
Changelog
v5.0.0 2020 May 30
isText
, isBinary
, and getEncoding
getEncoding
now checks start, middle, and end if checkBegin
was not provided. Prior functionality only checked start, middle, and end, if opts
were not provided. This new functionality allows custom checkLength
for start, middle, and end.isBinary
instead of just referencing isText
, so your intellisense is now more helpful