Back to Explore

sindresorhus/strip-bom

GitHub
1 watchersOpen source

Last release: 4/16/2021

Strip-bom is a JavaScript utility that removes the UTF-8 byte order mark (BOM) from a string. It is useful when you need to sanitize text inputs that may start with a BOM before further processing.

Project status

  • Maintenance status: The repository appears to be in a low-activity state, with the most recent recorded update on 2021-04-16 (v5.0.0), and no newer updates shown in the provided history.
  • Update cadence: Updates are infrequent, with large gaps between documented versions (v3.0.0 in 2016, v4.0.0 in 2019, v5.0.0 in 2021).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v5.0.0

    4/16/2021

    v5.0.0 updates strip-bom to run on Node.js >=12 and switches the package to pure ESM. The implementation remains the same (removes a leading UTF-8 BOM), but module loading and TypeScript typings change to match ESM default exports.

    Breaking
  • v4.0.0

    4/28/2019

    v4.0.0 changes the supported runtime to require Node.js 8 and adds TypeScript type definitions for the default CommonJS export. The runtime implementation behavior for stripping a UTF-8 BOM from the start of a string appears unchanged, with differences limited to added typings and development/test tooling updates.

    BreakingFeatures
  • v3.0.0

    4/30/2016

    Release v3.0.0 was published on 2016-04-30, but no release notes were provided by the publisher. As a result, there is no documented information here about new features, breaking changes, bug fixes, security, performance, or migration steps.