strip-bom

Strip UTF-8 byte order mark (BOM) from a string

v5.0.0 MIT 10 versions Maintained by sindresorhus
  • strip
  • bom
  • byte
  • order
  • mark
  • unicode
  • utf8
  • utf-8
  • remove
  • delete
  • trim
  • text
Weekly downloads
126.5M -17%
vs previous week
Last 30 days
576.5M
Stars

Downloads

5.6B total · Sep 1, 2025 – Sep 1, 2026

Downloads by version

Last 7 days

Versions

10 releases published since Apr 4, 2014

Commit activity

Last 12 months

Contributors

Top 10

Issues