slugify

Slugify a string

MIT License

Downloads
4.2M
Stars
2.5K
Committers
19

Bot releases are hidden (Show)

slugify - Latest Release

Published by sindresorhus over 1 year ago

  • Improve compatibility with partial strings

https://github.com/sindresorhus/slugify/compare/v2.2.0...v2.2.1

slugify -

Published by sindresorhus over 1 year ago

  • Add preserveCharacters option (#70) f235b34
  • Remove contractions and possessives (#71) 48a9112

https://github.com/sindresorhus/slugify/compare/v2.1.1...v2.2.0

slugify -

Published by sindresorhus about 2 years ago

  • Fix handling of plural acronyms (#69) 1aaea23

https://github.com/sindresorhus/slugify/compare/v2.1.0...v2.1.1

slugify -

Published by sindresorhus over 3 years ago

slugify -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 12498c9
  • This package is now pure ESM. Please read this.
  • slugify.counter moved to a named export slugifyWithCounter

https://github.com/sindresorhus/slugify/compare/v1.1.0...v2.0.0

slugify -

Published by sindresorhus over 4 years ago

  • Add support for empty separator (#53) d7bf7cc

https://github.com/sindresorhus/slugify/compare/v1.0.0...v1.1.0

slugify -

Published by sindresorhus over 4 years ago

Breaking

  • Slightly change how camel-cased words are slugified (#45) 1be97b4

Improvements

  • Add counter for multiple occurences (#46) 9e1ec95

https://github.com/sindresorhus/slugify/compare/v0.11.0...v1.0.0

slugify -

Published by sindresorhus over 4 years ago

  • Add leading underscore option (#43) 9a78d8f

https://github.com/sindresorhus/slugify/compare/v0.10.0...v0.10.1

slugify -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 a67fb07

Breaking for TypeScript users

  • Only use a CommonJS export for the TypeScript definition 4835efa
    • You need to change import slugify from 'slugify'; to import slugify = require('slugify');

Enhancements

  • Correctly handle capitalized words (#36) 9122e57
  • Add Armenian characters (#29) 5220d93

https://github.com/sindresorhus/slugify/compare/v0.9.1...v0.10.0

slugify -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#27) 2f37f26

https://github.com/sindresorhus/slugify/compare/v0.9.0...v0.9.1

slugify -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8

Enhancements:

  • Add TypeScript definition (#23) cc2e110

https://github.com/sindresorhus/slugify/compare/v0.8.0...v0.9.0

slugify -

Published by sindresorhus almost 6 years ago

  • Add languages Persian, Pashto and Urdu (#22) 2491754
slugify -

Published by sindresorhus almost 6 years ago

  • Add support for Turkish (#20) 0e10e37
slugify -

Published by sindresorhus almost 6 years ago

  • Add decamelize option. acc5f45
  • Add support for Romanian. 45fa8e9
  • Add support for Russian. 3616636
  • Add support for Arabic. 1ef647e
  • Add support for Vietnamese. 43c2f5d
  • Transliterate German umlauts. d484ea9
slugify -

Published by sindresorhus almost 6 years ago

Breaking:

  • Do custom replacements as the first transformation. 1edd655
    This means if you want to replace a character and then have it separated by dashes, you need to change customReplacements: [['🦄', 'unicorn']] to customReplacements: [['🦄', ' unicorn ']].

Other:

  • Add lowercase option. 92c603c