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

feat: rewrite as ESM and improve the TypeScript declaration file #14

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

joakimbeng
Copy link
Owner

And a new keepLeadingDash option has been added to the kebabCase function. When set to false it will remove any leading dash from the kebab-cased string, in case the original string starts with a leading uppercase letter. Fixes #7, Closes #12.

BREAKING CHANGE: kebab-case is rewritten in ESM and is not published as CommonJS anymore. If you still need CJS you should stick to the v1 version.

And a new `keepLeadingDash` option has been added to the kebabCase function.
When set to `false` it will remove any leading dash from the kebab-cased string,
in case the original string starts with a leading uppercase letter.
Fixes #7, Closes #12.

BREAKING CHANGE: kebab-case is rewritten in ESM and is not published as CommonJS anymore. If you still need CJS you should stick to the v1 version.
@joakimbeng joakimbeng merged commit cf4c37f into master Jun 28, 2024
2 checks passed
@joakimbeng joakimbeng deleted the esm branch June 28, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Options: to set not to use a leading -
1 participant