aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/indexof
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/indexof')
-rw-r--r--node_modules/indexof/.npmignore2
-rw-r--r--node_modules/indexof/Makefile11
-rw-r--r--node_modules/indexof/Readme.md15
-rw-r--r--node_modules/indexof/component.json10
-rw-r--r--node_modules/indexof/index.js10
-rw-r--r--node_modules/indexof/package.json67
6 files changed, 115 insertions, 0 deletions
diff --git a/node_modules/indexof/.npmignore b/node_modules/indexof/.npmignore
new file mode 100644
index 0000000..48a2e24
--- /dev/null
+++ b/node_modules/indexof/.npmignore
@@ -0,0 +1,2 @@
+components
+build
diff --git a/node_modules/indexof/Makefile b/node_modules/indexof/Makefile
new file mode 100644
index 0000000..3f6119d
--- /dev/null
+++ b/node_modules/indexof/Makefile
@@ -0,0 +1,11 @@
+
+build: components index.js
+ @component build
+
+components:
+ @Component install
+
+clean:
+ rm -fr build components template.js
+
+.PHONY: clean
diff --git a/node_modules/indexof/Readme.md b/node_modules/indexof/Readme.md
new file mode 100644
index 0000000..99c8dfc
--- /dev/null
+++ b/node_modules/indexof/Readme.md
@@ -0,0 +1,15 @@
+
+# indexOf
+
+ Lame indexOf thing, thanks microsoft
+
+## Example
+
+```js
+var index = require('indexof');
+index(arr, obj);
+```
+
+## License
+
+ MIT \ No newline at end of file
diff --git a/node_modules/indexof/component.json b/node_modules/indexof/component.json
new file mode 100644
index 0000000..e3430d7
--- /dev/null
+++ b/node_modules/indexof/component.json
@@ -0,0 +1,10 @@
+{
+ "name": "indexof",
+ "description": "Microsoft sucks",
+ "version": "0.0.1",
+ "keywords": ["index", "array", "indexOf"],
+ "dependencies": {},
+ "scripts": [
+ "index.js"
+ ]
+} \ No newline at end of file
diff --git a/node_modules/indexof/index.js b/node_modules/indexof/index.js
new file mode 100644
index 0000000..9d9667b
--- /dev/null
+++ b/node_modules/indexof/index.js
@@ -0,0 +1,10 @@
+
+var indexOf = [].indexOf;
+
+module.exports = function(arr, obj){
+ if (indexOf) return arr.indexOf(obj);
+ for (var i = 0; i < arr.length; ++i) {
+ if (arr[i] === obj) return i;
+ }
+ return -1;
+}; \ No newline at end of file
diff --git a/node_modules/indexof/package.json b/node_modules/indexof/package.json
new file mode 100644
index 0000000..c6e4fcf
--- /dev/null
+++ b/node_modules/indexof/package.json
@@ -0,0 +1,67 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "indexof@0.0.1",
+ "scope": null,
+ "escapedName": "indexof",
+ "name": "indexof",
+ "rawSpec": "0.0.1",
+ "spec": "0.0.1",
+ "type": "version"
+ },
+ "/mnt/e/Yaroslav/Documents/Webs/nodejs/checkers/node_modules/socket.io-client"
+ ]
+ ],
+ "_from": "indexof@0.0.1",
+ "_id": "indexof@0.0.1",
+ "_inCache": true,
+ "_location": "/indexof",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "indexof@0.0.1",
+ "scope": null,
+ "escapedName": "indexof",
+ "name": "indexof",
+ "rawSpec": "0.0.1",
+ "spec": "0.0.1",
+ "type": "version"
+ },
+ "_requiredBy": [
+ "/engine.io-client",
+ "/socket.io-client"
+ ],
+ "_resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
+ "_shasum": "82dc336d232b9062179d05ab3293a66059fd435d",
+ "_shrinkwrap": null,
+ "_spec": "indexof@0.0.1",
+ "_where": "/mnt/e/Yaroslav/Documents/Webs/nodejs/checkers/node_modules/socket.io-client",
+ "component": {
+ "scripts": {
+ "indexof/index.js": "index.js"
+ }
+ },
+ "dependencies": {},
+ "description": "Microsoft sucks",
+ "devDependencies": {},
+ "directories": {},
+ "dist": {
+ "shasum": "82dc336d232b9062179d05ab3293a66059fd435d",
+ "tarball": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz"
+ },
+ "keywords": [
+ "index",
+ "array",
+ "indexOf"
+ ],
+ "maintainers": [
+ {
+ "name": "tjholowaychuk",
+ "email": "tj@vision-media.ca"
+ }
+ ],
+ "name": "indexof",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "version": "0.0.1"
+}