From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/fs-extra/lib/output-file/index.js | 31 -------------------------- 1 file changed, 31 deletions(-) delete mode 100644 node_modules/fs-extra/lib/output-file/index.js (limited to 'node_modules/fs-extra/lib/output-file') diff --git a/node_modules/fs-extra/lib/output-file/index.js b/node_modules/fs-extra/lib/output-file/index.js deleted file mode 100644 index a42d9436..00000000 --- a/node_modules/fs-extra/lib/output-file/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict' - -const u = require('universalify').fromPromise -const fs = require('../fs') -const path = require('path') -const mkdir = require('../mkdirs') -const pathExists = require('../path-exists').pathExists - -async function outputFile (file, data, encoding = 'utf-8') { - const dir = path.dirname(file) - - if (!(await pathExists(dir))) { - await mkdir.mkdirs(dir) - } - - return fs.writeFile(file, data, encoding) -} - -function outputFileSync (file, ...args) { - const dir = path.dirname(file) - if (!fs.existsSync(dir)) { - mkdir.mkdirsSync(dir) - } - - fs.writeFileSync(file, ...args) -} - -module.exports = { - outputFile: u(outputFile), - outputFileSync -} -- cgit v1.2.3