Remove and replace illegal characters in S3 Object Keys
npm install sanitize-s3-objectkeyThis project is heavily inspired by s3-filename.
sh
npm install sanitize-s3-objectkey
`Usage
`js
const sanitize = require('sanitize-s3-objectkey');sanitize('áêīòü'); // aeiou
sanitize('pipes|are|not|valid'); // pipesarenotvalid
sanitize('spaces should be replaced'); // spaces-should-be-replaced
sanitize('spaces should be replaced', '/'); // spaces/should/be/replaced
``For pull requests, make sure to follow the following guidelines:
* Add tests for each new feature and bug fix.
* Follow the existing code style, enforced by eslint.
* Separate unrelated changes into multiple pull requests.