text-dot-case

Convert into a lower case text with a period between words

Usage no npm install needed!

<script type="module">
  import textDotCase from 'https://cdn.skypack.dev/text-dot-case';
</script>

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