Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kovee98/insomnia-plugin-stringify
A simple json body value stringifier for Insomnia
https://github.com/kovee98/insomnia-plugin-stringify
Last synced: 21 days ago
JSON representation
A simple json body value stringifier for Insomnia
- Host: GitHub
- URL: https://github.com/kovee98/insomnia-plugin-stringify
- Owner: Kovee98
- Created: 2022-08-21T13:13:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T13:15:10.000Z (over 2 years ago)
- Last Synced: 2024-11-08T06:28:18.362Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# insomnia-plugin-stringify
## Overview
This plugin is a simple stringifier built because of Firebase's restrictions on data messages. Any key in the json body that contains `.stringify` will be stringified before being sent on. `.stringify` is not kept in the key name in the final json body.## Install
### One-Click installation
1. Go to [http://insomnia.rest/plugins/insomnia-plugin-stringify](http://insomnia.rest/plugins/insomnia-plugin-stringify)
2. Click the **"Install plugin"** button.
3. Click **"Open Insomnia"** and **"Install"**### Install from plugins tab
1. Open Insomnia
2. Go to Application > Preferences > Plugins
3. Enter `insomnia-plugin-stringify`
4. Click **"Install Plugin"**## Usage
With the plugin installed and enabled, just add `.stringify` to the end of any key whose value you'd like to stringify.Ex:
```json
{
"person":{
"id": "1234456",
"data": {
"name": "joe",
"job": "doctor",
"age": 25,
"payload.stringify": {
"hello": "world",
"insomnia": "plugin",
"number": 1
}
}
}
}
```gets turned into
```json
{
"person":{
"id": "1234456",
"data": {
"name": "joe",
"job": "doctor",
"age": 25,
"payload": "{\"hello\":\"world\",\"insomnia\":\"plugin\",\"number\":1}"
}
}
}
```Note: `.stringify` is not kept in the key after stringification.