1. no-case
Transform any case string into a lower case string with a space between each word
no-case
Package: no-case
Created by: blakeembrey
Last modified: Sat, 30 Sep 2023 02:34:42 GMT
Version: 4.0.0
License: MIT
Downloads: 82,317,997
Repository: https://github.com/blakeembrey/change-case

Install

npm install no-case
yarn add no-case

No Case

Transform any case string into a lower case string with a space between each word.
Example: foo_bar => fooBar

Installation

npm install no-case --save

Usage

 import { noCase } from "no-case";

noCase("string"); //=> "string"
noCase("dot.case"); //=> "dot case"
noCase("PascalCase"); //=> "pascal case"
noCase("version 1.2.10"); //=> "version 1 2 10"

Optional options as the second argument:

  • separateNumbers: boolean - Splits numbers apart from letters, e.g. V1 -> v 1.
  • locale: string | false - Lower case according to a specific locale, defaulting to the current system locale.

License

MIT

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code