MCPcopy
hub / github.com/kimmobrunfeldt/progressbar.js / insertBanner

Function insertBanner

tools/release.js:209–220  ·  view source on GitHub ↗
(files, banner)

Source from the content-addressed store, hash-verified

207}
208
209function insertBanner(files, banner) {
210 status('Insert banner to', files.length, 'files');
211 if (config.dryRun) return;
212
213 _.each(files, function(fileName) {
214 var filePath = path.join(projectRoot, fileName);
215 var content = fs.readFileSync(filePath);
216 var newContent = banner + content;
217
218 fs.writeFileSync(filePath, newContent);
219 });
220}
221
222function bumpReadmeVersion(oldVersion, newVersion, bumpType) {
223 if (bumpType === 'dev') {

Callers 1

mainFunction · 0.85

Calls 1

statusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…