jonschlinkert / intl-segmenterLinks
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.
☆17Updated 6 months ago
Alternatives and similar repositories for intl-segmenter
Users that are interested in intl-segmenter are comparing it to the libraries listed below
Sorting:
- Capture screenshots programmatically. Cross-platform, with support for MacOS (Darwin), Windows, and Linux.☆43Updated 3 months ago
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆13Updated 6 months ago
- Small, no dependencies, Markdown, HTML, and inline CSS parser. Just 4KB, available as ESM module from CDN.☆25Updated last month
- Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expres…☆48Updated 9 months ago
- A tiny (0.5 kB) decimal type for JavaScript☆51Updated 9 months ago
- A structured clone equivalent able to encode and decode as a buffer.☆43Updated 7 months ago
- A simple promisified recursive readdir function, with support for globs and .gitignore files.☆13Updated 8 months ago
- Abortable and Resolvable Promises.☆55Updated 2 years ago
- A tiny PEG-like system for building language grammars with regexes.☆22Updated 2 weeks ago
- Creates a module graph based on a given entrypoint. Supports ESM, monorepos, import attributes, typescript (via a plugin) and is extensib…☆52Updated 3 months ago
- A minimalistic and flexible templating engine, inspired by Handlebars.☆23Updated 2 years ago
- String utilities that understand terminal escape sequences.☆24Updated 9 months ago
- An absurdly small glob matcher that packs a punch.☆64Updated 2 weeks ago
- A template literal based ESX proposal