Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
b39a7e0
34
branches
Go to file
t
Code
ghost
apps
api
src
lib
organizations
team-slug.ts
Add organizations with teams, policies, transfers and a shared namespace
83bc1c6
16 days ago
6 lines · 260 B
1
import
slugify
from
'
slugify
'
;
2
3
/**
A team's name as it appears in URLs and `@org/team` mentions. Teams have no stored slug, so renaming a team moves its URL.
*/
4
export
function
teamSlug
(
name
5
return
slugify
(
name
6
}
:
string
)
{
,
{
lower
:
true
,
strict
:
true
}
)
;