Node.js initialisiert

This commit is contained in:
clerie
2018-04-03 11:42:35 +02:00
parent 368b09cc46
commit 49686db41d
643 changed files with 93064 additions and 0 deletions
index.js
node_modules
.bin
accepts
after
array-flatten
arraybuffer.slice
async-limiter
backo2
base64-arraybuffer
base64id
better-assert
blob
callsite
component-bind
component-emitter
component-inherit
content-disposition
content-type
cookie-signature
cookie
debug
depd
destroy
ee-first
encodeurl
engine.io-client
engine.io-parser
engine.io
escape-html
etag
express
finalhandler
forwarded
fresh
has-binary2
has-cors
http-errors
indexof
inherits
ipaddr.js
isarray
media-typer
merge-descriptors
methods
mime-db
mime-types
mime
ms
negotiator
object-component
on-finished
parseqs
parseuri
parseurl
path-to-regexp
proxy-addr
qs
range-parser
safe-buffer
send
serve-static
setprototypeof
socket.io-adapter
socket.io-client
socket.io-parser
socket.io
statuses
to-array
type-is
ultron
unpipe
utils-merge
vary
ws
xmlhttprequest-ssl
yeast
package-lock.jsonpackage.json
public

3
node_modules/object-component/.npmignore generated vendored Normal file

@@ -0,0 +1,3 @@
components
build
node_modules

10
node_modules/object-component/History.md generated vendored Normal file

@@ -0,0 +1,10 @@
0.0.3 / 2012-10-15
==================
* package: added `component` namespace (fixes #1)
0.0.2 / 2012-09-20
==================
* add code smell to `.merge()`

16
node_modules/object-component/Makefile generated vendored Normal file

@@ -0,0 +1,16 @@
build: components index.js
@component build
components:
@Component install
clean:
rm -fr build components template.js
test:
@./node_modules/.bin/mocha \
--require should \
--reporter spec
.PHONY: clean test

31
node_modules/object-component/Readme.md generated vendored Normal file

@@ -0,0 +1,31 @@
# object
Object utils.
## API
### .keys(obj)
Return the keys for `obj`.
### .values(obj)
Return the values for `obj`.
### .length(obj)
Return the number of keys for `obj`.
### .isEmpty(obj)
Check if `obj` is empty.
### .merge(a, b)
Merge object `b` into `a`, returns `a`.
Precedence is given to `b`.
## License
MIT

10
node_modules/object-component/component.json generated vendored Normal file

@@ -0,0 +1,10 @@
{
"name": "object",
"description": "Object keys / values / length",
"version": "0.0.3",
"keywords": ["object", "keys", "utility"],
"dependencies": {},
"scripts": [
"index.js"
]
}

84
node_modules/object-component/index.js generated vendored Normal file

@@ -0,0 +1,84 @@
/**
* HOP ref.
*/
var has = Object.prototype.hasOwnProperty;
/**
* Return own keys in `obj`.
*
* @param {Object} obj
* @return {Array}
* @api public
*/
exports.keys = Object.keys || function(obj){
var keys = [];
for (var key in obj) {
if (has.call(obj, key)) {
keys.push(key);
}
}
return keys;
};
/**
* Return own values in `obj`.
*
* @param {Object} obj
* @return {Array}
* @api public
*/
exports.values = function(obj){
var vals = [];
for (var key in obj) {
if (has.call(obj, key)) {
vals.push(obj[key]);
}
}
return vals;
};
/**
* Merge `b` into `a`.
*
* @param {Object} a
* @param {Object} b
* @return {Object} a
* @api public
*/
exports.merge = function(a, b){
for (var key in b) {
if (has.call(b, key)) {
a[key] = b[key];
}
}
return a;
};
/**
* Return length of `obj`.
*
* @param {Object} obj
* @return {Number}
* @api public
*/
exports.length = function(obj){
return exports.keys(obj).length;
};
/**
* Check if `obj` is empty.
*
* @param {Object} obj
* @return {Boolean}
* @api public
*/
exports.isEmpty = function(obj){
return 0 == exports.length(obj);
};

39
node_modules/object-component/package.json generated vendored Normal file

@@ -0,0 +1,39 @@
{
"_from": "object-component@0.0.3",
"_id": "object-component@0.0.3",
"_inBundle": false,
"_integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=",
"_location": "/object-component",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "object-component@0.0.3",
"name": "object-component",
"escapedName": "object-component",
"rawSpec": "0.0.3",
"saveSpec": null,
"fetchSpec": "0.0.3"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz",
"_shasum": "f0c69aa50efc95b866c186f400a33769cb2f1291",
"_spec": "object-component@0.0.3",
"_where": "/home/twr/node/pixelnode/node_modules/socket.io-client",
"bundleDependencies": false,
"component": {
"scripts": {
"object/index.js": "index.js"
}
},
"deprecated": false,
"description": "Object utils.",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"name": "object-component",
"version": "0.0.3"
}

48
node_modules/object-component/test/object.js generated vendored Normal file

@@ -0,0 +1,48 @@
/**
* Module dependencies.
*/
var object = require('..');
describe('.keys(obj)', function(){
it('should return the keys of an object', function(){
var obj = { name: 'tobi', age: 1 };
object.keys(obj).should.eql(['name', 'age']);
})
})
describe('.values(obj)', function(){
it('should return the values of an object', function(){
var obj = { name: 'tobi', age: 1 };
object.values(obj).should.eql(['tobi', 1]);
})
})
describe('.length(obj)', function(){
it('should return key count', function(){
var obj = { name: 'tobi', age: 1 };
object.length(obj).should.equal(2);
})
})
describe('.merge(a, b)', function(){
it('should merge two objects', function(){
var a = { foo: 'bar' };
var b = { bar: 'baz' };
object.merge(a, b).should.eql({ foo: 'bar', bar: 'baz' });
})
it('should give precedence to b', function(){
var a = { foo: 'bar' };
var b = { foo: 'baz' };
object.merge(a, b).should.eql({ foo: 'baz' });
})
})
describe('.isEmpty()', function(){
it('should check if the object is empty', function(){
object.isEmpty({}).should.be.true;
object.isEmpty({ foo: 'bar' }).should.be.false;
})
})