feat: rename may_execute_* to execute_* (#56)

This commit is contained in:
sigoden
2024-07-03 16:18:32 +08:00
committed by GitHub
parent 970ed06d2b
commit 499b7cdef5
5 changed files with 6 additions and 14 deletions
+9
View File
@@ -0,0 +1,9 @@
/**
* Runs the javascript code in node.js.
* @typedef {Object} Args
* @property {string} code - Javascript code to execute, such as `console.log("hello world")`
* @param {Args} args
*/
exports.run = function run({ code }) {
eval(code);
}