Deno string utils.
import { stripBom } from "https://deno.land/x/string/mod.ts";
stripBom("\uFEFFjustjavac");
// => 'justjavac'
or
import stripBom from "https://deno.land/x/string/stripBom.ts";
stripBom("\uFEFFjustjavac");
// => 'justjavac'
function | Description |
---|---|
stripBom |
Strip UTF-8 byte order mark (BOM) from a string |
deno_string is released under the MIT License. See the bundled LICENSE file for details.