版博士V2.0程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

README.md 924 B

123456789101112131415161718192021222324252627282930313233
  1. # Title Case
  2. [![NPM version][npm-image]][npm-url]
  3. [![NPM downloads][downloads-image]][downloads-url]
  4. [![Bundle size][bundlephobia-image]][bundlephobia-url]
  5. > Transform a string into [title case](https://en.wikipedia.org/wiki/Letter_case#Title_case) following English rules.
  6. ## Installation
  7. ```
  8. npm install title-case --save
  9. ```
  10. ## Usage
  11. ```js
  12. import { titleCase } from "title-case";
  13. titleCase("string"); //=> "String"
  14. titleCase("follow step-by-step instructions"); //=> "Follow Step-by-Step Instructions"
  15. ```
  16. ## License
  17. MIT
  18. [npm-image]: https://img.shields.io/npm/v/title-case.svg?style=flat
  19. [npm-url]: https://npmjs.org/package/title-case
  20. [downloads-image]: https://img.shields.io/npm/dm/title-case.svg?style=flat
  21. [downloads-url]: https://npmjs.org/package/title-case
  22. [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/title-case.svg
  23. [bundlephobia-url]: https://bundlephobia.com/result?p=title-case