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 7 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 4 months ago
- A fast parser and processor for .gitignore files.☆58Updated last year
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆13Updated 8 months ago
- An absurdly small glob matcher that packs a punch.☆71Updated last month
- Small, no dependencies, Markdown, HTML, and inline CSS parser. Just 4KB, available as ESM module from CDN.☆25Updated 2 months ago
- A tiny (0.5 kB) decimal type for JavaScript☆51Updated 10 months ago
- Creates a module graph based on a given entrypoint. Supports ESM, monorepos, import attributes, typescript (via a plugin) and is extensib…☆52Updated 4 months ago
- CLI for executing multiple commands in parallel with minimal footprint (~2KB).☆11Updated 3 weeks ago
- A structured clone equivalent able to encode and decode as a buffer.☆43Updated 8 months ago
- Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expres…☆48Updated 10 months ago
- A tiny PEG-like system for building language grammars with regexes.☆22Updated 2 weeks ago
- Abortable and Resolvable Promises.☆55Updated 2 years ago
- A minimalistic and flexible templating engine, inspired by Handlebars.☆23Updated 2 years ago
- Dual module with empty exports for many cases.☆16Updated last year
- Convert a string index to its line and column position☆36Updated 2 months ago
- Render readable & responsive tables in the terminal☆60Updated last week
- 🌐 Interactive glob pattern tester☆30Updated 3 years ago
- Check if the process is running in a Continuous Integration (CI) environment☆36Updated 3 months ago
- 🤠 Functional utilities using object property paths with wildcards and regexps 🌵☆39Updated 3 weeks ago
- The one-stop shop solution for JS Proxies and FFI APIs.☆26Updated 9 months ago
- Incredibly tiny, fast JS tokenizer☆58Updated 2 years ago
- Glob search in constant time thanks to git cache☆25Updated 4 years ago
- A tiny (565 B) JavaScript library to generate permanent color from any string, array or object.☆57Updated 3 weeks ago
- A template literal based ESX proposal☆51Updated last year
- Partial JSON parser extracted from OpenAI's vendored version.☆14Updated 4 months ago
- check if urls are dead or alive☆50Updated last year
- Simple API to create test fixtures on disk☆64Updated last week
- Make presentable errors☆62Updated 2 years ago
- Socket.dev optimized 📦 overrides✨☆35Updated this week
- A very small and very fast spec compliant css lexer☆49Updated 2 years ago