Creates a function called slugify()
and exposes it to global window
object. you can call the function, and get the slug:
slugify('متن فارسی من با پشتیبانی از همه چیز')
will result in: متن-فارسی-من-با-پشتیبانی-از-همه-چیز
All credits goes to eyadof, I've just updated the package and did a little clean up to make it work for my needs.