UNPKG

281 BJavaScriptView Raw
1/* */
2
3/*
4Adds a stamp to the file
5*/
6module.exports = function addStamp(content, origin) {
7 const relativeOrigin = origin.replace(`${process.cwd()}/`, '');
8 return `<!--
9 This file was generated by emdaer
10
11 Its template can be found at ${relativeOrigin}
12-->
13
14${content}`;
15};