Socket
Socket
Sign inDemoInstall

swirl

Package Overview
Dependencies
45
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    swirl

CLI for testing HTTP servers using unexpected-http


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
8.94 MB
Created
Weekly downloads
 

Readme

Source

swirl

CLI for testing HTTP servers using a curl-like syntax. Powered by Unexpected and unexpected-http.

NPM version Build Status Dependency Status

This basic selection of curl switches has been implemented, but nowhere near all of them:

  • --header, -H
  • --upload-file, -T
  • --data, --data-ascii, -d
  • --method, -X
  • --cookie, -b
  • --verbose, -v
  • --silent, -s
  • --cert
  • --key
  • --cacert
  • --insecure, -k

File an issue if you need one that's not implemented.

Additionally, these switches are supported and/or work differently from regular curl:

  • --html: Render the output in HTML format. My primary use case for this is getting colored output into my clipboard like this: swirl --html -v <url> | xclip -i -selection clipboard -t text/html
  • --plugin <path>: Install the given Unexpected plugin
  • -v: Dump the entire request and response, even if the expectations aren't met. "In spirit" this is the same as curl -v, but the format is quite different

Diff example

Keywords

FAQs

Last updated on 02 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc