lix-website/themes/lix/assets/bootstrap/node_modules/stylelint/lib/writeOutputFile.js
2024-04-26 22:49:34 -06:00

14 lines
336 B
JavaScript

'use strict';
const path = require('path');
const stripAnsi = require('strip-ansi');
const writeFileAtomic = require('write-file-atomic');
/**
* @param {string} content
* @param {string} filePath
* @returns {Promise<void>}
*/
module.exports = (content, filePath) =>
writeFileAtomic(path.normalize(filePath), stripAnsi(content));