summaryrefslogtreecommitdiff
path: root/node_modules/write-file-stdout
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/write-file-stdout
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/write-file-stdout')
-rw-r--r--node_modules/write-file-stdout/.npmignore1
-rw-r--r--node_modules/write-file-stdout/History.md7
-rw-r--r--node_modules/write-file-stdout/Makefile8
-rw-r--r--node_modules/write-file-stdout/Readme.md17
-rw-r--r--node_modules/write-file-stdout/index.js20
-rw-r--r--node_modules/write-file-stdout/package.json15
-rw-r--r--node_modules/write-file-stdout/test/index.js23
7 files changed, 0 insertions, 91 deletions
diff --git a/node_modules/write-file-stdout/.npmignore b/node_modules/write-file-stdout/.npmignore
deleted file mode 100644
index b512c09d..00000000
--- a/node_modules/write-file-stdout/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules \ No newline at end of file
diff --git a/node_modules/write-file-stdout/History.md b/node_modules/write-file-stdout/History.md
deleted file mode 100644
index 564bf404..00000000
--- a/node_modules/write-file-stdout/History.md
+++ /dev/null
@@ -1,7 +0,0 @@
-0.0.2 - December 19, 2013
--------------------------
-* add repository to package.json
-
-0.0.1 - December 18, 2013
--------------------------
-:sparkles: \ No newline at end of file
diff --git a/node_modules/write-file-stdout/Makefile b/node_modules/write-file-stdout/Makefile
deleted file mode 100644
index b5aa56c1..00000000
--- a/node_modules/write-file-stdout/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-
-node_modules: package.json
- @npm install
-
-test: node_modules
- @mocha --reporter spec
-
-.PHONY: test \ No newline at end of file
diff --git a/node_modules/write-file-stdout/Readme.md b/node_modules/write-file-stdout/Readme.md
deleted file mode 100644
index 867a9f70..00000000
--- a/node_modules/write-file-stdout/Readme.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# write-file-stdout
-
- Write to a file, falling back to stdout.
-
-## Installation
-
- $ npm install write-file-stdout
-
-## API
-
-### write ([file], contents)
-
- Write `contents` to a `file`, falling back to stdout.
-
-## License
-
- MIT
diff --git a/node_modules/write-file-stdout/index.js b/node_modules/write-file-stdout/index.js
deleted file mode 100644
index 10d804ec..00000000
--- a/node_modules/write-file-stdout/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-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);
-}
diff --git a/node_modules/write-file-stdout/package.json b/node_modules/write-file-stdout/package.json
deleted file mode 100644
index ce3c106d..00000000
--- a/node_modules/write-file-stdout/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "write-file-stdout",
- "repository": "git://github.com/ianstormtaylor/write-file-stdout.git",
- "description": "Write to a file, falling back to stdout.",
- "keywords": [
- "write",
- "file",
- "stdout"
- ],
- "version": "0.0.2",
- "license": "MIT",
- "devDependencies": {
- "mocha": "~1.15.1"
- }
-}
diff --git a/node_modules/write-file-stdout/test/index.js b/node_modules/write-file-stdout/test/index.js
deleted file mode 100644
index b0c4ea21..00000000
--- a/node_modules/write-file-stdout/test/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-
-var assert = require('assert');
-var fs = require('fs');
-var write = require('..');
-
-describe('write-file-stdout', function () {
- afterEach(function () {
- if (fs.existsSync('fixture.txt')) fs.unlinkSync('fixture.txt');
- });
-
- it('should write to a file', function () {
- write('fixture.txt', 'test');
- assert.equal('test', fs.readFileSync('fixture.txt'));
- });
-
- it('should write to stdout', function (done) {
- process.stdout.write = function (data) {
- assert.equal('test', data);
- done();
- };
- write('test');
- });
-}); \ No newline at end of file