Browse Source

Fix the fixes

master
John ShaggyTwoDope Jenkins 6 years ago
parent
commit
3ce20b84f8
100 changed files with 37055 additions and 0 deletions
  1. 19
    0
      wiki-stream/PKGBUILD
  2. BIN
      wiki-stream/nodejs-wiki-stream-0.0.5-1-any.pkg.tar.xz
  3. BIN
      wiki-stream/nodejs-wiki-stream-0.0.5-1.src.tar.gz
  4. BIN
      wiki-stream/pkg/nodejs-wiki-stream/.MTREE
  5. 24
    0
      wiki-stream/pkg/nodejs-wiki-stream/.PKGINFO
  6. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/bin/wikistream
  7. 2
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/.npmignore
  8. 64
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/index.js
  9. 10
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.jshintrc
  10. 9
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.npmignore
  11. 7
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.travis.yml
  12. 47
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/CONTRIBUTING.md
  13. 482
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/History.md
  14. 36
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/Makefile
  15. 877
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/Readme.md
  16. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/coverage.json
  17. 350
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/index.html
  18. 355
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/index.js.html
  19. 1558
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/api/attributes.js.html
  20. 676
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/api/css.js.html
  21. 389
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/api/index.html
  22. 1231
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/api/manipulation.js.html
  23. 1570
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/api/traversing.js.html
  24. 805
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/cheerio.js.html
  25. 389
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/index.html
  26. 580
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/parse.js.html
  27. 802
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/static.js.html
  28. 475
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/lib/utils.js.html
  29. 376
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/index.html
  30. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/prettify.css
  31. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/prettify.js
  32. 1652
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov.info
  33. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/index.js
  34. 416
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/api/attributes.js
  35. 118
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/api/css.js
  36. 303
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/api/manipulation.js
  37. 423
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/api/traversing.js
  38. 161
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/cheerio.js
  39. 86
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/parse.js
  40. 160
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/static.js
  41. 51
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/lib/utils.js
  42. 5
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/.travis.yml
  43. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/LICENSE
  44. 57
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/README.md
  45. 67
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/browser_functions.js
  46. 54
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/index.js
  47. 178
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/attributes.js
  48. 8
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/basefunctions.js
  49. 84
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/compile.js
  50. 80
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/general.js
  51. 84
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/nth-check.js
  52. 338
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/pseudos.js
  53. 59
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/lib/sort.js
  54. 5
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/.travis.yml
  55. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/LICENSE
  56. 182
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/index.js
  57. 70
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/package.json
  58. 46
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/readme.md
  59. 14664
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/tests/out.json
  60. 392
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/CSSwhat/tests/test.js
  61. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/LICENSE
  62. 14
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/index.js
  63. 31
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/helpers.js
  64. 87
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/legacy.js
  65. 77
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/manipulation.js
  66. 94
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/querying.js
  67. 93
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/stringify.js
  68. 24
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/lib/traversal.js
  69. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/node_modules/domelementtype/LICENSE
  70. 14
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/node_modules/domelementtype/index.js
  71. 46
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/node_modules/domelementtype/package.json
  72. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/node_modules/domelementtype/readme.md
  73. 71
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/package.json
  74. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/readme.md
  75. 6
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/test/fixture.js
  76. 29
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/test/tests/helpers.js
  77. 119
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/test/tests/legacy.js
  78. 9
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/node_modules/domutils/test/utils.js
  79. 56
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/package.json
  80. 31
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/api.js
  81. 2
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/mocha.opts
  82. 117
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/nth-check.js
  83. 22
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/nwmatcher/LICENSE
  84. 467
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/nwmatcher/index.js
  85. 92
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/nwmatcher/test.html
  86. 132
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/qwery/index.html
  87. 549
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/qwery/index.js
  88. 1
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/sizzle/data/fries.xml
  89. 247
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/sizzle/data/index.html
  90. 87
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/sizzle/data/testinit.js
  91. 1211
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/sizzle/selector.js
  92. 22
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/test.js
  93. 10
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/tools/bench.js
  94. 2034
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/tools/docs/W3C_Selectors.html
  95. 51
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/tools/helper.js
  96. 76
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/CSSselect/test/tools/slickspeed.js
  97. 4
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/dom-serializer/.travis.yml
  98. 182
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/dom-serializer/index.js
  99. 11
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/LICENSE
  100. 0
    0
      wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js

+ 19
- 0
wiki-stream/PKGBUILD View File

@@ -0,0 +1,19 @@
# Maintainer: John Jenkins twodopeshaggy@gmail.com
_npmname=wiki-stream
pkgname=nodejs-wiki-stream
pkgver=0.0.5
pkgrel=1
pkgdesc="Automated explorer for wikipedia."
arch=(any)
url="https://github.com/joshhartigan/wiki-stream"
license=(Simplifed BSD License)
depends=('nodejs')
optdepends=()

package() {
cd $srcdir
local _npmdir="$pkgdir/usr/lib/node_modules/"
mkdir -p "$_npmdir"
cd "$_npmdir"
npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
}

BIN
wiki-stream/nodejs-wiki-stream-0.0.5-1-any.pkg.tar.xz View File


BIN
wiki-stream/nodejs-wiki-stream-0.0.5-1.src.tar.gz View File


BIN
wiki-stream/pkg/nodejs-wiki-stream/.MTREE View File


+ 24
- 0
wiki-stream/pkg/nodejs-wiki-stream/.PKGINFO View File

@@ -0,0 +1,24 @@
# Generated by makepkg 4.2.0
# using fakeroot version 1.20.2
# Tue Dec 30 04:13:51 UTC 2014
pkgname = nodejs-wiki-stream
pkgver = 0.0.5-1
pkgdesc = Automated explorer for wikipedia.
url = https://github.com/joshhartigan/wiki-stream
builddate = 1419912831
packager = Unknown Packager
size = 5296128
arch = any
license = Simplifed
license = BSD
license = License
depend = nodejs
makepkgopt = strip
makepkgopt = docs
makepkgopt = !libtool
makepkgopt = !staticlibs
makepkgopt = emptydirs
makepkgopt = zipman
makepkgopt = purge
makepkgopt = !upx
makepkgopt = !debug

+ 1
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/bin/wikistream View File

@@ -0,0 +1 @@
../lib/node_modules/wiki-stream/index.js

+ 2
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/.npmignore View File

@@ -0,0 +1,2 @@
.DS_Store
node_modules

+ 64
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/index.js View File

@@ -0,0 +1,64 @@
#!/usr/bin/env node
console.log() // seperate output from rest of shell activity

var cheerio = require('cheerio')
var req = require('request')

var search = process.argv[2]

var errorEmoji = '❗'
if (!search) {
console.log(errorEmoji + ' problem: empty search term')
process.exit(1)
} else {
getWikiPage(search)
console.log(search + '...')
}

var visitedPages = []

function getWikiPage(name) {
var wikiPage = 'http://en.wikipedia.org/wiki/' +
name.replace(' ', '_')
console.log(wikiPage)

req( wikiPage, function(err, response, data) {

if (err) {
console.log(errorEmoji + err)
process.exit(1)
}

if (response.statusCode === 404) {
console.log(errorEmoji + ' problem: ' + wikiPage +
' can\'t be found!')
process.exit(1)
}

if (response.statusCode === 200) {
var $ = cheerio.load(data)

var validLinks = $('p>a')
var linkIndex = Math.floor( ( Math.random() * $('p>a').length ) + 1 )

try {
var firstLinkName = validLinks[linkIndex].children[0].data
console.log('\nlinks to ' + firstLinkName + '...')
} catch(e) {
process.exit(1)
}

var firstLink = validLinks[linkIndex].attribs.href.replace('/wiki/', '')

if ( visitedPages.indexOf(firstLink) >= 0 ) {
console.log('You reached full circle! The stream ends.')
} else {
visitedPages.push(firstLink)
getWikiPage(firstLink)
}
}

})
}



+ 10
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.jshintrc View File

@@ -0,0 +1,10 @@
{
"indent": 2,
"eqnull": true,
"laxbreak": true,
"proto": true,
"undef": true,
"unused": true,
"node": true,
"quotmark": "single"
}

+ 9
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.npmignore View File

@@ -0,0 +1,9 @@
benchmark/
src/
support/
tests/
examples/
*.sock
*.tmproj
coverage.html
lib-cov

+ 7
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/.travis.yml View File

@@ -0,0 +1,7 @@
language: node_js
node_js:
- "0.10"
- 0.11
script: make travis-test
matrix:
fast_finish: true

+ 47
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/CONTRIBUTING.md View File

@@ -0,0 +1,47 @@
# Contributing to Cheerio

Thanks for your interest in contributing to the project! Here's a rundown of
how we'd like to work with you:

1. File an issue on GitHub describing the contribution you'd like to make. This
will help us to get you started on the right foot.
2. Create a single commit that addresses the issue:
1. Follow the project's code style (see below)
2. Add enough unit tests to "prove" that your patch is correct
3. Update the project documentation as needed (see below)
4. Describe your approach with as much detail as necessary in the git
commit message
3. Open a pull request, and reference the initial issue in the pull request
message.

# Documentation

Any API change should be reflected in the project's README.md file. Reuse
[jQuery's documentation](http://api.jquery.com) wherever possible, but take
care to note aspects that make Cheerio distinct.

# Code Style

This section is by no means complete. For undocumented stylistic choices,
please try to maintain consistency with the code base.

- Single quotes: `'`
- Whitespace
- Two-space "soft" tabs
- Once space following control flow statements (`if (condition) {` rather
than `if(condition) {`)
- Remove trailing spaces
- [End each file with a newline
character.](https://github.com/editorconfig/editorconfig/wiki/Newline-at-End-of-File-Support)
- Terminate every statement with a semicolon
- Private functionality (for re-using functionality that isn't part of the
jQuery API)
- *Static methods*: If the functionality does not require a reference to a
Cheerio instance, simply define a named function within the module it is
needed.
- *Instance methods*: If the functionality requires a reference to a Cheerio
instance, informally define the method as "private" using the following
conventions:
- Define the method as a function on the Cheerio prototype
- Prefix the method name with an underscore (`_`) character
- Include `@api private` in the code comment the documents the method

+ 482
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/History.md View File

@@ -0,0 +1,482 @@

0.18.0 / 2014-11-06
==================

* bump htmlparser2 dependency to ~3.8.1 (Chris Rebert)
* Correct unit test titles (Mike Pennisi)
* Correct behavior of `after` and `before` (Mike Pennisi)
* implement jQuery's .has() (Chris Rebert)
* Update repository url (haqii)
* attr() should return undefined or name for booleans (Raoul Millais)
* Update Readme.md (Ryan Breen)
* Implement `Cheerio#not` (Mike Pennisi)
* Clone nodes according to original parsing options (Mike Pennisi)
* fix lint error (David Chambers)
* Add explicit tests for DOM level 1 API (Mike Pennisi)
* Expose DOM level 1 API for Node-like objects (Mike Pennisi)
* Correct error in documentation (Mike Pennisi)
* Return a fully-qualified Function from `$.load` (Mike Pennisi)
* Update tests to avoid duck typing (Mike Pennisi)
* Alter "loaded" functions to produce true instances (Mike Pennisi)
* Organize tests for `cheerio.load` (Mike Pennisi)
* Complete `$.prototype.find` (Mike Pennisi)
* Use JSHint's `extends` option (Mike Pennisi)
* Remove aliases for exported methods (Mike Pennisi)
* Disallow unused variables (Mike Pennisi)
* Remove unused internal variables (Mike Pennisi)
* Remove unused variables from unit tests (Mike Pennisi)
* Remove unused API method references (Mike Pennisi)
* Move tests for `contains` method (Mike Pennisi)
* xyz@0.4.0 (David Chambers)
* Created a wiki for companies using cheerio in production (Matthew Mueller)
* Implement `$.prototype.index` (Mike Pennisi)
* Implement `$.prototype.addBack` (Mike Pennisi)
* Added double quotes to radio attribute name to account for characters such as brackets (akant10)
* Update History.md (Gabriel Falkenberg)
* add 0.17.0 changelog (David Chambers)
* exit prepublish script if tag not found (David Chambers)
* alphabetize devDependencies (fb55)
* ignore coverage dir (fb55)
* submit coverage to coveralls (fb55)
* replace jscoverage with istanbul (fb55)

0.17.0 / 2014-06-10
==================

* Fix bug in internal `uniqueSplice` function (Mike Pennisi)
* accept buffer argument to cheerio.load (David Chambers)
* Respect options on the element level (Alex Indigo)
* Change state definition to more readable (Artem Burtsev)
* added test (0xBADC0FFEE)
* add class only if doesn't exist (Artem Burtsev)
* Made it less insane. (Alex Indigo)
* Implement `Cheerio#add` (Mike Pennisi)
* Use "loaded" instance of Cheerio in unit tests (Mike Pennisi)
* Be more strict with object check. (Alex Indigo)
* Added options argument to .html() static method. (Alex Indigo)
* Fixed encoding mishaps. Adjusted tests. (Alex Indigo)
* use dom-serializer module (fb55)
* don't test on 0.8, don't ignore 0.11 (Felix Böhm)
* parse: rm unused variables (coderaiser)
* cheerio: rm unused variable (coderaiser)
* Fixed test (Avi Kohn)
* Added test (Avi Kohn)
* Changed == to === (Avi Kohn)
* Fixed a bug in removing type="hidden" attr (Avi Kohn)
* sorted (Alexey Raspopov)
* add `muted` attr to booleanAttributes (Alexey Raspopov)
* fixed context of `this` in .html (Felix Böhm)
* append new elements for each element in selection (fb55)

0.16.0 / 2014-05-08
==================

* fix `make bench` (David Chambers)
* makefile: add release-* targets (David Chambers)
* alphabetize dependencies (David Chambers)
* Rewrite `data` internals with caching behavior (Mike Pennisi)
* Fence .val example as js (Kevin Sawicki)
* Fixed typos. Deleted trailing whitespace from test/render.js (Nattaphoom Ch)
* Fix manipulation APIs with removed elements (kpdecker)
* Perform manual string parsing for hasClass (kpdecker)
* Fix existing element removal (kpdecker)
* update render tests (Felix Böhm)
* fixed cheerio path (Felix Böhm)
* use `entities.escape` for attribute values (Felix Böhm)
* bump entities version (Felix Böhm)
* remove lowerCaseTags option from readme (Felix Böhm)
* added test case for .html in xmlMode (fb55)
* render xml in `html()` when `xmlMode: true` (fb55)
* use a map for booleanAttributes (fb55)
* update singleTags, use utils.isTag (fb55)
* update travis badge URL (Felix Böhm)
* use typeof instead of _.isString and _.isNumber (fb55)
* use Array.isArray instead of _.isArray (fb55)
* replace _.isFunction with typeof (fb55)
* removed unnecessary error message (fb55)
* decode entities in htmlparser2 (fb55)
* pass options object to CSSselect (fb55)

0.15.0 / 2014-04-08
==================

* Update callbacks to pass element per docs (@kpdecker)
* preserve options (@fb55)
* Use SVG travis badge (@t3chnoboy)
* only use static requires (@fb55)
* Optimize manipulation methods (@kpdecker)
* Optimize add and remove class cases (@kpdecker)
* accept dom of DomHandler to cheerio.load (@nleush)
* added parentsUntil method (@finspin)
* Add performance optimization and bug fix `empty` method (@kpdecker)

0.14.0 / 2014-04-01
==================

* call encodeXML and directly expose decodeHTML (@fb55)
* use latest htmlparser2 and entities versions (@fb55)
* Deprecate `$.fn.toArray` (@jugglinmike)
* Implement `$.fn.get` (@jugglinmike)
* .replaceWith now replaces all selected elements. (@xavi-)
* Correct arguments for 'replaceWith' callback (@jugglinmike)
* switch to lodash (@fb55)
* update to entities@0.5.0 (@fb55)
* Fix attr when $ collection contains text modules (@kpdecker)
* Update to latest version of expect.js (@jugglinmike)
* Remove nodes from their previous structures (@jugglinmike)
* Update render.js (@stevenvachon)
* CDATA test (@stevenvachon)
* only ever one child index for cdata (@stevenvachon)
* don't loop through cdata children array (@stevenvachon)
* proper rendering of CDATA (@stevenvachon)
* Add cheerio-only bench option (@kpdecker)
* Avoid delete operations (@kpdecker)
* Add independent html benchmark (@kpdecker)
* Cache tag check in render (@kpdecker)
* Simplify attribute rendering step (@kpdecker)
* Add html rendering bench case (@kpdecker)
* Remove unnecessary check from removeAttr (@kpdecker)
* Remove unnecessary encoding step for attrs (@kpdecker)
* Add test for removeAttr+attr on boolean attributes (@kpdecker)
* Add single element benchmark case (@kpdecker)
* Optimize filter with selector (@kpdecker)
* Fix passing context as dom node (@alfred-nsh)
* Fix bug in `nextUntil` (@jugglinmike)
* Fix bug in `nextAll` (@jugglinmike)
* Implement `selector` argument of `next` method (@jugglinmike)
* Fix bug in `prevUntil` (@jugglinmike)
* Implement `selector` argument of `prev` method (@jugglinmike)
* Fix bug in `prevAll` (@jugglinmike)
* Fix bug in `siblings` (@jugglinmike)
* Avoid unnecessary indexOf from toggleClass (@kpdecker)
* Use strict equality rather than falsy check in eq (@kpdecker)
* Add benchmark coverage for all $ APIs (@kpdecker)
* Optimize filter Cheerio intermediate creation (@kpdecker)
* Optimize siblings cheerio instance creation (@kpdecker)
* Optimize identity cases for first/last/eq (@kpdecker)
* Use domEach for traversal (@kpdecker)
* Inline children lookup in find (@kpdecker)
* Use domEach in data accessor (@kpdecker)
* Avoid cheerio creation in add/remove/toggleClass (@kpdecker)
* Implement getAttr local helper (@kpdecker)

0.13.1 / 2014-01-07
==================

* Fix select with context in Cheerio function (@jugglinmike)
* Remove unecessary DOM maintenance logic (@jugglinmike)
* Deprecate support for node 0.6

0.13.0 / 2013-12-30
==================

* Remove "root" node (@jugglinmike)
* Fix bug in `prevAll`, `prev`, `nextAll`, `next`, `prevUntil`, `nextUntil` (@jugglinmike)
* Fix `replaceWith` method (@jugglinmike)
* added nextUntil() and prevUntil() (@finspin)
* Remove internal `connect` function (@jugglinmike)
* Rename `Cheerio#make` to document private status (@jugginmike)
* Remove extraneous call to `_.uniq` (@jugglinmike)
* Use CSSselect library directly (@jugglinmike)
* Run CI against Node v0.11 as an allowed failure (@jugginmike)
* Correct bug in `Cheerio#parents` (@jugglinmike)
* Implement `$.fn.end` (@jugginmike)
* Ignore colons inside of url(.*) when parsing css (@Meekohi)
* Introduce rudimentary benchmark suite (@jugglinmike)
* Update HtmlParser2 version (@jugglinmike)
* Correct inconsistency in `$.fn.map` (@jugglinmike)
* fixed traversing tests (@finspin)
* Simplify `make` method (@jugglinmike)
* Avoid shadowing instance methods from arrays (@jugglinmike)

0.12.4 / 2013-11-12
==================

* Coerce JSON values returned by `data` (@jugglinmike)
* issue #284: when rendering HTML, use original data attributes (@Trott)
* Introduce JSHint for automated code linting (@jugglinmike)
* Prevent `find` from returning duplicate elements (@jugglinmike)
* Implement function signature of `replaceWith` (@jugglinmike)
* Implement function signature of `before` (@jugglinmike)
* Implement function signature of `after` (@jugglinmike)
* Implement function signature of `append`/`prepend` (@jugglinmike)
* Extend iteration methods to accept nodes (@jugglinmike)
* Improve `removeClass` (@jugglinmike)
* Complete function signature of `addClass` (@jugglinmike)
* Fix bug in `removeClass` (@jugglinmike)
* Improve contributing.md (@jugglinmike)
* Fix and document .css() (@jugglinmike)

0.12.3 / 2013-10-04
===================

* Add .toggleClass() function (@cyberthom)
* Add contributing guidelines (@jugglinmike)
* Fix bug in `siblings` (@jugglinmike)
* Correct the implementation `filter` and `is` (@jugglinmike)
* add .data() function (@andi-neck)
* add .css() (@yields)
* Implements contents() (@jlep)

0.12.2 / 2013-09-04
==================

* Correct implementation of `$.fn.text` (@jugglinmike)
* Refactor Cheerio array creation (@jugglinmike)
* Extend manipulation methods to accept Arrays (@jugglinmike)
* support .attr(attributeName, function(index, attr)) (@xiaohwan)

0.12.1 / 2013-07-30
==================

* Correct behavior of `Cheerio#parents` (@jugglinmike)
* Double quotes inside attributes kills HTML (@khoomeister)
* Making next({}) and prev({}) return empty object (@absentTelegraph)
* Implement $.parseHTML (@jugglinmike)
* Correct bug in jQuery.fn.closest (@jugglinmike)
* Correct behavior of $.fn.val on 'option' elements (@jugglinmike)

0.12.0 / 2013-06-09
===================

* Breaking Change: Changed context from parent to the actual passed one (@swissmanu)
* Fixed: jquery checkbox val behavior (@jhubble)
* Added: output xml with $.xml() (@Maciek416)
* Bumped: htmlparser2 to 3.1.1
* Fixed: bug in attr(key, val) on empty objects (@farhadi)
* Added: prevAll, nextAll (@lessmind)
* Fixed: Safety check in parents and closest (@zero21xxx)
* Added: .is(sel) (@zero21xxx)

0.11.0 / 2013-04-22
==================

* Added: .closest() (@jeremy-dentel)
* Added: .parents() (@zero21xxx)
* Added: .val() (@rschmukler & @leahciMic)
* Added: Travis support for node 0.10.0 (@jeremy-dentel)
* Fixed: .find() if no selector (@davidchambers)
* Fixed: Propagate syntax errors caused by invalid selectors (@davidchambers)

0.10.8 / 2013-03-11
==================

* Add slice method (SBoudrias)

0.10.7 / 2013-02-10
==================

* Code & doc cleanup (davidchambers)
* Fixed bug in filter (jugglinmike)

0.10.6 / 2013-01-29
==================

* Added `$.contains(...)` (jugglinmike)
* formatting cleanup (davidchambers)
* Bug fix for `.children()` (jugglinmike & davidchambers)
* Remove global `render` bug (wvl)

0.10.5 / 2012-12-18
===================

* Fixed botched publish from 0.10.4 - changes should now be present

0.10.4 / 2012-12-16
==================

* $.find should query descendants only (@jugglinmike)
* Tighter underscore dependency

0.10.3 / 2012-11-18
===================

* fixed outer html bug
* Updated documentation for $(...).html() and $.html()

0.10.2 / 2012-11-17
===================

* Added a toString() method (@bensheldon)
* use `_.each` and `_.map` to simplify cheerio namesakes (@davidchambers)
* Added filter() with tests and updated readme (@bensheldon & @davidchambers)
* Added spaces between attributes rewritten by removeClass (@jos3000)
* updated docs to remove reference to size method (@ironchefpython)
* removed HTML tidy/pretty print from cheerio

0.10.1 / 2012-10-04
===================

* Fixed regression, filtering with a context (#106)

0.10.0 / 2012-09-24
===================

* Greatly simplified and reorganized the library, reducing the loc by 30%
* Now supports mocha's test-coverage
* Deprecated self-closing tags (HTML5 doesn't require them)
* Fixed error thrown in removeClass(...) @robashton

0.9.2 / 2012-08-10
==================

* added $(...).map(fn)
* manipulation: refactor `makeCheerioArray`
* make .removeClass() remove *all* occurrences (#64)

0.9.1 / 2012-08-03
==================

* fixed bug causing options not to make it to the parser

0.9.0 / 2012-07-24
==================

* Added node 8.x support
* Removed node 4.x support
* Add html(dom) support (@wvl)
* fixed xss vulnerabilities on .attr(), .text(), & .html() (@benatkin, @FB55)
* Rewrote tests into javascript, removing coffeescript dependency (@davidchambers)
* Tons of cleanup (@davidchambers)

0.8.3 / 2012-06-12
==================

* Fixed minor package regression (closes #60)

0.8.2 / 2012-06-11
==================

* Now fails gracefully in cases that involve special chars, which is inline with jQuery (closes #59)
* text() now decode special entities (closes #52)
* updated travis.yml to test node 4.x

0.8.1 / 2012-06-02
==================

* fixed regression where if you created an element, it would update the root
* compatible with node 4.x (again)

0.8.0 / 2012-05-27
==================

* Updated CSS parser to use FB55/CSSselect. Cheerio now supports most CSS3 psuedo selectors thanks to @FB55.
* ignoreWhitespace now on by default again. See #55 for context.
* Changed $(':root') to $.root(), cleaned up $.clone()
* Support for .eq(i) thanks to @alexbardas
* Removed support for node 0.4.x
* Fixed memory leak where package.json was continually loaded
* Tons more tests

0.7.0 / 2012-04-08
==================

* Now testing with node v0.7.7
* Added travis-ci integration
* Replaced should.js with expect.js. Browser testing to come
* Fixed spacing between attributes and their values
* Added HTML tidy/pretty print
* Exposed node-htmlparser2 parsing options
* Revert .replaceWith(...) to be consistent with jQuery

0.6.2 / 2012-02-12
==================

* Fixed .replaceWith(...) regression

0.6.1 / 2012-02-12
==================

* Added .first(), .last(), and .clone() commands.
* Option to parse using whitespace added to `.load`.
* Many bug fixes to make cheerio more aligned with jQuery.
* Added $(':root') to select the highest level element.

Many thanks to the contributors that made this release happen: @ironchefpython and @siddMahen

0.6.0 / 2012-02-07
==================

* *Important:* `$(...).html()` now returns inner HTML, which is in line with the jQuery spec
* `$.html()` returns the full HTML string. `$.html([cheerioObject])` will return the outer(selected element's tag) and inner HTML of that object
* Fixed bug that prevented HTML strings with depth (eg. `append('<ul><li><li></ul>')`) from getting `parent`, `next`, `prev` attributes.
* Halted [htmlparser2](https://github.com/FB55/node-htmlparser) at v2.2.2 until single attributes bug gets fixed.

0.5.1 / 2012-02-05
==================

* Fixed minor regression: $(...).text(fn) would fail

0.5.1 / 2012-02-05
==================

* Fixed regression: HTML pages with comments would fail

0.5.0 / 2012-02-04
==================

* Transitioned from Coffeescript back to Javascript
* Parser now ignores whitespace
* Fixed issue with double slashes on self-enclosing tags
* Added boolean attributes to html rendering

0.4.2 / 2012-01-16
==================

* Multiple selectors support: $('.apple, .orange'). Thanks @siddMahen!
* Update package.json to always use latest cheerio-soupselect
* Fix memory leak in index.js

0.4.1 / 2011-12-19
==================
* Minor packaging changes to allow `make test` to work from npm installation

0.4.0 / 2011-12-19
==================

* Rewrote all unit tests as cheerio transitioned from vows -> mocha
* Internally, renderer.render -> render(...), parser.parse -> parse(...)
* Append, prepend, html, before, after all work with only text (no tags)
* Bugfix: Attributes can now be removed from script and style tags
* Added yield as a single tag
* Cheerio now compatible with node >=0.4.7

0.3.2 / 2011-12-1
=================

* Fixed $(...).text(...) to work with "root" element

0.3.1 / 2011-11-25
==================

* Now relying on cheerio-soupselect instead of node-soupselect
* Removed all lingering htmlparser dependencies
* parser now returns parent "root" element. Root now never needs to be updated when there is multiple roots. This fixes ongoing issues with before(...), after(...) and other manipulation functions
* Added jQuery's $(...).replaceWith(...)

0.3.0 / 2011-11-19
==================

* Now using htmlparser2 for parsing (2x speed increase, cleaner, actively developed)
* Added benchmark directory for future speed tests
* $('...').dom() was funky, so it was removed in favor of $('...').get(). $.dom() still works the same.
* $.root now correctly static across all instances of $
* Added a screencast

0.2.2 / 2011-11-9
=================

* Traversing will select `<script>` and `<style>` tags (Closes Issue: #8)
* .text(string) now working with empty elements (Closes Issue: #7)
* Fixed before(...) & after(...) again if there is no parent (Closes Issue: #2)

0.2.1 / 2011-11-5
=================

* Fixed before(...) & after(...) if there is no parent (Closes Issue: #2)
* Comments now rendered correctly (Closes Issue: #5)

< 0.2.0 / 2011-10-31
====================

* Initial release (untracked development)

+ 36
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/Makefile View File

@@ -0,0 +1,36 @@
REPORTER = dot
XYZ = node_modules/.bin/xyz --message 'Release X.Y.Z' --tag X.Y.Z --repo git@github.com:cheeriojs/cheerio.git --script scripts/prepublish

lint:
@./node_modules/.bin/jshint lib/ test/

test: lint
@./node_modules/.bin/mocha --reporter $(REPORTER)

setup:
@npm install

subl:
@subl lib/ test/ package.json index.js

test-cov:
@./node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --reporter $(REPORTER)

report-cov: test-cov
@cat coverage/lcov.info | ./node_modules/.bin/coveralls

travis-test: lint
@make report-cov || echo "Couldn't submit"

bench:
@./benchmark/benchmark.js

.PHONY: release-major release-minor release-patch
release-major: LEVEL = major
release-minor: LEVEL = minor
release-patch: LEVEL = patch

release-major release-minor release-patch:
@$(XYZ) --increment $(LEVEL)

.PHONY: test build setup subl

+ 877
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/Readme.md View File

@@ -0,0 +1,877 @@
# cheerio [![Build Status](https://secure.travis-ci.org/cheeriojs/cheerio.svg?branch=master)](http://travis-ci.org/cheeriojs/cheerio)

Fast, flexible, and lean implementation of core jQuery designed specifically for the server.

## Introduction
Teach your server HTML.

```js
var cheerio = require('cheerio'),
$ = cheerio.load('<h2 class="title">Hello world</h2>');

$('h2.title').text('Hello there!');
$('h2').addClass('welcome');

$.html();
//=> <h2 class="title welcome">Hello there!</h2>
```

## Installation
`npm install cheerio`

## Features
__&#10084; Familiar syntax:__
Cheerio implements a subset of core jQuery. Cheerio removes all the DOM inconsistencies and browser cruft from the jQuery library, revealing its truly gorgeous API.

__&#991; Blazingly fast:__
Cheerio works with a very simple, consistent DOM model. As a result parsing, manipulating, and rendering are incredibly efficient. Preliminary end-to-end benchmarks suggest that cheerio is about __8x__ faster than JSDOM.

__&#10049; Incredibly flexible:__
Cheerio wraps around @FB55's forgiving [htmlparser2](https://github.com/fb55/htmlparser2/). Cheerio can parse nearly any HTML or XML document.

## What about JSDOM?
I wrote cheerio because I found myself increasingly frustrated with JSDOM. For me, there were three main sticking points that I kept running into again and again:

__&#8226; JSDOM's built-in parser is too strict:__
JSDOM's bundled HTML parser cannot handle many popular sites out there today.

__&#8226; JSDOM is too slow:__
Parsing big websites with JSDOM has a noticeable delay.

__&#8226; JSDOM feels too heavy:__
The goal of JSDOM is to provide an identical DOM environment as what we see in the browser. I never really needed all this, I just wanted a simple, familiar way to do HTML manipulation.

## When I would use JSDOM

Cheerio will not solve all your problems. I would still use JSDOM if I needed to work in a browser-like environment on the server, particularly if I wanted to automate functional tests.

## API

### Markup example we'll be using:

```html
<ul id="fruits">
<li class="apple">Apple</li>
<li class="orange">Orange</li>
<li class="pear">Pear</li>
</ul>
```

This is the HTML markup we will be using in all of the API examples.

### Loading
First you need to load in the HTML. This step in jQuery is implicit, since jQuery operates on the one, baked-in DOM. With Cheerio, we need to pass in the HTML document.

This is the _preferred_ method:

```js
var cheerio = require('cheerio'),
$ = cheerio.load('<ul id="fruits">...</ul>');
```

Optionally, you can also load in the HTML by passing the string as the context:

```js
$ = require('cheerio');
$('ul', '<ul id="fruits">...</ul>');
```

Or as the root:

```js
$ = require('cheerio');
$('li', 'ul', '<ul id="fruits">...</ul>');
```

You can also pass an extra object to `.load()` if you need to modify any
of the default parsing options:

```js
$ = cheerio.load('<ul id="fruits">...</ul>', {
normalizeWhitespace: true,
xmlMode: true
});
```

These parsing options are taken directly from [htmlparser2](https://github.com/fb55/htmlparser2/wiki/Parser-options), therefore any options that can be used in `htmlparser2` are valid in cheerio as well. The default options are:

```js
{
normalizeWhitespace: false,
xmlMode: false,
decodeEntities: true
}

```

For a full list of options and their effects, see [this](https://github.com/fb55/DomHandler) and
[htmlparser2's options](https://github.com/fb55/htmlparser2/wiki/Parser-options).

### Selectors

Cheerio's selector implementation is nearly identical to jQuery's, so the API is very similar.

#### $( selector, [context], [root] )
`selector` searches within the `context` scope which searches within the `root` scope. `selector` and `context` can be an string expression, DOM Element, array of DOM elements, or cheerio object. `root` is typically the HTML document string.

This selector method is the starting point for traversing and manipulating the document. Like jQuery, it's the primary method for selecting elements in the document, but unlike jQuery it's built on top of the CSSSelect library, which implements most of the Sizzle selectors.

```js
$('.apple', '#fruits').text()
//=> Apple

$('ul .pear').attr('class')
//=> pear

$('li[class=orange]').html()
//=> <li class="orange">Orange</li>
```

### Attributes
Methods for getting and modifying attributes.

#### .attr( name, value )
Method for getting and setting attributes. Gets the attribute value for only the first element in the matched set. If you set an attribute's value to `null`, you remove that attribute. You may also pass a `map` and `function` like jQuery.

```js
$('ul').attr('id')
//=> fruits

$('.apple').attr('id', 'favorite').html()
//=> <li class="apple" id="favorite">Apple</li>
```

> See http://api.jquery.com/attr/ for more information

#### .data( name, value )
Method for getting and setting data attributes. Gets or sets the data attribute value for only the first element in the matched set.

```js
$('<div data-apple-color="red"></div>').data()
//=> { appleColor: 'red' }

$('<div data-apple-color="red"></div>').data('data-apple-color')
//=> 'red'

var apple = $('.apple').data('kind', 'mac')
apple.data('kind')
//=> 'mac'
```

> See http://api.jquery.com/data/ for more information

#### .val( [value] )
Method for getting and setting the value of input, select, and textarea. Note: Support for `map`, and `function` has not been added yet.

```js
$('input[type="text"]').val()
//=> input_text

$('input[type="text"]').val('test').html()
//=> <input type="text" value="test"/>
```

#### .removeAttr( name )
Method for removing attributes by `name`.

```js
$('.pear').removeAttr('class').html()
//=> <li>Pear</li>
```

#### .hasClass( className )
Check to see if *any* of the matched elements have the given `className`.

```js
$('.pear').hasClass('pear')
//=> true

$('apple').hasClass('fruit')
//=> false

$('li').hasClass('pear')
//=> true
```

#### .addClass( className )
Adds class(es) to all of the matched elements. Also accepts a `function` like jQuery.

```js
$('.pear').addClass('fruit').html()
//=> <li class="pear fruit">Pear</li>

$('.apple').addClass('fruit red').html()
//=> <li class="apple fruit red">Apple</li>
```

> See http://api.jquery.com/addClass/ for more information.

#### .removeClass( [className] )
Removes one or more space-separated classes from the selected elements. If no `className` is defined, all classes will be removed. Also accepts a `function` like jQuery.

```js
$('.pear').removeClass('pear').html()
//=> <li class="">Pear</li>

$('.apple').addClass('red').removeClass().html()
//=> <li class="">Apple</li>
```

> See http://api.jquery.com/removeClass/ for more information.

#### .toggleClass( className, [switch] )
Add or remove class(es) from the matched elements, depending on either the class's presence or the value of the switch argument. Also accepts a `function` like jQuery.

```js
$('.apple.green').toggleClass('fruit green red').html()
//=> <li class="apple fruit red">Apple</li>

$('.apple.green').toggleClass('fruit green red', true).html()
//=> <li class="apple green fruit red">Apple</li>
```

> See http://api.jquery.com/toggleClass/ for more information.

#### .is( selector )
#### .is( element )
#### .is( selection )
#### .is( function(index) )
Checks the current list of elements and returns `true` if _any_ of the elements match the selector. If using an element or Cheerio selection, returns `true` if _any_ of the elements match. If using a predicate function, the function is executed in the context of the selected element, so `this` refers to the current element.


### Traversing

#### .find(selector)
#### .find(selection)
#### .find(node)
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

```js
$('#fruits').find('li').length
//=> 3
$('#fruits').find($('.apple')).length
//=> 1
```

#### .parent([selector])
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

```js
$('.pear').parent().attr('id')
//=> fruits
```

#### .parents([selector])
Get a set of parents filtered by `selector` of each element in the current set of match elements.
```js
$('.orange').parents().length
// => 2
$('.orange').parents('#fruits').length
// => 1
```

#### .parentsUntil([selector][,filter])
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or cheerio object.
```js
$('.orange').parentsUntil('#food').length
// => 1
```

#### .closest(selector)
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

```js
$('.orange').closest()
// => []
$('.orange').closest('.apple')
// => []
$('.orange').closest('li')
// => [<li class="orange">Orange</li>]
$('.orange').closest('#fruits')
// => [<ul id="fruits"> ... </ul>]
```

#### .next([selector])
Gets the next sibling of the first selected element, optionally filtered by a selector.

```js
$('.apple').next().hasClass('orange')
//=> true
```

#### .nextAll()
Gets all the following siblings of the first selected element.

```js
$('.apple').nextAll()
//=> [<li class="orange">Orange</li>, <li class="pear">Pear</li>]
```

#### .nextUntil()
Gets all the following siblings up to but not including the element matched by the selector.

```js
$('.apple').nextUntil('.pear')
//=> [<li class="orange">Orange</li>]
```

#### .prev([selector])
Gets the previous sibling of the first selected element optionally filtered by a selector.

```js
$('.orange').prev().hasClass('apple')
//=> true
```

#### .prevAll()
Gets all the preceding siblings of the first selected element.

```js
$('.pear').prevAll()
//=> [<li class="orange">Orange</li>, <li class="apple">Apple</li>]
```

#### .prevUntil()
Gets all the preceding siblings up to but not including the element matched by the selector.

```js
$('.pear').prevUntil('.apple')
//=> [<li class="orange">Orange</li>]
```

#### .slice( start, [end] )
Gets the elements matching the specified range

```js
$('li').slice(1).eq(0).text()
//=> 'Orange'

$('li').slice(1, 2).length
//=> 1
```

#### .siblings( selector )
Gets the first selected element's siblings, excluding itself.

```js
$('.pear').siblings().length
//=> 2

$('.pear').siblings('.orange').length
//=> 1

```

#### .children( selector )
Gets the children of the first selected element.

```js
$('#fruits').children().length
//=> 3

$('#fruits').children('.pear').text()
//=> Pear
```

#### .contents()
Gets the children of each element in the set of matched elements, including text and comment nodes.

```js
$('#fruits').contents().length
//=> 3
```

#### .each( function(index, element) )
Iterates over a cheerio object, executing a function for each matched element. When the callback is fired, the function is fired in the context of the DOM element, so `this` refers to the current element, which is equivalent to the function parameter `element`. To break out of the `each` loop early, return with `false`.

```js
var fruits = [];

$('li').each(function(i, elem) {
fruits[i] = $(this).text();
});

fruits.join(', ');
//=> Apple, Orange, Pear
```

#### .map( function(index, element) )
Pass each element in the current matched set through a function, producing a new Cheerio object containing the return values. The function can return an individual data item or an array of data items to be inserted into the resulting set. If an array is returned, the elements inside the array are inserted into the set. If the function returns null or undefined, no element will be inserted.

```js
$('li').map(function(i, el) {
// this === el
return $(this).text();
}).get().join(' ');
//=> "apple orange pear"
```

#### .filter( selector ) <br /> .filter( selection ) <br /> .filter( element ) <br /> .filter( function(index) )

Iterates over a cheerio object, reducing the set of selector elements to those that match the selector or pass the function's test. When a Cheerio selection is specified, return only the elements contained in that selection. When an element is specified, return only that element (if it is contained in the original selection). If using the function method, the function is executed in the context of the selected element, so `this` refers to the current element.

Selector:

```js
$('li').filter('.orange').attr('class');
//=> orange
```

Function:

```js
$('li').filter(function(i, el) {
// this === el
return $(this).attr('class') === 'orange';
}).attr('class')
//=> orange
```

#### .not( selector ) <br /> .not( selection ) <br /> .not( element ) <br /> .not( function(index, elem) )

Remove elements from the set of matched elements. Given a jQuery object that represents a set of DOM elements, the `.not()` method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against each element; the elements that don't match the selector will be included in the result. The `.not()` method can take a function as its argument in the same way that `.filter()` does. Elements for which the function returns true are excluded from the filtered set; all other elements are included.

Selector:

```js
$('li').not('.apple').length;
//=> 2
```

Function:

```js
$('li').filter(function(i, el) {
// this === el
return $(this).attr('class') === 'orange';
}).length;
//=> 2
```

#### .has( selector ) <br /> .has( element )

Filters the set of matched elements to only those which have the given DOM element as a descendant or which have a descendant that matches the given selector. Equivalent to `.filter(':has(selector)')`.

Selector:

```js
$('ul').has('.pear').attr('id');
//=> fruits
```

Element:

```js
$('ul').has($('.pear')[0]).attr('id');
//=> fruits
```

#### .first()
Will select the first element of a cheerio object

```js
$('#fruits').children().first().text()
//=> Apple
```

#### .last()
Will select the last element of a cheerio object

```js
$('#fruits').children().last().text()
//=> Pear
```

#### .eq( i )
Reduce the set of matched elements to the one at the specified index. Use `.eq(-i)` to count backwards from the last selected element.

```js
$('li').eq(0).text()
//=> Apple

$('li').eq(-1).text()
//=> Pear
```

#### .get( [i] )

Retrieve the DOM elements matched by the Cheerio object. If an index is specified, retrieve one of the elements matched by the Cheerio object:

```js
$('li').get(0).tagName
//=> li
```

If no index is specified, retrieve all elements matched by the Cheerio object:

```js
$('li').get().length
//=> 3
```

#### .index()
#### .index( selector )
#### .index( nodeOrSelection )

Search for a given element from among the matched elements.

```
$('.pear').index()
//=> 2
$('.orange').index('li')
//=> 1
$('.apple').index($('#fruit, li'))
//=> 1
```

#### .end()
End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.

```js
$('li').eq(0).end().length
//=> 3
```

#### .add( selector [, context] )
#### .add( element )
#### .add( elements )
#### .add( html )
#### .add( selection )
Add elements to the set of matched elements.

```js
$('.apple').add('.orange').length
//=> 2
```

#### .addBack( [filter] )

Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

```js
$('li').eq(0).addBack('.orange').length
//=> 2
```

### Manipulation
Methods for modifying the DOM structure.

#### .append( content, [content, ...] )
Inserts content as the *last* child of each of the selected elements.

```js
$('ul').append('<li class="plum">Plum</li>')
$.html()
//=> <ul id="fruits">
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// <li class="pear">Pear</li>
// <li class="plum">Plum</li>
// </ul>
```

#### .prepend( content, [content, ...] )
Inserts content as the *first* child of each of the selected elements.

```js
$('ul').prepend('<li class="plum">Plum</li>')
$.html()
//=> <ul id="fruits">
// <li class="plum">Plum</li>
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// <li class="pear">Pear</li>
// </ul>
```

#### .after( content, [content, ...] )
Insert content next to each element in the set of matched elements.

```js
$('.apple').after('<li class="plum">Plum</li>')
$.html()
//=> <ul id="fruits">
// <li class="apple">Apple</li>
// <li class="plum">Plum</li>
// <li class="orange">Orange</li>
// <li class="pear">Pear</li>
// </ul>
```

#### .before( content, [content, ...] )
Insert content previous to each element in the set of matched elements.

```js
$('.apple').before('<li class="plum">Plum</li>')
$.html()
//=> <ul id="fruits">
// <li class="plum">Plum</li>
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// <li class="pear">Pear</li>
// </ul>
```

#### .remove( [selector] )
Removes the set of matched elements from the DOM and all their children. `selector` filters the set of matched elements to be removed.

```js
$('.pear').remove()
$.html()
//=> <ul id="fruits">
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// </ul>
```

#### .replaceWith( content )
Replaces matched elements with `content`.

```js
var plum = $('<li class="plum">Plum</li>')
$('.pear').replaceWith(plum)
$.html()
//=> <ul id="fruits">
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// <li class="plum">Plum</li>
// </ul>
```

#### .empty()
Empties an element, removing all its children.

```js
$('ul').empty()
$.html()
//=> <ul id="fruits"></ul>
```

#### .html( [htmlString] )
Gets an html content string from the first selected element. If `htmlString` is specified, each selected element's content is replaced by the new content.

```js
$('.orange').html()
//=> Orange

$('#fruits').html('<li class="mango">Mango</li>').html()
//=> <li class="mango">Mango</li>
```

#### .text( [textString] )
Get the combined text contents of each element in the set of matched elements, including their descendants.. If `textString` is specified, each selected element's content is replaced by the new text content.

```js
$('.orange').text()
//=> Orange

$('ul').text()
//=> Apple
// Orange
// Pear
```

#### .css( [propertName] ) <br /> .css( [ propertyNames] ) <br /> .css( [propertyName], [value] ) <br /> .css( [propertName], [function] ) <br /> .css( [properties] )

Get the value of a style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

### Rendering
When you're ready to render the document, you can use the `html` utility function:

```js
$.html()
//=> <ul id="fruits">
// <li class="apple">Apple</li>
// <li class="orange">Orange</li>
// <li class="pear">Pear</li>
// </ul>
```

If you want to return the outerHTML you can use `$.html(selector)`:

```js
$.html('.pear')
//=> <li class="pear">Pear</li>
```

By default, `html` will leave some tags open. Sometimes you may instead want to render a valid XML document. For example, you might parse the following XML snippet:

```xml
$ = cheerio.load('<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>');
```

... and later want to render to XML. To do this, you can use the 'xml' utility function:

```js
$.xml()
//=> <media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>
```


### Miscellaneous
DOM element methods that don't fit anywhere else

#### .clone() ####
Clone the cheerio object.

```js
var moreFruit = $('#fruits').clone()
```

### Utilities

#### $.root

Sometimes you need to work with the top-level root element. To query it, you can use `$.root()`.

```js
$.root().append('<ul id="vegetables"></ul>').html();
//=> <ul id="fruits">...</ul><ul id="vegetables"></ul>
```

#### $.contains( container, contained )
Checks to see if the `contained` DOM element is a descendent of the `container` DOM element.

#### $.parseHTML( data [, context ] [, keepScripts ] )
Parses a string into an array of DOM nodes. The `context` argument has no meaning for Cheerio, but it is maintained for API compatability.

### The "DOM Node" object

Cheerio collections are made up of objects that bear some resemblence to [browser-based DOM nodes](https://developer.mozilla.org/en-US/docs/Web/API/Node). You can expect them to define the following properties:

- `tagName`
- `parentNode`
- `previousSibling`
- `nextSibling`
- `nodeValue`
- `firstChild`
- `childNodes`
- `lastChild`

## Screencasts

http://vimeo.com/31950192

> This video tutorial is a follow-up to Nettut's "How to Scrape Web Pages with Node.js and jQuery", using cheerio instead of JSDOM + jQuery. This video shows how easy it is to use cheerio and how much faster cheerio is than JSDOM + jQuery.

## Test Coverage

Cheerio has high-test coverage, you can view the report [here](https://s3.amazonaws.com/MattMueller/Coverage/cheerio.html).

## Testing

To run the test suite, download the repository, then within the cheerio directory, run:

```shell
make setup
make test
```

This will download the development packages and run the test suite.

## Contributors

These are some of the contributors that have made cheerio possible:

```
project : cheerio
repo age : 2 years, 6 months
active : 285 days
commits : 762
files : 36
authors :
293 Matt Mueller 38.5%
133 Matthew Mueller 17.5%
92 Mike Pennisi 12.1%
54 David Chambers 7.1%
30 kpdecker 3.9%
19 Felix Böhm 2.5%
17 fb55 2.2%
15 Siddharth Mahendraker 2.0%
11 Adam Bretz 1.4%
8 Nazar Leush 1.0%
7 ironchefpython 0.9%
6 Jarno Leppänen 0.8%
5 Ben Sheldon 0.7%
5 Jos Shepherd 0.7%
5 Ryan Schmukler 0.7%
5 Steven Vachon 0.7%
4 Maciej Adwent 0.5%
4 Amir Abu Shareb 0.5%
3 jeremy.dentel@brandingbrand.com 0.4%
3 Andi Neck 0.4%
2 steve 0.3%
2 alexbardas 0.3%
2 finspin 0.3%
2 Ali Farhadi 0.3%
2 Chris Khoo 0.3%
2 Rob Ashton 0.3%
2 Thomas Heymann 0.3%
2 Jaro Spisak 0.3%
2 Dan Dascalescu 0.3%
2 Torstein Thune 0.3%
2 Wayne Larsen 0.3%
1 Timm Preetz 0.1%
1 Xavi 0.1%
1 Alex Shaindlin 0.1%
1 mattym 0.1%
1 Felix Böhm 0.1%
1 Farid Neshat 0.1%
1 Dmitry Mazuro 0.1%
1 Jeremy Hubble 0.1%
1 nevermind 0.1%
1 Manuel Alabor 0.1%
1 Matt Liegey 0.1%
1 Chris O'Hara 0.1%
1 Michael Holroyd 0.1%
1 Michiel De Mey 0.1%
1 Ben Atkin 0.1%
1 Rich Trott 0.1%
1 Rob "Hurricane" Ashton 0.1%
1 Robin Gloster 0.1%
1 Simon Boudrias 0.1%
1 Sindre Sorhus 0.1%
1 xiaohwan 0.1%
```

## Cheerio in the real world

Are you using cheerio in production? Add it to the [wiki](https://github.com/cheeriojs/cheerio/wiki/Cheerio-in-Production)!

## Special Thanks

This library stands on the shoulders of some incredible developers. A special thanks to:

__&#8226; @FB55 for node-htmlparser2 & CSSSelect:__
Felix has a knack for writing speedy parsing engines. He completely re-wrote both @tautologistic's `node-htmlparser` and @harry's `node-soupselect` from the ground up, making both of them much faster and more flexible. Cheerio would not be possible without his foundational work

__&#8226; @jQuery team for jQuery:__
The core API is the best of its class and despite dealing with all the browser inconsistencies the code base is extremely clean and easy to follow. Much of cheerio's implementation and documentation is from jQuery. Thanks guys.

__&#8226; @visionmedia:__
The style, the structure, the open-source"-ness" of this library comes from studying TJ's style and using many of his libraries. This dude consistently pumps out high-quality libraries and has always been more than willing to help or answer questions. You rock TJ.

## License

(The MIT License)

Copyright (c) 2012 Matt Mueller &lt;mattmuelle@gmail.com&gt;

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.

+ 1
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/coverage.json
File diff suppressed because it is too large
View File


+ 350
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/index.html View File

@@ -0,0 +1,350 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for cheerio/</title>
<meta charset="utf-8">

<link rel="stylesheet" href="../prettify.css">

<style>
body, html {
margin:0; padding: 0;
}
body {
font-family: Helvetica Neue, Helvetica,Arial;
font-size: 10pt;
}
div.header, div.footer {
background: #eee;
padding: 1em;
}
div.header {
z-index: 100;
position: fixed;
top: 0;
border-bottom: 1px solid #666;
width: 100%;
}
div.footer {
border-top: 1px solid #666;
}
div.body {
margin-top: 10em;
}
div.meta {
font-size: 90%;
text-align: center;
}
h1, h2, h3 {
font-weight: normal;
}
h1 {
font-size: 12pt;
}
h2 {
font-size: 10pt;
}
pre {
font-family: Consolas, Menlo, Monaco, monospace;
margin: 0;
padding: 0;
line-height: 14px;
font-size: 14px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}

div.path { font-size: 110%; }
div.path a:link, div.path a:visited { color: #000; }
table.coverage { border-collapse: collapse; margin:0; padding: 0 }

table.coverage td {
margin: 0;
padding: 0;
color: #111;
vertical-align: top;
}
table.coverage td.line-count {
width: 50px;
text-align: right;
padding-right: 5px;
}
table.coverage td.line-coverage {
color: #777 !important;
text-align: right;
border-left: 1px solid #666;
border-right: 1px solid #666;
}

table.coverage td.text {
}

table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
width: 40px;
}
table.coverage td span.cline-neutral {
background: #eee;
}
table.coverage td span.cline-yes {
background: #b5d592;
color: #999;
}
table.coverage td span.cline-no {
background: #fc8c84;
}

.cstat-yes { color: #111; }
.cstat-no { background: #fc8c84; color: #111; }
.fstat-no { background: #ffc520; color: #111 !important; }
.cbranch-no { background: yellow !important; color: #111; }

.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }

.missing-if-branch {
display: inline-block;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: black;
color: yellow;
}

.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}

.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}

.entity, .metric { font-weight: bold; }
.metric { display: inline-block; border: 1px solid #333; padding: 0.3em; background: white; }
.metric small { font-size: 80%; font-weight: normal; color: #666; }

div.coverage-summary table { border-collapse: collapse; margin: 3em; font-size: 110%; }
div.coverage-summary td, div.coverage-summary table th { margin: 0; padding: 0.25em 1em; border-top: 1px solid #666; border-bottom: 1px solid #666; }
div.coverage-summary th { text-align: left; border: 1px solid #666; background: #eee; font-weight: normal; }
div.coverage-summary th.file { border-right: none !important; }
div.coverage-summary th.pic { border-left: none !important; text-align: right; }
div.coverage-summary th.pct { border-right: none !important; }
div.coverage-summary th.abs { border-left: none !important; text-align: right; }
div.coverage-summary td.pct { text-align: right; border-left: 1px solid #666; }
div.coverage-summary td.abs { text-align: right; font-size: 90%; color: #444; border-right: 1px solid #666; }
div.coverage-summary td.file { text-align: right; border-left: 1px solid #666; white-space: nowrap; }
div.coverage-summary td.pic { min-width: 120px !important; }
div.coverage-summary a:link { text-decoration: none; color: #000; }
div.coverage-summary a:visited { text-decoration: none; color: #333; }
div.coverage-summary a:hover { text-decoration: underline; }
div.coverage-summary tfoot td { border-top: 1px solid #666; }

div.coverage-summary .yui3-datatable-sort-indicator, div.coverage-summary .dummy-sort-indicator {
height: 10px;
width: 7px;
display: inline-block;
margin-left: 0.5em;
}
div.coverage-summary .yui3-datatable-sort-indicator {
background: url("https://yui-s.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
}
div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
background-position: 0 -20px;
}
div.coverage-summary .yui3-datatable-sorted-desc .yui3-datatable-sort-indicator {
background-position: 0 -10px;
}

.high { background: #b5d592 !important; }
.medium { background: #ffe87c !important; }
.low { background: #fc8c84 !important; }

span.cover-fill, span.cover-empty {
display:inline-block;
border:1px solid #444;
background: white;
height: 12px;
}
span.cover-fill {
background: #ccc;
border-right: 1px solid #444;
}
span.cover-empty {
background: white;
border-left: none;
}
span.cover-full {
border-right: none !important;
}
pre.prettyprint {
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }

</style>
</head>
<body>
<div class="header high">
<h1>Code coverage report for <span class="entity">cheerio/</span></h1>
<h2>
Statements: <span class="metric">100% <small>(2 / 2)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Branches: <span class="metric">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Functions: <span class="metric">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Lines: <span class="metric">100% <small>(2 / 2)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Ignored: <span class="metric"><span class="ignore-none">none</span></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"><a href="../index.html">All files</a> &#187; cheerio/</div>
</div>
<div class="body">
<div class="coverage-summary">
<table>
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
<td data-value="100" class="pic high"><span class="cover-fill cover-full" style="width: 100px;"></span><span class="cover-empty" style="width:0px;"></span></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">(2&nbsp;/&nbsp;2)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">(0&nbsp;/&nbsp;0)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">(0&nbsp;/&nbsp;0)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">(2&nbsp;/&nbsp;2)</td>
</tr>

</tbody>
</table>
</div>
</div>
<div class="footer">
<div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Oct 09 2014 21:34:13 GMT-0700 (PDT)</div>
</div>

<script src="../prettify.js"></script>

<script src="https://yui-s.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
<script>

YUI().use('datatable', function (Y) {

var formatters = {
pct: function (o) {
o.className += o.record.get('classes')[o.column.key];
try {
return o.value.toFixed(2) + '%';
} catch (ex) { return o.value + '%'; }
},
html: function (o) {
o.className += o.record.get('classes')[o.column.key];
return o.record.get(o.column.key + '_html');
}
},
defaultFormatter = function (o) {
o.className += o.record.get('classes')[o.column.key];
return o.value;
};

function getColumns(theadNode) {
var colNodes = theadNode.all('tr th'),
cols = [],
col;
colNodes.each(function (colNode) {
col = {
key: colNode.getAttribute('data-col'),
label: colNode.get('innerHTML') || ' ',
sortable: !colNode.getAttribute('data-nosort'),
className: colNode.getAttribute('class'),
type: colNode.getAttribute('data-type'),
allowHTML: colNode.getAttribute('data-html') === 'true' || colNode.getAttribute('data-fmt') === 'html'
};
col.formatter = formatters[colNode.getAttribute('data-fmt')] || defaultFormatter;
cols.push(col);
});
return cols;
}

function getRowData(trNode, cols) {
var tdNodes = trNode.all('td'),
i,
row = { classes: {} },
node,
name;
for (i = 0; i < cols.length; i += 1) {
name = cols[i].key;
node = tdNodes.item(i);
row[name] = node.getAttribute('data-value') || node.get('innerHTML');
row[name + '_html'] = node.get('innerHTML');
row.classes[name] = node.getAttribute('class');
//Y.log('Name: ' + name + '; Value: ' + row[name]);
if (cols[i].type === 'number') { row[name] = row[name] * 1; }
}
//Y.log(row);
return row;
}

function getData(tbodyNode, cols) {
var data = [];
tbodyNode.all('tr').each(function (trNode) {
data.push(getRowData(trNode, cols));
});
return data;
}

function replaceTable(node) {
if (!node) { return; }
var cols = getColumns(node.one('thead')),
data = getData(node.one('tbody'), cols),
table,
parent = node.get('parentNode');

table = new Y.DataTable({
columns: cols,
data: data,
sortBy: 'file'
});
parent.set('innerHTML', '');
table.render(parent);
}

Y.on('domready', function () {
replaceTable(Y.one('div.coverage-summary table'));
if (typeof prettyPrint === 'function') {
prettyPrint();
}
});
});
</script>
</body>
</html>

+ 355
- 0
wiki-stream/pkg/nodejs-wiki-stream/usr/lib/node_modules/wiki-stream/node_modules/cheerio/coverage/lcov-report/cheerio/index.js.html View File

@@ -0,0 +1,355 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for cheerio/index.js</title>
<meta charset="utf-8">

<link rel="stylesheet" href="../prettify.css">

<style>
body, html {
margin:0; padding: 0;
}
body {
font-family: Helvetica Neue, Helvetica,Arial;
font-size: 10pt;
}
div.header, div.footer {
background: #eee;
padding: 1em;
}
div.header {
z-index: 100;
position: fixed;
top: 0;
border-bottom: 1px solid #666;
width: 100%;
}
div.footer {
border-top: 1px solid #666;
}
div.body {
margin-top: 10em;
}
div.meta {
font-size: 90%;
text-align: center;
}
h1, h2, h3 {
font-weight: normal;
}
h1 {
font-size: 12pt;
}
h2 {
font-size: 10pt;
}
pre {
font-family: Consolas, Menlo, Monaco, monospace;
margin: 0;
padding: 0;
line-height: 14px;
font-size: 14px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}

div.path { font-size: 110%; }
div.path a:link, div.path a:visited { color: #000; }
table.coverage { border-collapse: collapse; margin:0; padding: 0 }

table.coverage td {
margin: 0;
padding: 0;
color: #111;
vertical-align: top;
}
table.coverage td.line-count {
width: 50px;
text-align: right;
padding-right: 5px;
}
table.coverage td.line-coverage {
color: #777 !important;
text-align: right;
border-left: 1px solid #666;
border-right: 1px solid #666;
}

table.coverage td.text {
}

table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
<