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.
☆13Updated last month
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.☆36Updated 4 months ago
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆14Updated 2 months ago
- A safer loop for sync or async unique use cases.☆21Updated last year
- An absurdly small glob matcher that packs a punch.☆50Updated last week
- A fast, and essential, noop/plain JS template literal tag.☆21Updated 10 months ago
- A CLI spinner in under 1kB☆16Updated last year
- A simple promisified recursive readdir function, with support for globs and .gitignore files.☆13Updated 4 months ago
- A little CLI for making TypeScript packages, cleanly and effortlessly.☆23Updated last year
- Socket.dev optimized 📦 overrides✨☆34Updated this week
- A structured clone equivalent able to encode and decode as a buffer.☆43Updated 3 months ago
- Gracefully restore the CLI cursor on exit☆38Updated 11 months ago
- Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expres…☆45Updated 4 months ago
- Abortable and Resolvable Promises.☆55Updated 2 years ago
- A GitHub action to require "allow edits" to be checked on a PR.☆15Updated last month
- Check if the process is running in a Continuous Integration (CI) environment☆32Updated 11 months ago
- Dual module with empty exports for many cases.☆16Updated 8 months ago
- Convert a string index to its line and column position☆33Updated 2 months ago
- A tiny (156B) utility to compare a string against a template mask.☆22Updated 8 years ago
- A minimalistic and flexible templating engine, inspired by Handlebars.☆24Updated last year
- A Twind extension that provides a basic reset for form styles that makes form elements easy to override with utilities.☆11Updated 4 years ago
- A registry for import.meta properties☆24Updated 10 months ago
- minimal fork of @babel/highlight 🌈☆28Updated last year
- A JSX transformer with extra hints around interpolations and outer templates.☆14Updated 2 years ago
- 🪄 Type level ESQuery selector parser and matcher!☆16Updated last year
- A way to create persistent fragments☆12Updated 3 years ago
- Migrate full-fledged TypeScript to TypeScript with erable type annotations only. Compatible with the type annotation proposal as well as …☆17Updated 4 months ago
- A fast parser and processor for .gitignore files.☆57Updated last year
- Take care of your spawn()☆84Updated 7 months ago
- Expand deeply nested values from an object, with support for advanced features☆17Updated 2 years ago
- Analyzing the syntax of top npm packages☆19Updated 9 months ago