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

Ability to create custom instances #33

Open
sjwalker189 opened this issue Jun 11, 2018 · 2 comments
Open

Ability to create custom instances #33

sjwalker189 opened this issue Jun 11, 2018 · 2 comments

Comments

@sjwalker189
Copy link

It would be nice to be able to create individual instances of slugify like the following:

import slugify from 'slugify'

const urlify = slugify.create({ /* options */ })

This would be useful in larger projects where there may be slightly different use cases that are used often. This would be more preferable than remembering the regex each time, or writing a custom wrapper.

Cheers

@simov
Copy link
Owner

simov commented Jun 13, 2018

That's a good idea 👍

@mymattcarroll
Copy link

We could really use this, do you welcome pull requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants