An open API service providing repository metadata for many open source software ecosystems.

GitHub topics: intl-segmenter

jonschlinkert/intl-segmenter

A high-performance wrapper around Intl.Segmenter for efficient text segmentation. This class resolves memory handling issues seen with large strings and "maximum call stack exceeded" exceptions that occur when strings exceed 40-50k characters. Enhances performance by 50-500x. Only ~70 loc (with comments) and no dependencies.

Language: JavaScript - Size: 43.9 KB - Last synced at: 13 days ago - Pushed at: 3 months ago - Stars: 10 - Forks: 1