no-case

  • Version 4.0.0
  • Published
  • 8.18 kB
  • No dependencies
  • MIT license

Install

npm i no-case
yarn add no-case
pnpm add no-case

Overview

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

Index

Functions

function noCase

noCase: (input: string, options?: Options) => string;
  • Convert any string into a lower case string with spaces between words.

function split

split: (input: string, options?: SplitOptions) => string[];
  • Split any cased input strings into an array of words.

function toLower

toLower: (locale: Locale) => (input: string) => string;

    function toUpper

    toUpper: (locale: Locale) => (input: string) => string;

      Interfaces

      interface Options

      interface Options extends SplitOptions {}

        property locale

        locale?: Locale;

          interface SplitOptions

          interface SplitOptions {}

            property separateNumbers

            separateNumbers?: boolean;

              Type Aliases

              type Locale

              type Locale = string[] | string | false | undefined;

                Package Files (1)

                Dependencies (0)

                No dependencies.

                Dev Dependencies (0)

                No dev dependencies.

                Peer Dependencies (0)

                No peer dependencies.

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/no-case.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/no-case)
                • HTML
                  <a href="https://www.jsdocs.io/package/no-case"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>