install gulp to process code

This commit is contained in:
isUnknown 2024-09-20 10:32:49 +02:00
parent 24f6606c2c
commit b6a3900ee2
1651 changed files with 253427 additions and 39 deletions

1
node_modules/collect-stream/.npmignore generated vendored Normal file
View file

@ -0,0 +1 @@
node_modules

3
node_modules/collect-stream/.travis.yml generated vendored Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"

7
node_modules/collect-stream/History.md generated vendored Normal file
View file

@ -0,0 +1,7 @@
1.0.0 / 2014-08-08
==================
* Loosen version range of concat-stream dependency
* docs
* use travis

9
node_modules/collect-stream/Makefile generated vendored Normal file
View file

@ -0,0 +1,9 @@
build: index.js
@node_modules/.bin/babel index.js > build.js
test: build
@node_modules/.bin/babel-node test.js
.PHONY: test

49
node_modules/collect-stream/README.md generated vendored Normal file
View file

@ -0,0 +1,49 @@
# collect-stream
Collect a readable stream's output and errors.
[![build status](https://secure.travis-ci.org/juliangruber/collect-stream.png)](http://travis-ci.org/juliangruber/collect-stream)
## Usage
Give it a readable stream and a function and it will call latter with the
potential error and a smart representation of the data the stream emitted.
```js
import collect from 'collect-stream';
collect(stringStream, (err, data) => {
console.log(data); // one string
});
collect(bufferStream, (err, data) => {
console.log(data); // one buffer
});
collect(objectStream, (err, data) => {
console.log(data); // an array of objects
});
```
Give it options and it will pass them to [concat-stream](https://github.com/maxogden/concat-stream/).
```js
import collect from 'collect-stream';
collect(someStream, {
encoding: 'object'
}, (err, data) => {
console.log(data) // forced to be an array of objects
});
```
## Installation
```bash
$ npm install collect-stream
```
## License
MIT

32
node_modules/collect-stream/build.js generated vendored Normal file
View file

@ -0,0 +1,32 @@
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = collect;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _concatStream = require('concat-stream');
var _concatStream2 = _interopRequireDefault(_concatStream);
var _once = require('once');
var _once2 = _interopRequireDefault(_once);
function collect(stream, opts, fn) {
if (typeof opts === 'function') {
fn = opts;
opts = {};
}
fn = (0, _once2['default'])(fn);
stream.on('error', fn);
stream.pipe((0, _concatStream2['default'])(opts, function (data) {
fn(null, data);
}));
}
;
module.exports = exports['default'];

15
node_modules/collect-stream/index.js generated vendored Normal file
View file

@ -0,0 +1,15 @@
import { default as concat } from 'concat-stream';
import { default as once } from 'once';
export default function collect(stream, opts, fn) {
if (typeof opts === 'function') {
fn = opts;
opts = {};
}
fn = once(fn);
stream.on('error', fn);
stream.pipe(concat(opts, data => {
fn(null, data);
}));
};

34
node_modules/collect-stream/package.json generated vendored Normal file
View file

@ -0,0 +1,34 @@
{
"name": "collect-stream",
"description": "Collect a readable stream's output and errors",
"version": "1.2.1",
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/collect-stream.git"
},
"homepage": "https://github.com/juliangruber/collect-stream",
"main": "build.js",
"scripts": {
"test": "make test"
},
"dependencies": {
"once": "^1.3.0",
"concat-stream": "^1.2.0"
},
"devDependencies": {
"babel": "^5.8.21",
"tape": "~2.1.0",
"through": "~2.3.4"
},
"keywords": [
"collect",
"stream",
"concat"
],
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",
"url": "http://juliangruber.com"
},
"license": "MIT"
}

92
node_modules/collect-stream/test.js generated vendored Normal file
View file

@ -0,0 +1,92 @@
import { default as test } from 'tape';
import { default as through } from 'through';
import collect from './';
test('string', t => {
t.plan(2);
var stream = through();
process.nextTick(() => {
stream.queue('foo');
stream.queue('bar');
stream.queue(null);
});
collect(stream, (err, data) => {
t.error(err);
t.deepEqual(data, 'foobar');
});
});
test('buffer', t => {
t.plan(3);
var stream = through();
process.nextTick(() => {
stream.queue(new Buffer('foo'));
stream.queue(new Buffer('bar'));
stream.queue(null);
});
collect(stream, (err, data) => {
t.error(err);
t.ok(Buffer.isBuffer(data));
t.equal(data.toString(), 'foobar');
});
});
test('object', t => {
t.plan(2);
var stream = through();
process.nextTick(() => {
stream.queue({ foo: true });
stream.queue({ bar: true });
stream.queue(null);
});
collect(stream, (err, data) => {
t.error(err);
t.deepEqual(data, [
{ foo: true },
{ bar: true }
]);
});
});
test('concat-stream options', t => {
t.plan(2);
var stream = through();
process.nextTick(() => {
stream.queue([{ foo: true }]);
stream.queue([{ bar: true }]);
stream.queue(null);
});
collect(stream, {
encoding: 'object'
}, (err, data) => {
t.error(err);
t.deepEqual(data, [
[{ foo: true }],
[{ bar: true }]
]);
});
});
test('error', t => {
t.plan(1);
var stream = through();
process.nextTick(() => {
stream.emit('error', new Error);
});
collect(stream, (err, data) => {
t.ok(err);
});
});