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 3 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.☆41Updated 3 weeks ago
- Resolve values based on a JSON schema. Supports conditionals and composition. Useful for configuration, preferences, LLM chat completions…☆14Updated 3 months ago
- Add context awareness to your apps and frameworks by safely evaluating user-defined conditional expressions. Useful for evaluating expres…☆46Updated 6 months ago
- Small, no dependencies, Markdown, HTML, and inline CSS parser. Just 4KB, available as ESM module from CDN.☆22Updated last week
- An absurdly small glob matcher that packs a punch.☆50Updated last month
- Glob search in constant time thanks to git cache☆26Updated 4 years ago
- A structured clone equivalent able to encode and decode as a buffer.☆43Updated 4 months ago
- A little CLI for making TypeScript packages, cleanly and effortlessly.☆23Updated last year
- Expand deeply nested values from an object, with support for advanced features☆17Updated this week
- A fast parser and processor for .gitignore files.☆57Updated last year
- Displays the execution time for Node.js modules loading by hooking require() calls☆23Updated 3 years ago
- A simple promisified recursive readdir function, with support for globs and .gitignore files.☆13Updated 6 months ago
- Creates a module graph based on a given entrypoint. Supports ESM, monorepos, import attributes, typescript (via a plugin) and is extensib…☆50Updated 3 weeks ago
- Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.☆43Updated 2 years ago
- Convert a string index to its line and column position☆33Updated 4 months ago
- Gracefully restore the CLI cursor on exit☆38Updated last year
- Partial JSON parser extracted from OpenAI's vendored version.☆13Updated 3 weeks ago
- Specification for the .env configuration file format.☆23Updated 6 months ago
- Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance featu…☆78Updated 5 months ago
- A CLI spinner in under 1kB☆16Updated last year
- ☆33Updated 3 years ago
- 🌐 Interactive glob pattern tester☆30Updated 3 years ago
- utility to inspect nodes☆30Updated 8 months ago
- Dual module with empty exports for many cases.☆16Updated 9 months ago
- A tiny PEG-like system for building language grammars with regexes.☆21Updated 5 months ago
- Info on the properties and attributes of the web platform☆42Updated 3 months ago
- Numbers with precision and a unit for JavaScript☆27Updated last week
- A minimalistic and flexible templating engine, inspired by Handlebars.☆24Updated last year
- A fast, and essential, noop/plain JS template literal tag.☆21Updated last year
- Glob to regular expression with support for extended globs.☆75Updated 11 months ago