Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: greguire
node v10.24.1
version:
master
endpoint
share
tweet
var _greguire = require("greguire"); var greg = path => {return eval(_greguire(path)) } var fs = require("fs"); var variable = "this is the variable's value"; fs.writeFileSync("script.js",`module.exports = () => {console.log("value: "+variable)}`); greg(__dirname+"/script.js")();
Created from: https://npm.runkit.com/greguire
Loading…
no comments
sign in
to comment