first commit
This commit is contained in:
10
build/node_modules/strip-bom-stream/index.js
generated
vendored
Normal file
10
build/node_modules/strip-bom-stream/index.js
generated
vendored
Normal file
@@ -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();
|
||||
});
|
||||
};
|
||||
21
build/node_modules/strip-bom-stream/license
generated
vendored
Normal file
21
build/node_modules/strip-bom-stream/license
generated
vendored
Normal file
@@ -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.
|
||||
79
build/node_modules/strip-bom-stream/package.json
generated
vendored
Normal file
79
build/node_modules/strip-bom-stream/package.json
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"strip-bom-stream@1.0.0",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "strip-bom-stream@1.0.0",
|
||||
"_id": "strip-bom-stream@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-5xRDmFd9Uaa+0PoZlPoF9D/ZiO4=",
|
||||
"_location": "/strip-bom-stream",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "strip-bom-stream@1.0.0",
|
||||
"name": "strip-bom-stream",
|
||||
"escapedName": "strip-bom-stream",
|
||||
"rawSpec": "1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vinyl-fs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-1.0.0.tgz",
|
||||
"_spec": "1.0.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"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"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/strip-bom-stream#readme",
|
||||
"keywords": [
|
||||
"bom",
|
||||
"strip",
|
||||
"byte",
|
||||
"mark",
|
||||
"unicode",
|
||||
"utf8",
|
||||
"utf-8",
|
||||
"remove",
|
||||
"delete",
|
||||
"trim",
|
||||
"text",
|
||||
"stream",
|
||||
"streams"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "strip-bom-stream",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/strip-bom-stream.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
39
build/node_modules/strip-bom-stream/readme.md
generated
vendored
Normal file
39
build/node_modules/strip-bom-stream/readme.md
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
# strip-bom-stream [](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)
|
||||
Reference in New Issue
Block a user