Sha256: 457f49fb8122b560829a8201b6edcf7a2db64f36c6dbe26d9b2db3eb15453ef4

Contents?: true

Size: 349 Bytes

Versions: 23

Compression:

Stored size: 349 Bytes

Contents

'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<Error | undefined>}
 */
module.exports = (content, filePath) =>
	writeFileAtomic(path.normalize(filePath), stripAnsi(content));

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.6 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.5 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.4 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.3 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.2 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.1 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3.5 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-5.0.0 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3.4 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3.3 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3.2 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3.1 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.3 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.2.3 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.2.2 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.2.1 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.2 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.1.9 node_modules/stylelint/lib/writeOutputFile.js
trusty-cms-4.1.8 node_modules/stylelint/lib/writeOutputFile.js