19 lines
311 B
JavaScript
19 lines
311 B
JavaScript
module.exports = {
|
|
name: "ASCII to Hex",
|
|
inputs: {
|
|
text: "Text"
|
|
},
|
|
output: true,
|
|
execute: function({text}, elem){
|
|
return text
|
|
.split("")
|
|
.map((char)=>(char.charCodeAt(0)))
|
|
.map((int)=>(int.toString(16)))
|
|
.join("");
|
|
},
|
|
pageBlock: {
|
|
html: "",
|
|
js: function(){}
|
|
}
|
|
}
|