parse-aws-s3-presigned-url-tool
v1.0.2
Published
Interactive CLI tool that parses an AWS S3 pre-signed URL and exports it as a Bruno collection, a Postman collection, or a cURL command
Maintainers
Readme
parse-aws-s3-presigned-url-tool
An interactive Node.js CLI tool that parses an AWS S3 pre-signed URL and exports it as a Bruno collection, a Postman collection, or a cURL command you can run directly.
Features
- Interactive prompts – no flags to memorise
- GET mode – keeps all query parameters as URL parameters
- POST mode – converts every query parameter into a multipart form field (HTML entities in values are decoded automatically)
- Bruno output – generates a Bruno collection JSON (
output/bruno-collection.json) - Postman output – generates a Postman Collection v2.1 JSON (
output/postman-collection.json) - cURL output – generates a ready-to-run cURL command (
output/request.sh)
Requirements
- Node.js ≥ 18
Installation
npm installUsage
npm startThe CLI will ask you three questions:
- URL – paste your AWS S3 pre-signed URL
- Method –
GET(query params) orPOST(multipart form fields) - Format –
Bruno,Postman, orcURL
The generated file is written to the output/ directory in the current working directory.
Running Tests
npm testProject Structure
src/
index.js # Interactive CLI entry point
parser.js # URL parsing and HTML-entity decoding
generators/
bruno.js # Bruno collection generator
postman.js # Postman Collection v2.1 generator
curl.js # cURL command generator
tests/
parser.test.js
generators/
bruno.test.js
postman.test.js
curl.test.js