1. hyphenate
A simple helper function that hyphenates phrases.
hyphenate
Package: hyphenate
Created by: vilic
Last modified: Tue, 16 Jan 2024 21:55:42 GMT
Version: 0.2.5
License: MIT
Downloads: 9,341
Repository: https://github.com/vilic/hyphenate

Install

npm install hyphenate
yarn add hyphenate

Hyphenate Build Status

A simple helper function that splits and then joins words back together.

Install

 yarn add hyphenate

Usage

 import hyphenate from 'hyphenate';

hyphenate('hello, world!'); // "hello-world"
hyphenate('JSONDataItems'); // "JSON-Data-Items"
hyphenate('JSONDataItems', {lowerCase: true}); // "json-data-items"

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