has-bom

Returns true if a buffer or string has a byte order mark (BOM)