Template Upload

This commit is contained in:
SOUTHERNCO\x2mjbyrn
2017-05-17 13:45:25 -04:00
parent 415b9c25f3
commit 7efe7605b8
11476 changed files with 2170865 additions and 34 deletions

4
node_modules/component-bind/.npmignore generated vendored Normal file
View File

@ -0,0 +1,4 @@
support
test
examples
*.sock

13
node_modules/component-bind/History.md generated vendored Normal file
View File

@ -0,0 +1,13 @@
1.0.0 / 2014-05-27
==================
* index: use slice ref (#7, @viatropos)
* package: rename package to "component-bind"
* package: add "repository" field (#6, @repoify)
* package: add "component" section
0.0.1 / 2010-01-03
==================
* Initial release

7
node_modules/component-bind/Makefile generated vendored Normal file
View File

@ -0,0 +1,7 @@
test:
@./node_modules/.bin/mocha \
--require should \
--reporter spec
.PHONY: test

64
node_modules/component-bind/Readme.md generated vendored Normal file
View File

@ -0,0 +1,64 @@
# bind
Function binding utility.
## Installation
```
$ component install component/bind
```
## API
- [bind(obj, fn)](#bindobj-fn)
- [bind(obj, fn, ...)](#bindobj-fn-)
- [bind(obj, name)](#bindobj-name)
<a name=""></a>
<a name="bindobj-fn"></a>
### bind(obj, fn)
should bind the function to the given object.
```js
var tobi = { name: 'tobi' };
function name() {
return this.name;
}
var fn = bind(tobi, name);
fn().should.equal('tobi');
```
<a name="bindobj-fn-"></a>
### bind(obj, fn, ...)
should curry the remaining arguments.
```js
function add(a, b) {
return a + b;
}
bind(null, add)(1, 2).should.equal(3);
bind(null, add, 1)(2).should.equal(3);
bind(null, add, 1, 2)().should.equal(3);
```
<a name="bindobj-name"></a>
### bind(obj, name)
should bind the method of the given name.
```js
var tobi = { name: 'tobi' };
tobi.getName = function() {
return this.name;
};
var fn = bind(tobi, 'getName');
fn().should.equal('tobi');
```
## License
MIT

13
node_modules/component-bind/component.json generated vendored Normal file
View File

@ -0,0 +1,13 @@
{
"name": "bind",
"version": "1.0.0",
"description": "function binding utility",
"keywords": [
"bind",
"utility"
],
"dependencies": {},
"scripts": [
"index.js"
]
}

23
node_modules/component-bind/index.js generated vendored Normal file
View File

@ -0,0 +1,23 @@
/**
* Slice reference.
*/
var slice = [].slice;
/**
* Bind `obj` to `fn`.
*
* @param {Object} obj
* @param {Function|String} fn or string
* @return {Function}
* @api public
*/
module.exports = function(obj, fn){
if ('string' == typeof fn) fn = obj[fn];
if ('function' != typeof fn) throw new Error('bind() requires a function');
var args = slice.call(arguments, 2);
return function(){
return fn.apply(obj, args.concat(slice.call(arguments)));
}
};

72
node_modules/component-bind/package.json generated vendored Normal file
View File

@ -0,0 +1,72 @@
{
"_args": [
[
"component-bind@1.0.0",
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\socket.io-client"
]
],
"_from": "component-bind@1.0.0",
"_id": "component-bind@1.0.0",
"_inCache": true,
"_location": "/component-bind",
"_npmUser": {
"email": "nathan@tootallnate.net",
"name": "tootallnate"
},
"_npmVersion": "1.4.9",
"_phantomChildren": {},
"_requested": {
"name": "component-bind",
"raw": "component-bind@1.0.0",
"rawSpec": "1.0.0",
"scope": null,
"spec": "1.0.0",
"type": "version"
},
"_requiredBy": [
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
"_shasum": "00c608ab7dcd93897c0009651b1d3a8e1e73bbd1",
"_shrinkwrap": null,
"_spec": "component-bind@1.0.0",
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\socket.io-client",
"bugs": {
"url": "https://github.com/component/bind/issues"
},
"component": {
"scripts": {
"bind/index.js": "index.js"
}
},
"dependencies": {},
"description": "function binding utility",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "00c608ab7dcd93897c0009651b1d3a8e1e73bbd1",
"tarball": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz"
},
"homepage": "https://github.com/component/bind",
"installable": true,
"keywords": [
"bind",
"utility"
],
"maintainers": [
{
"name": "tootallnate",
"email": "nathan@tootallnate.net"
}
],
"name": "component-bind",
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "https://github.com/component/bind.git"
},
"version": "1.0.0"
}