mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 00:36:16 -04:00
renamed function for clarity
This commit is contained in:
parent
98ef5d0110
commit
a809321b63
4 changed files with 9 additions and 11 deletions
|
@ -73,7 +73,7 @@
|
|||
"CBOR Encode",
|
||||
"CBOR Decode",
|
||||
"YAML to JSON",
|
||||
"Beautify YAML",
|
||||
"JSON to YAML",
|
||||
"Caret/M-decode",
|
||||
"Rison Encode",
|
||||
"Rison Decode",
|
||||
|
|
|
@ -9,17 +9,17 @@ import OperationError from "../errors/OperationError.mjs";
|
|||
import YAML from "yaml";
|
||||
|
||||
/**
|
||||
* Beautify YAML operation
|
||||
* JSON to YAML operation
|
||||
*/
|
||||
class BeautifyYAML extends Operation {
|
||||
class JSONtoYAML extends Operation {
|
||||
|
||||
/**
|
||||
* BeautifyYAML constructor
|
||||
* JSONtoYAML constructor
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.name = "Beautify YAML";
|
||||
this.name = "JSON to YAML";
|
||||
this.module = "Default";
|
||||
this.description = "Format a JSON object into YAML";
|
||||
this.infoURL = "https://en.wikipedia.org/wiki/YAML";
|
||||
|
@ -43,4 +43,4 @@ class BeautifyYAML extends Operation {
|
|||
|
||||
}
|
||||
|
||||
export default BeautifyYAML;
|
||||
export default JSONtoYAML;
|
Loading…
Add table
Add a link
Reference in a new issue