Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let js = './../../couchdb/clientes/lists/filtro.js';
- function readListFunction(file) {
- let fs = require('fs');
- let func = 'var listfunc = ' + fs.readFileSync(file) + ';';
- // isto é seguro!
- // jshint -W061
- eval(func);
- return listfunc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement