Socket
Socket
Sign inDemoInstall

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

Constant case a string


Version published
Weekly downloads
6.7M
increased by8.29%
Maintainers
1
Weekly downloads
 
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 25 Mar 2014

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