A helper to make your s3 filenames sane. 😇
some 漢字 ćööł % #fíłéñàmé.jpginto this
Uploading files from client side is part of every software project. But the filenames can be very annoying sometimes which creates many issues especially if you're saving them. S3 bucket keys has some policy about this which if not followed can make your file inaccessible because of invalid keys.
$ npm install s3-filename
const s3Filename = ;;//=> 'some_cool_filename.jpg'
A separator to use when whitespaces are found. The library will collapse all whitespaces to 1 whitespace per group of whitespaces.
MIT © Made with ❤️ & ☕️ by Hamza Baig