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

to-space-case

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-space-case

Convert a string to space case.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
725K
decreased by-13.51%
Maintainers
1
Weekly downloads
 
Created

What is to-space-case?

The 'to-space-case' npm package is a utility that converts strings to space case. Space case is a format where words are separated by spaces, and it is useful for creating human-readable strings from various other formats like camelCase, snake_case, etc.

What are to-space-case's main functionalities?

Convert camelCase to space case

This feature converts a camelCase string to space case, making it more readable by separating words with spaces.

const toSpaceCase = require('to-space-case');
const result = toSpaceCase('camelCaseString');
console.log(result); // 'camel case string'

Convert snake_case to space case

This feature converts a snake_case string to space case, replacing underscores with spaces.

const toSpaceCase = require('to-space-case');
const result = toSpaceCase('snake_case_string');
console.log(result); // 'snake case string'

Convert kebab-case to space case

This feature converts a kebab-case string to space case, replacing hyphens with spaces.

const toSpaceCase = require('to-space-case');
const result = toSpaceCase('kebab-case-string');
console.log(result); // 'kebab case string'

Other packages similar to to-space-case

Keywords

FAQs

Package last updated on 21 Jan 2016

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