Thanks to visit codestin.com
Credit goes to github.com

Skip to content

1.0.7

Choose a tag to compare

@apsonex apsonex released this 13 Jul 19:34
· 9 commits to master since this release

πŸ”– 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.md updated with:
    • New examples for sentenseCase() and capitalizeWords()
    • Complete list of all chainable str methods

πŸ› 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

πŸ”— MIT Licensed by Apsonex Inc.