mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Move makeSlug to function
This commit is contained in:
parent
d1cb178be1
commit
00f1f1397c
5 changed files with 17 additions and 30 deletions
9
helpers/slug.js
Normal file
9
helpers/slug.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Universal JS imports only
|
||||
import slugify from 'slugify'
|
||||
|
||||
export function makeSlug ( name ) {
|
||||
return slugify(name, {
|
||||
lower: true,
|
||||
strict: true
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue