版博士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.

пре 1 година
12345678910111213141516171819202122232425262728293031323334353637
  1. # Header 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 dash separated string of capitalized words.
  6. ## Installation
  7. ```
  8. npm install header-case --save
  9. ```
  10. ## Usage
  11. ```js
  12. import { headerCase } from "header-case";
  13. headerCase("string"); //=> "String"
  14. headerCase("dot.case"); //=> "Dot-Case"
  15. headerCase("PascalCase"); //=> "Pascal-Case"
  16. headerCase("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/header-case.svg?style=flat
  22. [npm-url]: https://npmjs.org/package/header-case
  23. [downloads-image]: https://img.shields.io/npm/dm/header-case.svg?style=flat
  24. [downloads-url]: https://npmjs.org/package/header-case
  25. [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/header-case.svg
  26. [bundlephobia-url]: https://bundlephobia.com/result?p=header-case