First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
19
node_modules/dom-walk/LICENCE
generated
vendored
Normal file
19
node_modules/dom-walk/LICENCE
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2012 Raynos.
|
||||
|
||||
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.
|
2
node_modules/dom-walk/Makefile
generated
vendored
Normal file
2
node_modules/dom-walk/Makefile
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
run:
|
||||
./node_modules/.bin/browserify-server --cwd example
|
23
node_modules/dom-walk/README.md
generated
vendored
Normal file
23
node_modules/dom-walk/README.md
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# dom-walk
|
||||
|
||||
iteratively walk a DOM node
|
||||
|
||||
## Example
|
||||
|
||||
``` js
|
||||
var walk = require("dom-walk")
|
||||
|
||||
walk(document.body.childNodes, function (node) {
|
||||
console.log("node", node)
|
||||
})
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
`npm install dom-walk`
|
||||
|
||||
## Contributors
|
||||
|
||||
- Raynos
|
||||
|
||||
## MIT Licenced
|
5
node_modules/dom-walk/example/index.js
generated
vendored
Normal file
5
node_modules/dom-walk/example/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
var walk = require("../index")
|
||||
|
||||
walk(document, function (node) {
|
||||
console.log("node", node)
|
||||
})
|
24
node_modules/dom-walk/index.js
generated
vendored
Normal file
24
node_modules/dom-walk/index.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
var slice = Array.prototype.slice
|
||||
|
||||
module.exports = iterativelyWalk
|
||||
|
||||
function iterativelyWalk(nodes, cb) {
|
||||
if (!('length' in nodes)) {
|
||||
nodes = [nodes]
|
||||
}
|
||||
|
||||
nodes = slice.call(nodes)
|
||||
|
||||
while(nodes.length) {
|
||||
var node = nodes.shift(),
|
||||
ret = cb(node)
|
||||
|
||||
if (ret) {
|
||||
return ret
|
||||
}
|
||||
|
||||
if (node.childNodes && node.childNodes.length) {
|
||||
nodes = slice.call(node.childNodes).concat(nodes)
|
||||
}
|
||||
}
|
||||
}
|
63
node_modules/dom-walk/package.json
generated
vendored
Normal file
63
node_modules/dom-walk/package.json
generated
vendored
Normal file
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"_from": "dom-walk@^0.1.0",
|
||||
"_id": "dom-walk@0.1.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==",
|
||||
"_location": "/dom-walk",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "dom-walk@^0.1.0",
|
||||
"name": "dom-walk",
|
||||
"escapedName": "dom-walk",
|
||||
"rawSpec": "^0.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/min-document"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz",
|
||||
"_shasum": "0c548bef048f4d1f2a97249002236060daa3fd84",
|
||||
"_spec": "dom-walk@^0.1.0",
|
||||
"_where": "F:\\Documents\\websites\\BMM\\node_modules\\min-document",
|
||||
"author": {
|
||||
"name": "Raynos",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Raynos/dom-walk/issues",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jake Verbaten"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "iteratively walk a DOM node",
|
||||
"devDependencies": {
|
||||
"budo": "11.6.3"
|
||||
},
|
||||
"homepage": "https://github.com/Raynos/dom-walk",
|
||||
"keywords": [],
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "http://github.com/Raynos/dom-walk/raw/master/LICENSE"
|
||||
}
|
||||
],
|
||||
"main": "index",
|
||||
"name": "dom-walk",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Raynos/dom-walk.git"
|
||||
},
|
||||
"scripts": {
|
||||
"example": "budo example/index.js"
|
||||
},
|
||||
"version": "0.1.2"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue