constant-case
Constant case a string
Last updated 10 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm
$ cnpm install constant-case 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.4                                ...           latest (5 years ago)

4 Versions

  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           6 years ago
  • 2.0.0                                ...           9 years ago
  • 1.1.2                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org