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.
☆13Updated last week
Alternatives and similar repositories for intl-segmenter:
Users that are interested in intl-segmenter are comparing it to the libraries listed below
- Capture screenshots programmatically. Cross-platform, with support for MacOS (Darwin), Windows, and Linux.☆29Updated 2 months ago
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆14Updated 3 weeks ago
- A safer loop for sync or async unique use cases.☆21Updated last year
- Convert a string index to its line and column position☆32Updated last month
- Expand deeply nested values from an object, with support for advanced features☆17Updated 2 years ago
- Dual module with empty exports for many cases.☆16Updated 6 months ago
- A little CLI for making TypeScript packages, cleanly and effortlessly.☆21Updated 11 months ago
- An absurdly small glob matcher that packs a punch.☆48Updated 2 months ago
- A simple promisified recursive readdir function, with support for globs and .gitignore files.☆13Updated 3 months ago
- Iterable WeakMap, WeakSet and WeakValue☆38Updated last year
- Abortable and Resolvable Promises.☆55Updated 2 years ago
- A fast parser and processor for .gitignore files.☆56Updated last year
- A structured clone equivalent able to encode and decode as a buffer.☆42Updated last month
- String utilities that understand terminal escape sequences.☆24Updated 3 months ago
- A minimalistic and flexible templating engine, inspired by Handlebars.☆24Updated last year
- A way to create persistent fragments☆12Updated 3 years ago
- Tries to execute a sync/async function, returns a specified default value if the function throws☆18Updated 2 years ago
- 🌐 Interactive glob pattern tester☆30Updated 3 years ago
- The one-stop shop solution for JS Proxies and FFI APIs.☆26Updated 2 months ago
- A fast, and essential, noop/plain JS template literal tag.☆21Updated 9 months ago
- Gracefully restore the CLI cursor on exit☆38Updated 9 months ago
- A tiny PEG-like system for building language grammars with regexes.☆21Updated 2 months ago
- Small, no dependencies, Markdown, HTML, and inline CSS parser. Just 4KB, available as ESM module from CDN.☆21Updated last week
- Set object values using property chaining syntax☆21Updated 2 years ago
- One way shared/worker async bindings.☆26Updated 3 months ago
- A tiny (156B) utility to compare a string against a template mask.☆22Updated 7 years ago
- You only need 5 icons to meet most needs!☆21Updated 3 years ago
- Tokenize a shell string into argv array☆23Updated 3 months ago
- Glob search in constant time thanks to git cache☆26Updated 4 years ago
- alien-signals with a Preact signals like API☆13Updated 3 weeks ago