text-path-case

Convert into a lower case text with slashes between words

Usage no npm install needed!

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

README

Path Case

NPM version NPM downloads Bundle size

Transform into a lower case text with slashes between words.

Installation

npm install text-path-case --save

Usage

import { pathCase } from "text-path-case";

pathCase("string"); //=> "string"
pathCase("dot.case"); //=> "dot/case"
pathCase("PascalCase"); //=> "pascal/case"
pathCase("camelCase"); //=> "camel/case"
pathCase("version 1.2.10"); //=> "version/1/2/10"

The function also accepts options.

License

MIT