Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 992 Bytes

File metadata and controls

22 lines (15 loc) · 992 Bytes

Module: lib.str

README -> API Index -> Modules Index -> lib.str

Source: src/lib/str/index.js

String coercion and lightweight text utility helpers.

Exported Functions

  • is - Determine whether a value is a string primitive.
  • lc - Lowercase helper with optional forced coercion.
  • to - Coerce a value to a string (legacy-safe, normalized).
  • stripComments - Strip JavaScript-style comments from source text.
  • countChars - Counts the total occurrences of one or more characters in a string.
  • interp - Interpolate ${...} tokens with hash/eval resolution modes.

Related