mirror of
https://github.com/gchq/CyberChef.git
synced 2025-06-14 10:14:53 -04:00
Create constructor
This commit is contained in:
parent
1ca9f23e47
commit
3cd45c5f68
1 changed files with 27 additions and 1 deletions
|
@ -10,6 +10,32 @@ import Operation from "../Operation.mjs";
|
||||||
/**
|
/**
|
||||||
* Line Break operation
|
* Line Break operation
|
||||||
*/
|
*/
|
||||||
class LineBreak extends Operation {}
|
class LineBreak extends Operation {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LineBreak constructor
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
|
||||||
|
this.name = "Line Break";
|
||||||
|
this.module = "Default";
|
||||||
|
this.description = "Breaks the input text every <code>n</code> characters.";
|
||||||
|
this.inputType = "ArrayBuffer";
|
||||||
|
this.outputType = "string";
|
||||||
|
this.args = [
|
||||||
|
{
|
||||||
|
"name": "Line break width",
|
||||||
|
"type": "number",
|
||||||
|
"value": 16,
|
||||||
|
"min": 1
|
||||||
|
}, {
|
||||||
|
"name": "Remove leading whitespace",
|
||||||
|
"type": "boolean",
|
||||||
|
"value": false
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default LineBreak;
|
export default LineBreak;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue