aboutsummaryrefslogtreecommitdiff
path: root/node_modules/strip-bom-stream
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/strip-bom-stream
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
add node_modules to address #4364
Diffstat (limited to 'node_modules/strip-bom-stream')
-rw-r--r--node_modules/strip-bom-stream/index.js10
-rw-r--r--node_modules/strip-bom-stream/license21
-rw-r--r--node_modules/strip-bom-stream/package.json107
-rw-r--r--node_modules/strip-bom-stream/readme.md39
4 files changed, 177 insertions, 0 deletions
diff --git a/node_modules/strip-bom-stream/index.js b/node_modules/strip-bom-stream/index.js
new file mode 100644
index 000000000..bdcdfc98a
--- /dev/null
+++ b/node_modules/strip-bom-stream/index.js
@@ -0,0 +1,10 @@
+'use strict';
+var firstChunk = require('first-chunk-stream');
+var stripBom = require('strip-bom');
+
+module.exports = function () {
+ return firstChunk({minSize: 3}, function (chunk, enc, cb) {
+ this.push(stripBom(chunk));
+ cb();
+ });
+};
diff --git a/node_modules/strip-bom-stream/license b/node_modules/strip-bom-stream/license
new file mode 100644
index 000000000..654d0bfe9
--- /dev/null
+++ b/node_modules/strip-bom-stream/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/strip-bom-stream/package.json b/node_modules/strip-bom-stream/package.json
new file mode 100644
index 000000000..2b0281ff2
--- /dev/null
+++ b/node_modules/strip-bom-stream/package.json
@@ -0,0 +1,107 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "strip-bom-stream@^1.0.0",
+ "scope": null,
+ "escapedName": "strip-bom-stream",
+ "name": "strip-bom-stream",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/vinyl-fs"
+ ]
+ ],
+ "_from": "strip-bom-stream@>=1.0.0 <2.0.0",
+ "_id": "strip-bom-stream@1.0.0",
+ "_inCache": true,
+ "_location": "/strip-bom-stream",
+ "_nodeVersion": "0.12.5",
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "2.11.2",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "strip-bom-stream@^1.0.0",
+ "scope": null,
+ "escapedName": "strip-bom-stream",
+ "name": "strip-bom-stream",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/vinyl-fs"
+ ],
+ "_resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz",
+ "_shasum": "e7144398577d51a6bed0fa1994fa05f43fd988ee",
+ "_shrinkwrap": null,
+ "_spec": "strip-bom-stream@^1.0.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/vinyl-fs",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/strip-bom-stream/issues"
+ },
+ "dependencies": {
+ "first-chunk-stream": "^1.0.0",
+ "strip-bom": "^2.0.0"
+ },
+ "description": "Strip UTF-8 byte order mark (BOM) from a stream",
+ "devDependencies": {
+ "ava": "0.0.4",
+ "concat-stream": "^1.4.5"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "e7144398577d51a6bed0fa1994fa05f43fd988ee",
+ "tarball": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "bf94858c313e67de092d21230fcaa6b517a98137",
+ "homepage": "https://github.com/sindresorhus/strip-bom-stream",
+ "keywords": [
+ "bom",
+ "strip",
+ "byte",
+ "mark",
+ "unicode",
+ "utf8",
+ "utf-8",
+ "remove",
+ "delete",
+ "trim",
+ "text",
+ "stream",
+ "streams"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "strip-bom-stream",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/strip-bom-stream.git"
+ },
+ "scripts": {
+ "test": "node test.js"
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/strip-bom-stream/readme.md b/node_modules/strip-bom-stream/readme.md
new file mode 100644
index 000000000..1cd7bac57
--- /dev/null
+++ b/node_modules/strip-bom-stream/readme.md
@@ -0,0 +1,39 @@
+# strip-bom-stream [![Build Status](https://travis-ci.org/sindresorhus/strip-bom-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom-stream)
+
+> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a stream
+
+From Wikipedia:
+
+> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.
+
+
+## Install
+
+```
+$ npm install --save strip-bom-stream
+```
+
+
+## Usage
+
+```js
+var fs = require('fs');
+var stripBomStream = require('strip-bom-stream');
+
+fs.createReadStream('unicorn.txt')
+ .pipe(stripBomStream())
+ .pipe(fs.createWriteStream('unicorn.txt'));
+```
+
+It's a [Transform stream](http://nodejs.org/api/stream.html#stream_class_stream_transform).
+
+
+## Related
+
+- [strip-bom](https://github.com/sindresorhus/strip-bom-stream) - Strip UTF-8 byte order mark (BOM) from a string/buffer
+- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)