Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

constant-case

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constant-case

Transform into upper case string with an underscore between words

  • 3.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is constant-case?

The constant-case npm package is used to convert strings into constant case format, typically used for defining constants in programming. This format involves converting all letters to uppercase and replacing spaces and other special characters with underscores.

What are constant-case's main functionalities?

String Conversion to Constant Case

Converts a given string into constant case, making all characters uppercase and replacing spaces and special characters with underscores. Useful for creating identifiers in code that are typically constants.

const constantCase = require('constant-case');

console.log(constantCase('string to convert')); // 'STRING_TO_CONVERT'

Other packages similar to constant-case

Keywords

FAQs

Package last updated on 19 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc