sindresorhus / filenamify

Convert a string to a valid safe filename
MIT License
489 stars 26 forks source link

Make max filename size configurable #5

Closed CaffeinatedCM closed 5 years ago

CaffeinatedCM commented 6 years ago

My use case requires longer filenames, but currently, that isn't configurable.

sindresorhus commented 6 years ago

What's the use-case? 100 is already a lot.

WolfieZero commented 5 years ago

I think most OS are limited to 255 characters?

While I do agree anything more than 100 is a lot, I think the limit of 100 is some-what opinionated. It would be good to set a hard limit of 255 (assuming I'm correct) and a configurable default of 100. Best of both worlds then.