From 67fdec20726e48ba3a934cb25bb30d47ec4a4f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20De=20La=20Pe=C3=B1a=20Smirnov?= Date: Wed, 29 Nov 2017 11:44:34 +0300 Subject: Initial commit, version 0.5.3 --- node_modules/indexof/.npmignore | 2 ++ node_modules/indexof/Makefile | 11 ++++++ node_modules/indexof/Readme.md | 15 +++++++++ node_modules/indexof/component.json | 10 ++++++ node_modules/indexof/index.js | 10 ++++++ node_modules/indexof/package.json | 67 +++++++++++++++++++++++++++++++++++++ 6 files changed, 115 insertions(+) create mode 100644 node_modules/indexof/.npmignore create mode 100644 node_modules/indexof/Makefile create mode 100644 node_modules/indexof/Readme.md create mode 100644 node_modules/indexof/component.json create mode 100644 node_modules/indexof/index.js create mode 100644 node_modules/indexof/package.json (limited to 'node_modules/indexof') 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" +} -- cgit v1.2.3