Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: toKebabCase / dasherize / slugify #17

Open
vorillaz opened this issue Oct 20, 2019 · 2 comments
Open

Feature request: toKebabCase / dasherize / slugify #17

vorillaz opened this issue Oct 20, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@vorillaz
Copy link
Contributor

Converts the input text to kebab case.

Example usage

import toKebabCase from '@plexis/to-kebab-case';

toKebabCase('Cool');
// => 'cool'

toKebabCase('cool mate');
// => 'cool-mate'

toKebabCase('Hey how are you today?');
// => 'hey-how-are-you-today'

toKebabCase('camelCase');
// => 'camel-case'

toKebabCase('PascalCase');
// => pascal-case

Aliases

import toKebabCase from '@plexis/to-kebab-case';
import {toKebabCase, dasherize, slugify} from 'plexis';
@vorillaz vorillaz added the enhancement New feature or request label Oct 20, 2019
@aceol
Copy link

aceol commented Oct 21, 2019

Hi, I'm creating a PR, that's an interesting case!

@vorillaz
Copy link
Contributor Author

@aceol I will review it ASAP, thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants