Socket
Socket
Sign inDemoInstall

constant-case

Package Overview
Dependencies
4
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    constant-case

Constant case a string


Version published
Weekly downloads
5.1M
decreased by-21.66%
Maintainers
1
Created
Weekly downloads
 

Package description

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

Last updated on 12 Jun 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc