sindresorhus / slugify

Slugify a string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing of '/' character

naveensky opened this issue · comments

Hi,

Does the library remove / character from the path? I want to move certain pages as a sub-directory of main path, like integrations/abc and then have an original integrations page as well.

Is it possible with slufigy?

Slug convert a string into a valid URL identifier.

const string = 'abc/d&f/ghi#home@user/' 
const output = string.split('/').map(slugify).join('/')