Socket
Socket
Sign inDemoInstall

@minabadrous/package-3

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @minabadrous/package-3

This package provides a set of utility functions to manipulate and format strings in various common formats such as CamelCase, Capitalize, LowerCase, UpperCase, SnakeCase, and KebabCase. These functions can be used in JavaScript and TypeScript projects to


Version published
Weekly downloads
1
Maintainers
1
Install size
5.94 kB
Created
Weekly downloads
 

Readme

Source

String Utility Functions

This package provides a set of utility functions to manipulate and format strings in various common formats such as CamelCase, Capitalize, LowerCase, UpperCase, SnakeCase, and KebabCase. These functions can be used in JavaScript and TypeScript projects to facilitate the handling of text data.

Installation

You can install this package using npm:

npm install your-package-name

Or using yarn:

yarn add your-package-name

Replace your-package-name with the actual name of your package.

Usage

After installation, you can import and use the string utility functions in your project like so:

import { CamelCase, Capitalize, LowerCase, UpperCase, SnakeCase, KebabCase } from 'your-package-name';

console.log(CamelCase('hello-world')); // 'helloWorld'
console.log(Capitalize('hello')); // 'Hello'
console.log(LowerCase('HELLO')); // 'hello'
console.log(UpperCase('hello')); // 'HELLO'
console.log(SnakeCase('HelloWorld')); // 'hello_world'
console.log(KebabCase('HelloWorld')); // 'hello-world'

Functions

  • CamelCase(str: string): string Converts a string to CamelCase.

  • Capitalize(str: string): string Converts the first character of a string to uppercase.

  • LowerCase(str: string): string Converts all characters in a string to lowercase.

  • UpperCase(str: string): string Converts all characters in a string to uppercase.

  • SnakeCase(str: string): string Converts a string to SnakeCase.

  • KebabCase(str: string): string Converts a string to KebabCase.

Contributing

Contributions are welcome! Please feel free to submit a pull request or create an issue if you have any suggestions, questions, or bug reports.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Last updated on 12 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc