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/read-file-stdin/.npmignore | 1 + node_modules/read-file-stdin/History.md | 24 ++++++++++++++++++++++++ node_modules/read-file-stdin/Makefile | 8 ++++++++ node_modules/read-file-stdin/Readme.md | 18 ++++++++++++++++++ node_modules/read-file-stdin/index.js | 22 ++++++++++++++++++++++ node_modules/read-file-stdin/package.json | 19 +++++++++++++++++++ 6 files changed, 92 insertions(+) create mode 100644 node_modules/read-file-stdin/.npmignore create mode 100644 node_modules/read-file-stdin/History.md create mode 100644 node_modules/read-file-stdin/Makefile create mode 100644 node_modules/read-file-stdin/Readme.md create mode 100644 node_modules/read-file-stdin/index.js create mode 100644 node_modules/read-file-stdin/package.json (limited to 'node_modules/read-file-stdin') 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" + } +} -- cgit v1.2.3