版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 996 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Path Case
  2. [![NPM version][npm-image]][npm-url]
  3. [![NPM downloads][downloads-image]][downloads-url]
  4. [![Bundle size][bundlephobia-image]][bundlephobia-url]
  5. > Transform into a lower case string with slashes between words.
  6. ## Installation
  7. ```
  8. npm install path-case --save
  9. ```
  10. ## Usage
  11. ```js
  12. import { pathCase } from "path-case";
  13. pathCase("string"); //=> "string"
  14. pathCase("dot.case"); //=> "dot/case"
  15. pathCase("PascalCase"); //=> "pascal/case"
  16. pathCase("version 1.2.10"); //=> "version/1/2/10"
  17. ```
  18. The function also accepts [`options`](https://github.com/blakeembrey/change-case#options).
  19. ## License
  20. MIT
  21. [npm-image]: https://img.shields.io/npm/v/path-case.svg?style=flat
  22. [npm-url]: https://npmjs.org/package/path-case
  23. [downloads-image]: https://img.shields.io/npm/dm/path-case.svg?style=flat
  24. [downloads-url]: https://npmjs.org/package/path-case
  25. [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/path-case.svg
  26. [bundlephobia-url]: https://bundlephobia.com/result?p=path-case