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