diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:58:02 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:58:02 +0800 |
| commit | fee47f6414cc3ae9a88f3ee0ed20f1d6f2d9f556 (patch) | |
| tree | 2b99dd57fc676a3819ef3cc46ac43df0043c2bb3 /node_modules/read-file-stdin | |
| parent | 0379526e20e1ff212df23e6326741aa9c06df204 (diff) | |
added plugin from postcss: postcss-fixes rucksack-css
Diffstat (limited to 'node_modules/read-file-stdin')
| -rw-r--r-- | node_modules/read-file-stdin/.npmignore | 1 | ||||
| -rw-r--r-- | node_modules/read-file-stdin/History.md | 24 | ||||
| -rw-r--r-- | node_modules/read-file-stdin/Makefile | 8 | ||||
| -rw-r--r-- | node_modules/read-file-stdin/Readme.md | 18 | ||||
| -rw-r--r-- | node_modules/read-file-stdin/index.js | 22 | ||||
| -rw-r--r-- | node_modules/read-file-stdin/package.json | 19 |
6 files changed, 92 insertions, 0 deletions
diff --git a/node_modules/read-file-stdin/.npmignore b/node_modules/read-file-stdin/.npmignore new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/node_modules/read-file-stdin/.npmignore @@ -0,0 +1 @@ +test diff --git a/node_modules/read-file-stdin/History.md b/node_modules/read-file-stdin/History.md new file mode 100644 index 00000000..fbe94464 --- /dev/null +++ b/node_modules/read-file-stdin/History.md @@ -0,0 +1,24 @@ + +0.2.1 - January 21, 2016 +------------------------ +* add tests to `.npmignore` + +0.2.0 - October 15, 2014 +------------------------- +* returning a single buffer rather than an array (better for large inputs) + +0.0.4 - May 7, 2014 +------------------------- +* switch from `node-concat-stream` to `stream-to-array` + +0.0.3 - December 19, 2013 +------------------------- +* add repository to package.json + +0.0.2 - December 19, 2013 +------------------------- +* peg node-concat-stream + +0.0.1 - December 18, 2013 +------------------------- +:sparkles: diff --git a/node_modules/read-file-stdin/Makefile b/node_modules/read-file-stdin/Makefile new file mode 100644 index 00000000..2f09ff0b --- /dev/null +++ b/node_modules/read-file-stdin/Makefile @@ -0,0 +1,8 @@ + +node_modules: package.json + @npm install + +test: node_modules + @./node_modules/.bin/mocha --reporter spec + +.PHONY: test diff --git a/node_modules/read-file-stdin/Readme.md b/node_modules/read-file-stdin/Readme.md new file mode 100644 index 00000000..92aa4283 --- /dev/null +++ b/node_modules/read-file-stdin/Readme.md @@ -0,0 +1,18 @@ + +# read-file-stdin + + Read from a file, falling back to stdin. + +## Installation + + $ npm install read-file-stdin + +## API + +### read ([file], callback) + + Read from a `file`, falling back to stdin, and `callback(err, buffer)`. + +## License + + MIT
\ No newline at end of file diff --git a/node_modules/read-file-stdin/index.js b/node_modules/read-file-stdin/index.js new file mode 100644 index 00000000..3b6d88b1 --- /dev/null +++ b/node_modules/read-file-stdin/index.js @@ -0,0 +1,22 @@ + +var gather = require('gather-stream'); +var fs = require('fs'); + +/** + * Expose `read`. + */ + +module.exports = read; + +/** + * Read from a `file`, falling back to stdin, and `callback(err, buffer)`. + * + * @param {String} file + * @param {Function} callback + */ + +function read (file, callback) { + if ('function' == typeof file) callback = file, file = null; + var stream = file ? fs.createReadStream(file) : process.stdin; + stream.pipe(gather(callback)); +} diff --git a/node_modules/read-file-stdin/package.json b/node_modules/read-file-stdin/package.json new file mode 100644 index 00000000..def1967c --- /dev/null +++ b/node_modules/read-file-stdin/package.json @@ -0,0 +1,19 @@ +{ + "name": "read-file-stdin", + "repository": "git://github.com/ianstormtaylor/read-file-stdin", + "description": "Read from a file, falling back to stdin.", + "keywords": [ + "read", + "file", + "stdin", + "buffer" + ], + "version": "0.2.1", + "license": "MIT", + "dependencies": { + "gather-stream": "^1.0.0" + }, + "devDependencies": { + "mocha": "^2.3.4" + } +} |
