JSPM

@abdulrehman7007/string-utils-js

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q31117F
  • License ISC

A comprehensive string manipulation library for JavaScript.

Package Exports

  • @abdulrehman7007/string-utils-js
  • @abdulrehman7007/string-utils-js/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@abdulrehman7007/string-utils-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

String Utils

npm version Build Status License

A comprehensive string manipulation library for JavaScript, providing a variety of functions for common string operations such as capitalization, camel casing, snake casing, and more.

Features

  • capitalize: Capitalizes the first letter of a string.
  • camelCase: Converts a string to camelCase.
  • snakeCase: Converts a string to snake_case.
  • kebabCase: Converts a string to kebab-case.
  • titleCase: Converts a string to Title Case.
  • reverseString: Reverses the characters in a string.

Installation

Install the package via npm:

npm install @abdulrehman7007/string-utils-js

npm-string-package Usage

const {
  capitalize,
  camelCase,
  snakeCase,
  kebabCase,
  titleCase,
  reverseString,
} = require("@abdulrehman7007/string-utils-js");

// Example usage of string-utils functions
const capitalizedString = capitalize("hello world"); // 'Hello world'
const camelCasedString = camelCase("hello world"); // 'helloWorld'
const snakeCasedString = snakeCase("hello world"); // 'hello_world'
const kebabCasedString = kebabCase("hello world"); // 'hello-world'
const titleCasedString = titleCase("hello world"); // 'Hello World'
const reversedString = reverseString("hello world"); // 'dlrow olleh'