Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

text-dot-case

idimetrix13.4kMIT1.0.2TypeScript support: included

Convert into a lower case text with a period between words

dot, case, dotcase, dot-case, period, full, stop, convert, transform

readme

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