/
canecpro
/
TProgramming_2025
Обзор
Документация
Войти
/
canecpro
/
TProgramming_2025
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
node_modules/eslint/messages/shared.js
23 строки
546 B
Canecpro17
Initial commit: Combat Arena Simulator project
18 янв 2026, 15:53
18 янв 2026, 15:53
4a0290e
Код
Авторство
О чём код?
/** * @fileoverview Shared utilities for error messages. * @author Josh Goldberg */ "use strict"; /** * Converts a value to a string that may be printed in errors. * @param {any} value The invalid value. * @param {number} indentation How many spaces to indent * @returns {string} The value, stringified. */ function stringifyValueForError(value, indentation) { return value ? JSON.stringify(value, null, 4).replace( /\n/gu, `\n${" ".repeat(indentation)}`, ) : `${value}`; } module.exports = { stringifyValueForError };