selfcarebot/node_modules/constant-case
2023-03-30 06:02:54 +00:00
..
dist Added main bot functionality 2023-03-30 06:02:54 +00:00
dist.es2015 Added main bot functionality 2023-03-30 06:02:54 +00:00
LICENSE Added main bot functionality 2023-03-30 06:02:54 +00:00
package.json Added main bot functionality 2023-03-30 06:02:54 +00:00
README.md Added main bot functionality 2023-03-30 06:02:54 +00:00

Constant Case

NPM version NPM downloads Bundle size

Transform into upper case string with an underscore between words.

Installation

npm install constant-case --save

Usage

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.

License

MIT