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.
☆14Updated 4 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.☆42Updated last month
- An absurdly small glob matcher that packs a punch.☆50Updated 2 months ago
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆14Updated 4 months ago
- Small, no dependencies, Markdown, HTML, and inline CSS parser. Just 4KB, available as ESM module from CDN.☆23Updated this week
- A tiny PEG-like system for building language grammars with regexes.☆21Updated 6 months ago
- A structured clone equivalent able to encode and decode as a buffer.☆43Updated 5 months ago
- A CLI spinner in under 1kB☆16Updated last year
- Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expres…☆47Updated 6 months ago
- 🌐 Interactive glob pattern tester☆30Updated 3 years ago
- A tiny (0.5 kB) decimal type for JavaScript☆51Updated 6 months ago
- Socket.dev optimized 📦 overrides✨☆33Updated this week
- A fast parser and processor for .gitignore files.☆57Updated last year
- A little CLI for making TypeScript packages, cleanly and effortlessly.☆23Updated last year
- Abortable and Resolvable Promises.☆55Updated 2 years ago
- A minimalistic and flexible templating engine, inspired by Handlebars.☆24Updated last year
- A template literal based ESX proposal☆51Updated last year
- ESbuild plugin to apply import map mappings to ESM a head of time.☆26Updated last week
- A simple promisified recursive readdir function, with support for globs and .gitignore files.☆13Updated 6 months ago
- Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.☆42Updated 2 years ago
- Iterable WeakMap, WeakSet and WeakValue☆38Updated 2 years ago
- A grep-like command that uses JavaScript-flavored regular expressions.☆20Updated last year
- React application framework on preact signals☆15Updated 2 years ago
- Glob search in constant time thanks to git cache☆25Updated 4 years ago
- The one-stop shop solution for JS Proxies and FFI APIs.☆26Updated 6 months ago
- Convert a string index to its line and column position☆33Updated 4 months ago
- Make presentable errors☆60Updated 2 years ago
- Literally the only sane way, if not the fastest one, to extend the Function class witohut evaluation.☆40Updated 10 months ago
- String utilities that understand terminal escape sequences.☆24Updated 7 months ago
- Creates a module graph based on a given entrypoint. Supports ESM, monorepos, import attributes, typescript (via a plugin) and is extensib…☆50Updated last month
- Light, elegant animation plugin for Preact (powered by Motion.dev and WAAPI)☆31Updated last month