Find the first index of a substring within a string. The indexof package offers a reliable and performant alternative that works consistently across different JavaScript environments. It provides a simple indexOf function, mirroring the native String.prototype.indexOf behavior. Use it for safer string manipulation, especially in older browsers or environments where native methods might be inconsistent or unavailable. Ideal for projects requiring broad compatibility and predictable string searching.
The npm package "indexof" saw only one release, version 0.0.1, in August 2012. Since September 2012 and up to July 2025 (the latest data available), there have been no new versions or updates to the package. The package appears to be inactive for over a decade.
The npm package "indexof" experienced fluctuating downloads between March 2024 and August 2025. Downloads generally ranged from 9 to 10 million monthly, peaking in July 2025 at over 15 million. As of August 2025, downloads are at 9.3 million, lower than the previous months.