Moved loads of stuff

This commit is contained in:
2017-02-27 11:17:16 +00:00
parent a96d786e23
commit 2b323470b4
44 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
module.exports = {
name: "Numbers to Elements",
inputs: {
numbers: "Numbers"
},
output: true,
execute: function({numbers}, elem){
return numbers
.split(",")
.map((num)=>(parseInt(num)))
.filter((num)=>(!isNaN(num)))
.map((num)=>(require("./util/elements.js")[num-1]))
.join(",");
},
pageBlock: {
html: "",
js: function(){}
}
}