mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 08:46:19 -04:00
Renamed JSON to Yaml to Beautify JSON
This commit is contained in:
parent
23763363ba
commit
7353315baa
5 changed files with 12 additions and 12 deletions
|
@ -65,7 +65,7 @@
|
|||
"CBOR Encode",
|
||||
"CBOR Decode",
|
||||
"YAML to JSON",
|
||||
"JSON to YAML"
|
||||
"Beatufiy YAML"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -9,19 +9,19 @@ import OperationError from "../errors/OperationError.mjs";
|
|||
import YAML from "yaml";
|
||||
|
||||
/**
|
||||
* JSON to YAML operation
|
||||
* Beautify YAML operation
|
||||
*/
|
||||
class JSONToYAML extends Operation {
|
||||
class BeautifyYAML extends Operation {
|
||||
|
||||
/**
|
||||
* JSONToYAML constructor
|
||||
* BeautifyYAML constructor
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.name = "JSON to YAML";
|
||||
this.name = "Beautify YAML";
|
||||
this.module = "Default";
|
||||
this.description = "Converts a JSON into a YAML";
|
||||
this.description = "Format a JSON object into YAML";
|
||||
this.infoURL = "https://en.wikipedia.org/wiki/YAML";
|
||||
this.inputType = "JSON";
|
||||
this.outputType = "string";
|
||||
|
@ -43,4 +43,4 @@ class JSONToYAML extends Operation {
|
|||
|
||||
}
|
||||
|
||||
export default JSONToYAML;
|
||||
export default BeautifyYAML;
|
|
@ -20,7 +20,7 @@ class YAMLToJSON extends Operation {
|
|||
|
||||
this.name = "YAML to JSON";
|
||||
this.module = "Default";
|
||||
this.description = "Converts a YAML to JSON";
|
||||
this.description = "Convert YAML to JSON";
|
||||
this.infoURL = "https://en.wikipedia.org/wiki/YAML";
|
||||
this.inputType = "string";
|
||||
this.outputType = "JSON";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue