UNPKG

stringzy

Version:

A versatile string manipulation library providing a range of text utilities for JavaScript and Node.js applications.

10 lines (9 loc) 270 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.characterCount = characterCount; function characterCount(str) { if (typeof str !== "string") { throw new TypeError("Input must be a string"); } return str.length; }