unicode-default-word-boundary

Split words with Unicode's default word boundary specification

MIT License

Downloads
4.3K
Stars
12
Committers
2
unicode-default-word-boundary - v15.1.2 Latest Release

Published by eddieantonio 4 months ago

What's Changed

Performance

Both split() and findBoundaries() are quite faster than version 15.1.0. Here are the results on my laptop:

> [email protected] benchmarks
> node benches

#split() [15.1.2] x 9.17 ops/sec ±1.62% (28 runs sampled)
#split() [15.1.0] x 1.78 ops/sec ±0.57% (9 runs sampled)
Fastest: #split() [15.1.2] (5.15x speed-up)
#findBoundaries() [15.1.2] x 11.40 ops/sec ±1.43% (33 runs sampled)
#findBoundaries() [15.1.0] x 3.53 ops/sec ±0.39% (13 runs sampled)
Fastest: #findBoundaries() [15.1.2] (3.23x speed-up)

Full Changelog: https://github.com/eddieantonio/unicode-default-word-boundary/compare/v15.1.0...v15.1.2

Package Rankings
Top 8.19% on Npmjs.org
Badges
Extracted from project README
Build status npm