This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/graphql-types/node_modules/path-case
2021-03-09 19:44:13 +01:00
..
dist add configured graphql-codegen 2021-03-09 19:44:13 +01:00
dist.es2015 add configured graphql-codegen 2021-03-09 19:44:13 +01:00
LICENSE add configured graphql-codegen 2021-03-09 19:44:13 +01:00
package.json add configured graphql-codegen 2021-03-09 19:44:13 +01:00
README.md add configured graphql-codegen 2021-03-09 19:44:13 +01:00

Path Case

NPM version NPM downloads Bundle size

Transform into a lower case string with slashes between words.

Installation

npm install path-case --save

Usage

import { pathCase } from "path-case";

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

The function also accepts options.

License

MIT