https://github.com/pindlebot/safe-s3-key
https://github.com/pindlebot/safe-s3-key
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pindlebot/safe-s3-key
- Owner: pindlebot
- Created: 2018-10-05T10:24:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-29T00:26:40.000Z (over 7 years ago)
- Last Synced: 2025-02-03T04:44:44.376Z (over 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## safe-s3-key
### Pupose
Given a string, return a string that can be safely used as an S3 key.
AWS S3 prohibits the use of certain special characters. This package strips unsafe characters.
### Installation
```bash
npm i safe-s3-key
```
### Usage
```js
require('safe-s3-key')('foo&$@=;:+ ,?bar')
// => foobar
```