1.0.7
π Release: 1.0.7 β Enhanced String Utilities & Improvements
β¨ What's New
π‘ String Enhancements (str)
-
β
sentenseCase()
Converts strings like"HELLO_WORLD"or"hello_world"into"Hello World". Ideal for formatting constants, slugs, or identifiers into readable labels. -
β
capitalizeWords()
Capitalizes the first letter of every word:
'make javascript readable'β'Make Javascript Readable' -
π§Ό Internally added
resolveValue()to normalize input across all string methods.
π Updated Documentation
README.mdupdated with:- New examples for
sentenseCase()andcapitalizeWords() - Complete list of all chainable
strmethods
- New examples for
π Fixes & Improvements
- Refactored string methods to consistently handle edge cases and non-string inputs
- Improved reliability and output formatting in various utilities
π¦ Module Highlights
- π‘
str()β Laravel-like chainable string manipulation - πΎ
JsCacheβ localStorage cache with TTL support - π
loadScript/loadStyleβ asset loading with deduplication - π§© DOM helpers β
bodyScrollDisable,isIframe, etc. - π‘
Eventsβ iframe β parent messaging made simple - π
Pipelineβ sync/async task flow utility
π Install or Upgrade
npm install @apsonex/js-utils@latest
# or
yarn add @apsonex/js-utils@latest