froebel
froebel copied to clipboard
fix: Use correct function in example
In the kebab case function example, snake
is used instead. To demonstrate the issue:
~ $ deno
> import { kebab, snake } from "https://deno.land/x/[email protected]/case.ts";
undefined
> snake('fooBar')
"foo_bar"
> kebab('fooBar')
"foo-bar"
The actual example uses snake
but outputs kebab
:
This PR addresses the inconsistency.
Thanks for the PR, good catch!
The README is generated from the JSDoc comments of the exported utilities via a script. So please update the JSDoc comment in case.ts
and run scripts/docs
(for this to work you will first have to run npm install
in the npm
directory). That should create the same change in the README.
Will get to this shortly. I'm wrapping up a move. 👍 🚚 💨
fixed by b43e822