renamed function for clarity

This commit is contained in:
CCarpo 2025-03-10 20:55:35 +01:00
parent 98ef5d0110
commit a809321b63
4 changed files with 9 additions and 11 deletions

View file

@ -73,7 +73,7 @@
"CBOR Encode",
"CBOR Decode",
"YAML to JSON",
"Beautify YAML",
"JSON to YAML",
"Caret/M-decode",
"Rison Encode",
"Rison Decode",

View file

@ -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;