locate-character efficiently finds the precise byte index of a character within a string, addressing the complexities of multi-byte characters often encountered in Unicode. This package avoids naive charAt or similar approaches, which can produce incorrect results when dealing with characters outside the basic ASCII range. Useful for tasks involving text manipulation, parsing, and advanced string analysis where accurate character positioning is critical, especially in contexts that require byte-level precision. Lightweight and fast, locate-character ensures your string operations remain accurate.
The locate-character npm package had infrequent releases. Initial activity occurred in 2016 and 2017, with several versions published. Releases slowed significantly after January 2018. There was a single release in June 2023 after a long period of inactivity. No releases have occurred in 2024 or up to September 5, 2025.
Locate-character's npm downloads show steady growth from March to December 2024, peaking in December at 5.1 million. Growth continued into early 2025, reaching 6.5 million in February before fluctuating. August 2025 saw a significant spike to over 8 million downloads. September's data is incomplete.