mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
renamed function for clarity
This commit is contained in:
parent
98ef5d0110
commit
a809321b63
4 changed files with 9 additions and 11 deletions
|
@ -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