token-wizard/scripts/addExtendedCode.js

13 lines
294 B
JavaScript

var fs = require("fs");
function addExtendedCode(extensionFilePath, content, cb) {
fs.readFile(extensionFilePath, "utf8", function(err, extendedContent) {
if (err) {
return cb(err);
}
content = content + extendedContent;
cb(null, content);
});
}
module.exports = addExtendedCode;