UNPKG

constant-case

Version:

Transform into upper case string with an underscore between words

27 lines (17 loc) 503 B
# Constant Case > Transform into upper case string with an underscore between words. ## Installation ``` npm install constant-case --save ``` ## Usage ```js import { constantCase } from "constant-case"; constantCase("string"); //=> "STRING" constantCase("dot.case"); //=> "DOT_CASE" constantCase("PascalCase"); //=> "PASCAL_CASE" constantCase("version 1.2.10"); //=> "VERSION_1_2_10" ``` The function also accepts [`options`](https://github.com/blakeembrey/change-case#options). ## License MIT