PHP 7.4.33
Preview: stringifyComment.js Size: 801 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/tailwindcss/node_modules/yaml/dist/stringify/stringifyComment.js
'use strict';

/**
 * Stringifies a comment.
 *
 * Empty comment lines are left empty,
 * lines consisting of a single space are replaced by `#`,
 * and all other lines are prefixed with a `#`.
 */
const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#');
function indentComment(comment, indent) {
    if (/^\n+$/.test(comment))
        return comment.substring(1);
    return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
}
const lineComment = (str, indent, comment) => str.endsWith('\n')
    ? indentComment(comment, indent)
    : comment.includes('\n')
        ? '\n' + indentComment(comment, indent)
        : (str.endsWith(' ') ? '' : ' ') + comment;

exports.indentComment = indentComment;
exports.lineComment = lineComment;
exports.stringifyComment = stringifyComment;

Directory Contents

Dirs: 0 × Files: 16
Name Size Perms Modified Actions
1.24 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
4.77 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
865 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
4.39 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
528 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
5.23 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
419 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
801 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
260 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
3.03 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
147 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
748 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
248 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
5.33 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
357 B lrw-r--r-- 2025-06-16 05:45:40
Edit Download
13.09 KB lrw-r--r-- 2025-06-16 05:45:40
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).