版博士V2.0程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

12345678910111213141516171819202122232425262728293031323334353637
  1. # Constant 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 upper case string with an underscore between words.
  6. ## Installation
  7. ```
  8. npm install constant-case --save
  9. ```
  10. ## Usage
  11. ```js
  12. import { constantCase } from "constant-case";
  13. constantCase("string"); //=> "STRING"
  14. constantCase("dot.case"); //=> "DOT_CASE"
  15. constantCase("PascalCase"); //=> "PASCAL_CASE"
  16. constantCase("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/constant-case.svg?style=flat
  22. [npm-url]: https://npmjs.org/package/constant-case
  23. [downloads-image]: https://img.shields.io/npm/dm/constant-case.svg?style=flat
  24. [downloads-url]: https://npmjs.org/package/constant-case
  25. [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/constant-case.svg
  26. [bundlephobia-url]: https://bundlephobia.com/result?p=constant-case