insomnia-plugin-copy-to-clipboard
v0.1.2
Published
This is a simple insomnia plugin to copy the response or property value to the clipboard.
Readme
Copy response or property value to the clipboard
This is a simple insomnia plugin to copy the response or property value to the clipboard.
Pre-requisites
This plugin requires Insomnia, the Open Source API client.
Installation
Start Insomnia,
Click "Application" -> "Preferences" and choose the "Plugins" tab,
Enter
insomnia-plugin-copy-to-clipboardand click "Install Plugin".
Close the dialog.
Usage
Go to a request in any collection,
Add a new query item,
Press Cmd/Ctrl + Space and choose "Copy To Clipboard",
Click the "Copy To Clipboard" tag,
In "Property to copy" set the property you want to copy, or leave it blank to copy the entire response,
Click done and send the request.

Limitations
- The response hook runs for any HTTP success status (
2XX), not only200 - Property paths (for example,
data.user.id) require a JSON response body - Missing properties show an error alert and stop copying
- Copied values are converted to text (
stringas-is, scalars viaString(...), objects/arrays viaJSON.stringify(...))
Contributing
In case you want to improve it, PRs are welcome! :)
