1 | /* @flow */
|
2 | ;
|
3 |
|
4 | const path = require("path");
|
5 | const pify = require("pify");
|
6 | const stripAnsi = require("strip-ansi");
|
7 | const writeFileAtomic /*: Function*/ = require("./vendor/writeFileAtomic");
|
8 |
|
9 | module.exports = (content /*: string*/, filePath /*: string*/) =>
|
10 | pify(writeFileAtomic)(path.normalize(filePath), stripAnsi(content));
|