v0.16.0 - Text Processing Utilities
What's New
π New Functions (3)
extractEntities(text: string): ExtractedEntities
Extract various entities from text including:
- π§ Email addresses
- π URLs
- π·οΈ Social media mentions (@username)
- #οΈβ£ Hashtags
- π± Phone numbers
- π Dates (ISO, US, EU formats)
- π΅ Prices
smartSplit(text: string): string[]
Intelligently split text into sentences with:
- Abbreviation handling (Dr., Mr., Mrs., etc.)
- Decimal number preservation ($10.50)
- Ellipsis detection
- Special case handling (U.S.A., M.I.T.)
humanizeList(items: unknown[], options?: HumanizeListOptions)
Convert arrays to human-readable lists:
- Oxford comma support
- Custom conjunctions (and/or)
- Quote wrapping
- Null/undefined filtering
π Changes
- Bundle size limit increased from 6.5KB to 7.5KB
- Total function count: 44
- All functions maintain < 1.2KB individual size
π¦ Install
```bash
npm install nano-string-utils@0.16.0
```
π Full Changelog
See CHANGELOG.md