summaryrefslogtreecommitdiff
path: root/node_modules/indexes-of
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/indexes-of')
-rw-r--r--node_modules/indexes-of/.npmignore1
-rw-r--r--node_modules/indexes-of/LICENSE22
-rw-r--r--node_modules/indexes-of/README.md24
-rw-r--r--node_modules/indexes-of/index.js6
-rw-r--r--node_modules/indexes-of/package.json18
-rw-r--r--node_modules/indexes-of/test.js38
6 files changed, 0 insertions, 109 deletions
diff --git a/node_modules/indexes-of/.npmignore b/node_modules/indexes-of/.npmignore
deleted file mode 100644
index c2658d7d..00000000
--- a/node_modules/indexes-of/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules/
diff --git a/node_modules/indexes-of/LICENSE b/node_modules/indexes-of/LICENSE
deleted file mode 100644
index b799ec00..00000000
--- a/node_modules/indexes-of/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2013 Dominic Tarr
-
-Permission is hereby granted, free of charge,
-to any person obtaining a copy of this software and
-associated documentation files (the "Software"), to
-deal in the Software without restriction, including
-without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom
-the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice
-shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/indexes-of/README.md b/node_modules/indexes-of/README.md
deleted file mode 100644
index 90a3741f..00000000
--- a/node_modules/indexes-of/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# indexes-of
-
-like Array/String#indexOf but return all the indexes in an array.
-
-``` js
-var indexesOf = require('indexes-of')
-
-var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)
-
-console.log(twosIndexes)
-
-// [1, 7]
-
-```
-
-# Haiku
-
-* A 5 line module.
-* But the tests are 40 lines.
-* npm publish.
-
-## License
-
-MIT
diff --git a/node_modules/indexes-of/index.js b/node_modules/indexes-of/index.js
deleted file mode 100644
index fda337d3..00000000
--- a/node_modules/indexes-of/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = function (ary, item) {
- var i = -1, indexes = []
- while((i = ary.indexOf(item, i + 1)) !== -1)
- indexes.push(i)
- return indexes
-}
diff --git a/node_modules/indexes-of/package.json b/node_modules/indexes-of/package.json
deleted file mode 100644
index e6346cf1..00000000
--- a/node_modules/indexes-of/package.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "indexes-of",
- "description": "line String/Array#indexOf but return all the indexes in an array",
- "version": "1.0.1",
- "homepage": "https://github.com/dominictarr/indexes-of",
- "repository": {
- "type": "git",
- "url": "git://github.com/dominictarr/indexes-of.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "author": "Dominic Tarr <dominic.tarr@gmail.com> (dominictarr.com)",
- "license": "MIT",
- "devDependencies": {
- "tape": "~2.1.0"
- }
-}
diff --git a/node_modules/indexes-of/test.js b/node_modules/indexes-of/test.js
deleted file mode 100644
index b6103d58..00000000
--- a/node_modules/indexes-of/test.js
+++ /dev/null
@@ -1,38 +0,0 @@
-
-var tape = require('tape')
-
-var indexes = require('./')
-
-tape('indexes of - 2 matches', function (t) {
- var x = indexes([1,2,3, 2,4,5,9,8,0], 2)
- t.deepEqual(x, [1,3])
- t.end()
-})
-
-
-tape('indexes of - 1 match', function (t) {
- var x = indexes([1,2,3, 2,4,5,9,8,0], 2)
- t.deepEqual(x, [1,3])
- t.end()
-})
-
-
-tape('indexes of - empty', function (t) {
- var x = indexes([1,2,3, 2,4,5,9,8,0], 24)
- t.deepEqual(x, [])
- t.end()
-})
-
-
-tape('indexes of - empty', function (t) {
- var x = indexes([8,8,8,8,8,8,8], 8)
- t.deepEqual(x, [0,1,2,3,4,5,6])
- t.end()
-})
-
-
-tape('indexes of - string', function (t) {
- var x = indexes('foo bar baz foo', 'foo')
- t.deepEqual(x, [0, 12])
- t.end()
-})