text-dot-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Dot Case

NPM version NPM downloads Bundle size

Transform into a lower case text with a period between words

Installation

npm install text-dot-case --save

Usage

import { dotCase } from "text-dot-case";
 
dotCase("string"); //=> "string"
dotCase("dot.case"); //=> "dot.case"
dotCase("PascalCase"); //=> "pascal.case"
dotCase("camelCase"); //=> "camel.case"
dotCase("version 1.2.3"); //=> "version.1.2.3"

The function also accepts options.

License

MIT

/text-dot-case/

    Package Sidebar

    Install

    npm i text-dot-case

    Weekly Downloads

    2,728

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • dimetrix