Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

no-case

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-case

Transform any case string into a lower case string with a space between each word

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
22M
-16.78%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

no

FAQs

Package last updated on 30 Sep 2023

Did you know?

Socket

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