1. titleize
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
titleize
Package: titleize
Created by: sindresorhus
Last modified: Thu, 31 Aug 2023 15:32:24 GMT
Version: 4.0.0
License: MIT
Downloads: 15,023,281
Repository: https://github.com/sindresorhus/titleize

Install

npm install titleize
yarn add titleize

titleize

Capitalize every word in a string: unicorn cakeUnicorn Cake

Install

 npm install titleize

Usage

 import titleize from 'titleize';

titleize('foo bar');
//=> 'Foo Bar'

titleize('foo-bar');
//=> 'Foo-Bar'
  • camelcase - Convert a dash/dot/underscore/space separated string to camelcase

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin