From fee47f6414cc3ae9a88f3ee0ed20f1d6f2d9f556 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:58:02 +0800 Subject: added plugin from postcss: postcss-fixes rucksack-css --- node_modules/write-file-stdout/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/write-file-stdout/index.js (limited to 'node_modules/write-file-stdout/index.js') diff --git a/node_modules/write-file-stdout/index.js b/node_modules/write-file-stdout/index.js new file mode 100644 index 00000000..10d804ec --- /dev/null +++ b/node_modules/write-file-stdout/index.js @@ -0,0 +1,20 @@ +var fs = require('fs'); + +/** + * Expose `write`. + */ + +module.exports = write; + +/** + * Write `contents` to a `file`, falling back to stdout. + * + * @param {String} file + * @param {String} contents + */ + +function write (file, contents) { + if (1 == arguments.length) contents = file, file = null; + if (file) return fs.writeFileSync(file, contents); + process.stdout.write(contents); +} -- cgit v1.2.3