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

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7M
increased by11.25%
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 30 Sep 2023

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