Hacker News new | past | comments | ask | show | jobs | submit login

So you're running eval on your config data? Not feasible for external data.



In module context. Then

    var config = require("settings.js");
My reasoning is that if you have access to change config or source code, all bets are off.

Or you could parse the config in a separate vm and import the result as JSON.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: