@mongez/gnz
Version:
Generator Z, the next generation of scaffolding tools.
21 lines (20 loc) • 1.02 kB
JavaScript
;var os=require('os');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var os__namespace=/*#__PURE__*/_interopNamespace(os);/**
* Generate new line before and after the text
* Use proper line separator for the current OS
*/
const lineSeparator = (text) => {
return `${os__namespace.EOL}${text}${os__namespace.EOL}`;
};
/**
* Generate only line before the text
*/
const lineBefore = (text) => {
return `${os__namespace.EOL}${text}`;
};
/**
* Generate only line after the text
*/
const lineAfter = (text) => {
return `${text}${os__namespace.EOL}`;
};
const newLine = os__namespace.EOL;exports.lineAfter=lineAfter;exports.lineBefore=lineBefore;exports.lineSeparator=lineSeparator;exports.newLine=newLine;//# sourceMappingURL=lines.js.map