select_all-rails 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +8 -7
- data/lib/select_all/rails/version.rb +1 -1
- data/node_modules/.bin/acorn +71 -0
- data/node_modules/.bin/escodegen +77 -0
- data/node_modules/.bin/esgenerate +64 -0
- data/node_modules/.bin/esparse +126 -0
- data/node_modules/.bin/esvalidate +199 -0
- data/node_modules/.bin/har-validator +56 -0
- data/node_modules/.bin/sshpk-conv +201 -0
- data/node_modules/.bin/sshpk-sign +191 -0
- data/node_modules/.bin/sshpk-verify +166 -0
- data/node_modules/.bin/uuid +26 -0
- data/node_modules/abab/CHANGELOG.md +11 -0
- data/node_modules/abab/README.md +52 -0
- data/node_modules/abab/index.js +9 -0
- data/node_modules/abab/lib/atob.js +109 -0
- data/node_modules/abab/lib/btoa.js +65 -0
- data/node_modules/abab/package.json +106 -0
- data/node_modules/acorn-globals/LICENSE +19 -0
- data/node_modules/acorn-globals/README.md +76 -0
- data/node_modules/acorn-globals/index.js +180 -0
- data/node_modules/acorn-globals/package.json +100 -0
- data/node_modules/acorn/.editorconfig +7 -0
- data/node_modules/acorn/.gitattributes +1 -0
- data/node_modules/acorn/.npmignore +3 -0
- data/node_modules/acorn/.tern-project +6 -0
- data/node_modules/acorn/.travis.yml +6 -0
- data/node_modules/acorn/AUTHORS +43 -0
- data/node_modules/acorn/LICENSE +19 -0
- data/node_modules/acorn/README.md +396 -0
- data/node_modules/acorn/bin/acorn +71 -0
- data/node_modules/acorn/bin/build-acorn.js +82 -0
- data/node_modules/acorn/bin/generate-identifier-regex.js +47 -0
- data/node_modules/acorn/bin/update_authors.sh +6 -0
- data/node_modules/acorn/dist/.keep +0 -0
- data/node_modules/acorn/dist/acorn.js +3340 -0
- data/node_modules/acorn/dist/acorn_loose.js +1300 -0
- data/node_modules/acorn/dist/walk.js +377 -0
- data/node_modules/acorn/package.json +222 -0
- data/node_modules/acorn/src/bin/acorn.js +59 -0
- data/node_modules/acorn/src/expression.js +707 -0
- data/node_modules/acorn/src/identifier.js +90 -0
- data/node_modules/acorn/src/index.js +67 -0
- data/node_modules/acorn/src/location.js +24 -0
- data/node_modules/acorn/src/locutil.js +42 -0
- data/node_modules/acorn/src/loose/acorn_loose.js +0 -0
- data/node_modules/acorn/src/loose/expression.js +501 -0
- data/node_modules/acorn/src/loose/index.js +50 -0
- data/node_modules/acorn/src/loose/parseutil.js +1 -0
- data/node_modules/acorn/src/loose/state.js +160 -0
- data/node_modules/acorn/src/loose/statement.js +420 -0
- data/node_modules/acorn/src/loose/tokenize.js +108 -0
- data/node_modules/acorn/src/lval.js +215 -0
- data/node_modules/acorn/src/node.js +50 -0
- data/node_modules/acorn/src/options.js +121 -0
- data/node_modules/acorn/src/parseutil.js +102 -0
- data/node_modules/acorn/src/state.js +104 -0
- data/node_modules/acorn/src/statement.js +626 -0
- data/node_modules/acorn/src/tokencontext.js +109 -0
- data/node_modules/acorn/src/tokenize.js +682 -0
- data/node_modules/acorn/src/tokentype.js +147 -0
- data/node_modules/acorn/src/util.js +9 -0
- data/node_modules/acorn/src/walk/index.js +340 -0
- data/node_modules/acorn/src/whitespace.js +12 -0
- data/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/amdefine/README.md +171 -0
- data/node_modules/amdefine/amdefine.js +301 -0
- data/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/amdefine/package.json +86 -0
- data/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/ansi-regex/license +21 -0
- data/node_modules/ansi-regex/package.json +121 -0
- data/node_modules/ansi-regex/readme.md +31 -0
- data/node_modules/ansi-styles/index.js +65 -0
- data/node_modules/ansi-styles/license +21 -0
- data/node_modules/ansi-styles/package.json +114 -0
- data/node_modules/ansi-styles/readme.md +86 -0
- data/node_modules/array-equal/.npmignore +1 -0
- data/node_modules/array-equal/LICENSE +22 -0
- data/node_modules/array-equal/README.md +11 -0
- data/node_modules/array-equal/component.json +10 -0
- data/node_modules/array-equal/index.js +9 -0
- data/node_modules/array-equal/package.json +75 -0
- data/node_modules/asn1/.npmignore +2 -0
- data/node_modules/asn1/.travis.yml +4 -0
- data/node_modules/asn1/LICENSE +19 -0
- data/node_modules/asn1/README.md +50 -0
- data/node_modules/asn1/lib/ber/errors.js +13 -0
- data/node_modules/asn1/lib/ber/index.js +27 -0
- data/node_modules/asn1/lib/ber/reader.js +261 -0
- data/node_modules/asn1/lib/ber/types.js +36 -0
- data/node_modules/asn1/lib/ber/writer.js +316 -0
- data/node_modules/asn1/lib/index.js +20 -0
- data/node_modules/asn1/package.json +98 -0
- data/node_modules/asn1/tst/ber/reader.test.js +208 -0
- data/node_modules/asn1/tst/ber/writer.test.js +370 -0
- data/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/assert-plus/CHANGES.md +8 -0
- data/node_modules/assert-plus/README.md +155 -0
- data/node_modules/assert-plus/assert.js +206 -0
- data/node_modules/assert-plus/package.json +115 -0
- data/node_modules/assertion-error/.npmignore +11 -0
- data/node_modules/assertion-error/History.md +19 -0
- data/node_modules/assertion-error/README.md +41 -0
- data/node_modules/assertion-error/index.js +116 -0
- data/node_modules/assertion-error/package.json +95 -0
- data/node_modules/asynckit/LICENSE +21 -0
- data/node_modules/asynckit/README.md +233 -0
- data/node_modules/asynckit/bench.js +76 -0
- data/node_modules/asynckit/index.js +6 -0
- data/node_modules/asynckit/lib/abort.js +29 -0
- data/node_modules/asynckit/lib/async.js +34 -0
- data/node_modules/asynckit/lib/defer.js +26 -0
- data/node_modules/asynckit/lib/iterate.js +75 -0
- data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/node_modules/asynckit/lib/state.js +37 -0
- data/node_modules/asynckit/lib/streamify.js +141 -0
- data/node_modules/asynckit/lib/terminator.js +29 -0
- data/node_modules/asynckit/package.json +126 -0
- data/node_modules/asynckit/parallel.js +43 -0
- data/node_modules/asynckit/serial.js +17 -0
- data/node_modules/asynckit/serialOrdered.js +75 -0
- data/node_modules/asynckit/stream.js +21 -0
- data/node_modules/aws-sign2/LICENSE +55 -0
- data/node_modules/aws-sign2/README.md +4 -0
- data/node_modules/aws-sign2/index.js +212 -0
- data/node_modules/aws-sign2/package.json +81 -0
- data/node_modules/aws4/.npmignore +4 -0
- data/node_modules/aws4/.tern-port +1 -0
- data/node_modules/aws4/.travis.yml +5 -0
- data/node_modules/aws4/LICENSE +19 -0
- data/node_modules/aws4/README.md +523 -0
- data/node_modules/aws4/aws4.js +323 -0
- data/node_modules/aws4/lru.js +96 -0
- data/node_modules/aws4/package.json +140 -0
- data/node_modules/bcrypt-pbkdf/README.md +39 -0
- data/node_modules/bcrypt-pbkdf/index.js +559 -0
- data/node_modules/bcrypt-pbkdf/package.json +72 -0
- data/node_modules/boom/.npmignore +18 -0
- data/node_modules/boom/.travis.yml +8 -0
- data/node_modules/boom/CONTRIBUTING.md +1 -0
- data/node_modules/boom/LICENSE +28 -0
- data/node_modules/boom/README.md +652 -0
- data/node_modules/boom/images/boom.png +0 -0
- data/node_modules/boom/lib/index.js +318 -0
- data/node_modules/boom/package.json +98 -0
- data/node_modules/boom/test/index.js +654 -0
- data/node_modules/caseless/LICENSE +28 -0
- data/node_modules/caseless/README.md +45 -0
- data/node_modules/caseless/index.js +66 -0
- data/node_modules/caseless/package.json +96 -0
- data/node_modules/caseless/test.js +40 -0
- data/node_modules/chai/.npmignore +14 -0
- data/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- data/node_modules/chai/CONTRIBUTING.md +214 -0
- data/node_modules/chai/History.md +1059 -0
- data/node_modules/chai/README.md +83 -0
- data/node_modules/chai/ReleaseNotes.md +737 -0
- data/node_modules/chai/bower.json +26 -0
- data/node_modules/chai/chai.js +6142 -0
- data/node_modules/chai/index.js +1 -0
- data/node_modules/chai/karma.conf.js +28 -0
- data/node_modules/chai/karma.sauce.js +41 -0
- data/node_modules/chai/lib/chai.js +93 -0
- data/node_modules/chai/lib/chai/assertion.js +131 -0
- data/node_modules/chai/lib/chai/config.js +55 -0
- data/node_modules/chai/lib/chai/core/assertions.js +1860 -0
- data/node_modules/chai/lib/chai/interface/assert.js +1645 -0
- data/node_modules/chai/lib/chai/interface/expect.js +34 -0
- data/node_modules/chai/lib/chai/interface/should.js +201 -0
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +112 -0
- data/node_modules/chai/lib/chai/utils/addMethod.js +44 -0
- data/node_modules/chai/lib/chai/utils/addProperty.js +48 -0
- data/node_modules/chai/lib/chai/utils/expectTypes.js +42 -0
- data/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/node_modules/chai/lib/chai/utils/getMessage.js +51 -0
- data/node_modules/chai/lib/chai/utils/getName.js +22 -0
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +111 -0
- data/node_modules/chai/lib/chai/utils/getPathValue.js +43 -0
- data/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/node_modules/chai/lib/chai/utils/hasProperty.js +64 -0
- data/node_modules/chai/lib/chai/utils/index.js +130 -0
- data/node_modules/chai/lib/chai/utils/inspect.js +335 -0
- data/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +54 -0
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +52 -0
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +55 -0
- data/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/node_modules/chai/package.json +128 -0
- data/node_modules/chai/sauce.browsers.js +128 -0
- data/node_modules/chalk/index.js +116 -0
- data/node_modules/chalk/license +21 -0
- data/node_modules/chalk/package.json +140 -0
- data/node_modules/chalk/readme.md +213 -0
- data/node_modules/combined-stream/License +19 -0
- data/node_modules/combined-stream/Readme.md +138 -0
- data/node_modules/combined-stream/lib/combined_stream.js +188 -0
- data/node_modules/combined-stream/package.json +101 -0
- data/node_modules/commander/History.md +261 -0
- data/node_modules/commander/LICENSE +22 -0
- data/node_modules/commander/Readme.md +351 -0
- data/node_modules/commander/index.js +1110 -0
- data/node_modules/commander/package.json +104 -0
- data/node_modules/content-type-parser/LICENSE.txt +19 -0
- data/node_modules/content-type-parser/README.md +60 -0
- data/node_modules/content-type-parser/lib/content-type-parser.js +103 -0
- data/node_modules/content-type-parser/package.json +96 -0
- data/node_modules/cryptiles/.npmignore +18 -0
- data/node_modules/cryptiles/.travis.yml +8 -0
- data/node_modules/cryptiles/LICENSE +28 -0
- data/node_modules/cryptiles/README.md +16 -0
- data/node_modules/cryptiles/lib/index.js +68 -0
- data/node_modules/cryptiles/package.json +94 -0
- data/node_modules/cryptiles/test/index.js +102 -0
- data/node_modules/cssom/LICENSE.txt +20 -0
- data/node_modules/cssom/README.mdown +69 -0
- data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- data/node_modules/cssom/lib/CSSImportRule.js +132 -0
- data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- data/node_modules/cssom/lib/CSSRule.js +43 -0
- data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- data/node_modules/cssom/lib/CSSValue.js +43 -0
- data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- data/node_modules/cssom/lib/MatcherList.js +62 -0
- data/node_modules/cssom/lib/MediaList.js +61 -0
- data/node_modules/cssom/lib/StyleSheet.js +17 -0
- data/node_modules/cssom/lib/clone.js +76 -0
- data/node_modules/cssom/lib/index.js +19 -0
- data/node_modules/cssom/lib/parse.js +381 -0
- data/node_modules/cssom/package.json +96 -0
- data/node_modules/cssstyle/.npmignore +1 -0
- data/node_modules/cssstyle/MIT-LICENSE.txt +20 -0
- data/node_modules/cssstyle/README.md +27 -0
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +233 -0
- data/node_modules/cssstyle/lib/parsers.js +670 -0
- data/node_modules/cssstyle/lib/properties.js +5858 -0
- data/node_modules/cssstyle/lib/properties/alignmentBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/azimuth.js +65 -0
- data/node_modules/cssstyle/lib/properties/background.js +24 -0
- data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +22 -0
- data/node_modules/cssstyle/lib/properties/backgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundColor.js +33 -0
- data/node_modules/cssstyle/lib/properties/backgroundImage.js +29 -0
- data/node_modules/cssstyle/lib/properties/backgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPosition.js +56 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +25 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/baselineShift.js +12 -0
- data/node_modules/cssstyle/lib/properties/border.js +49 -0
- data/node_modules/cssstyle/lib/properties/borderBottom.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderCollapse.js +25 -0
- data/node_modules/cssstyle/lib/properties/borderColor.js +28 -0
- data/node_modules/cssstyle/lib/properties/borderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderLeft.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderRight.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderSpacing.js +42 -0
- data/node_modules/cssstyle/lib/properties/borderStyle.js +27 -0
- data/node_modules/cssstyle/lib/properties/borderTop.js +22 -0
- data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderTopLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderWidth.js +47 -0
- data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
- data/node_modules/cssstyle/lib/properties/boxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/boxSizing.js +12 -0
- data/node_modules/cssstyle/lib/properties/captionSide.js +12 -0
- data/node_modules/cssstyle/lib/properties/clear.js +16 -0
- data/node_modules/cssstyle/lib/properties/clip.js +49 -0
- data/node_modules/cssstyle/lib/properties/color.js +14 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolation.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolationFilters.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorProfile.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/content.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterReset.js +12 -0
- data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
- data/node_modules/cssstyle/lib/properties/cue.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/cursor.js +12 -0
- data/node_modules/cssstyle/lib/properties/direction.js +12 -0
- data/node_modules/cssstyle/lib/properties/display.js +12 -0
- data/node_modules/cssstyle/lib/properties/dominantBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/elevation.js +12 -0
- data/node_modules/cssstyle/lib/properties/emptyCells.js +12 -0
- data/node_modules/cssstyle/lib/properties/enableBackground.js +12 -0
- data/node_modules/cssstyle/lib/properties/fill.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/filter.js +12 -0
- data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/floodOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/font.js +40 -0
- data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
- data/node_modules/cssstyle/lib/properties/fontSize.js +25 -0
- data/node_modules/cssstyle/lib/properties/fontSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStretch.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontWeight.js +18 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js +12 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationVertical.js +12 -0
- data/node_modules/cssstyle/lib/properties/height.js +24 -0
- data/node_modules/cssstyle/lib/properties/imageRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/kerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/left.js +14 -0
- data/node_modules/cssstyle/lib/properties/letterSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/lineHeight.js +21 -0
- data/node_modules/cssstyle/lib/properties/listStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStylePosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleType.js +12 -0
- data/node_modules/cssstyle/lib/properties/margin.js +59 -0
- data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/marker.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerMid.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/marks.js +12 -0
- data/node_modules/cssstyle/lib/properties/mask.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/minHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/minWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
- data/node_modules/cssstyle/lib/properties/orphans.js +12 -0
- data/node_modules/cssstyle/lib/properties/outline.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/outlineOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowX.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowY.js +12 -0
- data/node_modules/cssstyle/lib/properties/padding.js +52 -0
- data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/page.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/pause.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitch.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitchRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/playDuring.js +12 -0
- data/node_modules/cssstyle/lib/properties/pointerEvents.js +12 -0
- data/node_modules/cssstyle/lib/properties/position.js +12 -0
- data/node_modules/cssstyle/lib/properties/quotes.js +12 -0
- data/node_modules/cssstyle/lib/properties/resize.js +12 -0
- data/node_modules/cssstyle/lib/properties/richness.js +12 -0
- data/node_modules/cssstyle/lib/properties/right.js +14 -0
- data/node_modules/cssstyle/lib/properties/shapeRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/size.js +12 -0
- data/node_modules/cssstyle/lib/properties/speak.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakHeader.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakNumeral.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakPunctuation.js +12 -0
- data/node_modules/cssstyle/lib/properties/speechRate.js +12 -0
- data/node_modules/cssstyle/lib/properties/src.js +12 -0
- data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/stopOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/stress.js +12 -0
- data/node_modules/cssstyle/lib/properties/stroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDasharray.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDashoffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinecap.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinejoin.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeMiterlimit.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/tableLayout.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAnchor.js +12 -0
- data/node_modules/cssstyle/lib/properties/textDecoration.js +12 -0
- data/node_modules/cssstyle/lib/properties/textIndent.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textOverlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/textShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/top.js +14 -0
- data/node_modules/cssstyle/lib/properties/unicodeBidi.js +12 -0
- data/node_modules/cssstyle/lib/properties/unicodeRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/vectorEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/verticalAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/visibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/voiceFamily.js +12 -0
- data/node_modules/cssstyle/lib/properties/volume.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationFillMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationIterationCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationName.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAppearance.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAspectRatio.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackfaceVisibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderFit.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderVerticalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlex.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlexGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrdinalGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrient.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxReflect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColorCorrection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnAxis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnGap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnSpan.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumns.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFilter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexItemAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexLinePack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexOrder.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowFrom.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowInto.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontFeatureSettings.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontKerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSizeDelta.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSmoothing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontVariantLigatures.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHighlight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateCharacter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphens.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBoxContain.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineClamp.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineGrid.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineSnap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLocale.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfterCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBottomCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginTopCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarquee.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeRepetition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeSpeed.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMask.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskAttachment.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitNbspMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitOverflowScrolling.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspective.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPrintColorAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRtlOrdering.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitSvgShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextCombine.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextDecorationsInEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextOrientation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSecurity.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionProperty.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserDrag.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserModify.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserSelect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapMargin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapPadding.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeOutside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWritingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/whiteSpace.js +12 -0
- data/node_modules/cssstyle/lib/properties/widows.js +12 -0
- data/node_modules/cssstyle/lib/properties/width.js +24 -0
- data/node_modules/cssstyle/lib/properties/wordBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/writingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/zIndex.js +12 -0
- data/node_modules/cssstyle/lib/properties/zoom.js +12 -0
- data/node_modules/cssstyle/package.json +109 -0
- data/node_modules/cssstyle/scripts/generate_properties.js +302 -0
- data/node_modules/cssstyle/scripts/run_tests.sh +4 -0
- data/node_modules/cssstyle/tests/tests.js +405 -0
- data/node_modules/dashdash/CHANGES.md +364 -0
- data/node_modules/dashdash/LICENSE.txt +24 -0
- data/node_modules/dashdash/README.md +574 -0
- data/node_modules/dashdash/etc/dashdash.bash_completion.in +389 -0
- data/node_modules/dashdash/lib/dashdash.js +1055 -0
- data/node_modules/dashdash/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/dashdash/node_modules/assert-plus/README.md +162 -0
- data/node_modules/dashdash/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/dashdash/node_modules/assert-plus/package.json +115 -0
- data/node_modules/dashdash/package.json +125 -0
- data/node_modules/deep-eql/.npmignore +11 -0
- data/node_modules/deep-eql/History.md +28 -0
- data/node_modules/deep-eql/README.md +52 -0
- data/node_modules/deep-eql/index.js +1 -0
- data/node_modules/deep-eql/karma.conf.js +20 -0
- data/node_modules/deep-eql/lib/eql.js +257 -0
- data/node_modules/deep-eql/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/deep-eql/node_modules/type-detect/History.md +18 -0
- data/node_modules/deep-eql/node_modules/type-detect/README.md +193 -0
- data/node_modules/deep-eql/node_modules/type-detect/index.js +1 -0
- data/node_modules/deep-eql/node_modules/type-detect/lib/type.js +142 -0
- data/node_modules/deep-eql/node_modules/type-detect/package.json +91 -0
- data/node_modules/deep-eql/package.json +98 -0
- data/node_modules/deep-is/.npmignore +1 -0
- data/node_modules/deep-is/.travis.yml +6 -0
- data/node_modules/deep-is/LICENSE +22 -0
- data/node_modules/deep-is/README.markdown +70 -0
- data/node_modules/deep-is/example/cmp.js +11 -0
- data/node_modules/deep-is/index.js +102 -0
- data/node_modules/deep-is/package.json +120 -0
- data/node_modules/deep-is/test/NaN.js +16 -0
- data/node_modules/deep-is/test/cmp.js +23 -0
- data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
- data/node_modules/delayed-stream/.npmignore +1 -0
- data/node_modules/delayed-stream/License +19 -0
- data/node_modules/delayed-stream/Makefile +7 -0
- data/node_modules/delayed-stream/Readme.md +141 -0
- data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/node_modules/delayed-stream/package.json +97 -0
- data/node_modules/ecc-jsbn/.npmignore +15 -0
- data/node_modules/ecc-jsbn/LICENSE +21 -0
- data/node_modules/ecc-jsbn/README.md +8 -0
- data/node_modules/ecc-jsbn/index.js +57 -0
- data/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- data/node_modules/ecc-jsbn/lib/ec.js +561 -0
- data/node_modules/ecc-jsbn/lib/sec.js +170 -0
- data/node_modules/ecc-jsbn/package.json +90 -0
- data/node_modules/ecc-jsbn/test.js +14 -0
- data/node_modules/escape-string-regexp/index.js +11 -0
- data/node_modules/escape-string-regexp/license +21 -0
- data/node_modules/escape-string-regexp/package.json +109 -0
- data/node_modules/escape-string-regexp/readme.md +27 -0
- data/node_modules/escodegen/LICENSE.BSD +19 -0
- data/node_modules/escodegen/LICENSE.source-map +27 -0
- data/node_modules/escodegen/README.md +116 -0
- data/node_modules/escodegen/bin/escodegen.js +77 -0
- data/node_modules/escodegen/bin/esgenerate.js +64 -0
- data/node_modules/escodegen/escodegen.js +2607 -0
- data/node_modules/escodegen/package.json +122 -0
- data/node_modules/esprima/ChangeLog +174 -0
- data/node_modules/esprima/LICENSE.BSD +21 -0
- data/node_modules/esprima/README.md +27 -0
- data/node_modules/esprima/bin/esparse.js +126 -0
- data/node_modules/esprima/bin/esvalidate.js +199 -0
- data/node_modules/esprima/esprima.js +5740 -0
- data/node_modules/esprima/package.json +153 -0
- data/node_modules/estraverse/.editorconfig +10 -0
- data/node_modules/estraverse/.jshintrc +16 -0
- data/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/estraverse/README.md +124 -0
- data/node_modules/estraverse/estraverse.js +845 -0
- data/node_modules/estraverse/gulpfile.js +70 -0
- data/node_modules/estraverse/package.json +95 -0
- data/node_modules/esutils/LICENSE.BSD +19 -0
- data/node_modules/esutils/README.md +169 -0
- data/node_modules/esutils/lib/ast.js +144 -0
- data/node_modules/esutils/lib/code.js +135 -0
- data/node_modules/esutils/lib/keyword.js +165 -0
- data/node_modules/esutils/lib/utils.js +33 -0
- data/node_modules/esutils/package.json +105 -0
- data/node_modules/extend/.eslintrc +192 -0
- data/node_modules/extend/.jscs.json +104 -0
- data/node_modules/extend/.npmignore +1 -0
- data/node_modules/extend/.travis.yml +44 -0
- data/node_modules/extend/CHANGELOG.md +69 -0
- data/node_modules/extend/LICENSE +23 -0
- data/node_modules/extend/README.md +62 -0
- data/node_modules/extend/component.json +32 -0
- data/node_modules/extend/index.js +86 -0
- data/node_modules/extend/package.json +106 -0
- data/node_modules/extsprintf/.gitmodules +6 -0
- data/node_modules/extsprintf/LICENSE +19 -0
- data/node_modules/extsprintf/Makefile +23 -0
- data/node_modules/extsprintf/Makefile.deps +39 -0
- data/node_modules/extsprintf/Makefile.targ +285 -0
- data/node_modules/extsprintf/README.md +39 -0
- data/node_modules/extsprintf/examples/simple.js +2 -0
- data/node_modules/extsprintf/jsl.node.conf +137 -0
- data/node_modules/extsprintf/lib/extsprintf.js +166 -0
- data/node_modules/extsprintf/package.json +74 -0
- data/node_modules/fast-levenshtein/LICENSE.md +25 -0
- data/node_modules/fast-levenshtein/README.md +104 -0
- data/node_modules/fast-levenshtein/levenshtein.js +102 -0
- data/node_modules/fast-levenshtein/package.json +108 -0
- data/node_modules/forever-agent/LICENSE +55 -0
- data/node_modules/forever-agent/README.md +4 -0
- data/node_modules/forever-agent/index.js +138 -0
- data/node_modules/forever-agent/package.json +88 -0
- data/node_modules/form-data/License +19 -0
- data/node_modules/form-data/README.md +217 -0
- data/node_modules/form-data/lib/browser.js +2 -0
- data/node_modules/form-data/lib/form_data.js +440 -0
- data/node_modules/form-data/lib/populate.js +10 -0
- data/node_modules/form-data/package.json +145 -0
- data/node_modules/generate-function/.npmignore +1 -0
- data/node_modules/generate-function/.travis.yml +3 -0
- data/node_modules/generate-function/README.md +72 -0
- data/node_modules/generate-function/example.js +27 -0
- data/node_modules/generate-function/index.js +61 -0
- data/node_modules/generate-function/package.json +87 -0
- data/node_modules/generate-function/test.js +33 -0
- data/node_modules/generate-object-property/.npmignore +1 -0
- data/node_modules/generate-object-property/.travis.yml +3 -0
- data/node_modules/generate-object-property/LICENSE +21 -0
- data/node_modules/generate-object-property/README.md +19 -0
- data/node_modules/generate-object-property/index.js +12 -0
- data/node_modules/generate-object-property/package.json +84 -0
- data/node_modules/generate-object-property/test.js +12 -0
- data/node_modules/getpass/.npmignore +8 -0
- data/node_modules/getpass/.travis.yml +9 -0
- data/node_modules/getpass/LICENSE +18 -0
- data/node_modules/getpass/README.md +32 -0
- data/node_modules/getpass/lib/index.js +123 -0
- data/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- data/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/getpass/node_modules/assert-plus/package.json +115 -0
- data/node_modules/getpass/package.json +90 -0
- data/node_modules/graceful-readlink/.npmignore +3 -0
- data/node_modules/graceful-readlink/.travis.yml +5 -0
- data/node_modules/graceful-readlink/LICENSE +22 -0
- data/node_modules/graceful-readlink/README.md +17 -0
- data/node_modules/graceful-readlink/index.js +12 -0
- data/node_modules/graceful-readlink/package.json +83 -0
- data/node_modules/har-validator/LICENSE +13 -0
- data/node_modules/har-validator/README.md +309 -0
- data/node_modules/har-validator/bin/har-validator +56 -0
- data/node_modules/har-validator/lib/async.js +14 -0
- data/node_modules/har-validator/lib/error.js +10 -0
- data/node_modules/har-validator/lib/index.js +22 -0
- data/node_modules/har-validator/lib/runner.js +29 -0
- data/node_modules/har-validator/lib/schemas/cache.json +13 -0
- data/node_modules/har-validator/lib/schemas/cacheEntry.json +31 -0
- data/node_modules/har-validator/lib/schemas/content.json +27 -0
- data/node_modules/har-validator/lib/schemas/cookie.json +34 -0
- data/node_modules/har-validator/lib/schemas/creator.json +18 -0
- data/node_modules/har-validator/lib/schemas/entry.json +51 -0
- data/node_modules/har-validator/lib/schemas/har.json +11 -0
- data/node_modules/har-validator/lib/schemas/index.js +49 -0
- data/node_modules/har-validator/lib/schemas/log.json +34 -0
- data/node_modules/har-validator/lib/schemas/page.json +30 -0
- data/node_modules/har-validator/lib/schemas/pageTimings.json +16 -0
- data/node_modules/har-validator/lib/schemas/postData.json +41 -0
- data/node_modules/har-validator/lib/schemas/record.json +18 -0
- data/node_modules/har-validator/lib/schemas/request.json +55 -0
- data/node_modules/har-validator/lib/schemas/response.json +52 -0
- data/node_modules/har-validator/lib/schemas/timings.json +40 -0
- data/node_modules/har-validator/package.json +120 -0
- data/node_modules/has-ansi/index.js +4 -0
- data/node_modules/has-ansi/license +21 -0
- data/node_modules/has-ansi/package.json +118 -0
- data/node_modules/has-ansi/readme.md +36 -0
- data/node_modules/hawk/.npmignore +20 -0
- data/node_modules/hawk/.travis.yml +5 -0
- data/node_modules/hawk/LICENSE +28 -0
- data/node_modules/hawk/README.md +634 -0
- data/node_modules/hawk/bower.json +24 -0
- data/node_modules/hawk/component.json +19 -0
- data/node_modules/hawk/dist/client.js +343 -0
- data/node_modules/hawk/example/usage.js +78 -0
- data/node_modules/hawk/images/hawk.png +0 -0
- data/node_modules/hawk/images/logo.png +0 -0
- data/node_modules/hawk/lib/browser.js +637 -0
- data/node_modules/hawk/lib/client.js +369 -0
- data/node_modules/hawk/lib/crypto.js +126 -0
- data/node_modules/hawk/lib/index.js +15 -0
- data/node_modules/hawk/lib/server.js +548 -0
- data/node_modules/hawk/lib/utils.js +184 -0
- data/node_modules/hawk/package.json +101 -0
- data/node_modules/hawk/test/browser.js +1492 -0
- data/node_modules/hawk/test/client.js +440 -0
- data/node_modules/hawk/test/crypto.js +70 -0
- data/node_modules/hawk/test/index.js +378 -0
- data/node_modules/hawk/test/readme.js +95 -0
- data/node_modules/hawk/test/server.js +1329 -0
- data/node_modules/hawk/test/uri.js +838 -0
- data/node_modules/hawk/test/utils.js +149 -0
- data/node_modules/hoek/.npmignore +18 -0
- data/node_modules/hoek/.travis.yml +7 -0
- data/node_modules/hoek/CONTRIBUTING.md +1 -0
- data/node_modules/hoek/LICENSE +31 -0
- data/node_modules/hoek/README.md +584 -0
- data/node_modules/hoek/images/hoek.png +0 -0
- data/node_modules/hoek/lib/escape.js +132 -0
- data/node_modules/hoek/lib/index.js +993 -0
- data/node_modules/hoek/package.json +96 -0
- data/node_modules/hoek/test/escaper.js +88 -0
- data/node_modules/hoek/test/index.js +2513 -0
- data/node_modules/hoek/test/modules/ignore.txt +0 -0
- data/node_modules/hoek/test/modules/test1.js +1 -0
- data/node_modules/hoek/test/modules/test2.js +1 -0
- data/node_modules/hoek/test/modules/test3.js +1 -0
- data/node_modules/html-encoding-sniffer/LICENSE.txt +19 -0
- data/node_modules/html-encoding-sniffer/README.md +38 -0
- data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +302 -0
- data/node_modules/html-encoding-sniffer/package.json +98 -0
- data/node_modules/http-signature/.dir-locals.el +6 -0
- data/node_modules/http-signature/.npmignore +7 -0
- data/node_modules/http-signature/CHANGES.md +46 -0
- data/node_modules/http-signature/LICENSE +18 -0
- data/node_modules/http-signature/README.md +79 -0
- data/node_modules/http-signature/http_signing.md +363 -0
- data/node_modules/http-signature/lib/index.js +29 -0
- data/node_modules/http-signature/lib/parser.js +318 -0
- data/node_modules/http-signature/lib/signer.js +399 -0
- data/node_modules/http-signature/lib/utils.js +112 -0
- data/node_modules/http-signature/lib/verify.js +88 -0
- data/node_modules/http-signature/package.json +116 -0
- data/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/iconv-lite/.travis.yml +22 -0
- data/node_modules/iconv-lite/Changelog.md +108 -0
- data/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/iconv-lite/README.md +159 -0
- data/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- data/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/iconv-lite/encodings/utf16.js +176 -0
- data/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/iconv-lite/lib/index.d.ts +31 -0
- data/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/iconv-lite/package.json +158 -0
- data/node_modules/is-my-json-valid/.npmignore +2 -0
- data/node_modules/is-my-json-valid/.travis.yml +3 -0
- data/node_modules/is-my-json-valid/LICENSE +21 -0
- data/node_modules/is-my-json-valid/README.md +173 -0
- data/node_modules/is-my-json-valid/example.js +18 -0
- data/node_modules/is-my-json-valid/formats.js +14 -0
- data/node_modules/is-my-json-valid/index.js +594 -0
- data/node_modules/is-my-json-valid/package.json +116 -0
- data/node_modules/is-my-json-valid/require.js +12 -0
- data/node_modules/is-my-json-valid/test/fixtures/cosmic.js +84 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +82 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +88 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +112 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +107 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +49 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +32 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +113 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +72 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +143 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +46 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +23 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +110 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +92 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +128 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +74 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +39 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +330 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +79 -0
- data/node_modules/is-my-json-valid/test/json-schema.js +23 -0
- data/node_modules/is-my-json-valid/test/misc.js +471 -0
- data/node_modules/is-property/.npmignore +17 -0
- data/node_modules/is-property/LICENSE +22 -0
- data/node_modules/is-property/README.md +28 -0
- data/node_modules/is-property/is-property.js +5 -0
- data/node_modules/is-property/package.json +92 -0
- data/node_modules/is-typedarray/LICENSE.md +18 -0
- data/node_modules/is-typedarray/README.md +16 -0
- data/node_modules/is-typedarray/index.js +41 -0
- data/node_modules/is-typedarray/package.json +90 -0
- data/node_modules/is-typedarray/test.js +34 -0
- data/node_modules/isstream/.jshintrc +59 -0
- data/node_modules/isstream/.npmignore +1 -0
- data/node_modules/isstream/.travis.yml +12 -0
- data/node_modules/isstream/LICENSE.md +11 -0
- data/node_modules/isstream/README.md +66 -0
- data/node_modules/isstream/isstream.js +27 -0
- data/node_modules/isstream/package.json +93 -0
- data/node_modules/isstream/test.js +168 -0
- data/node_modules/jodid25519/.npmignore +11 -0
- data/node_modules/jodid25519/.travis.yml +7 -0
- data/node_modules/jodid25519/AUTHORS.md +3 -0
- data/node_modules/jodid25519/LICENSE +23 -0
- data/node_modules/jodid25519/README.md +51 -0
- data/node_modules/jodid25519/almond.0 +42 -0
- data/node_modules/jodid25519/almond.1 +13 -0
- data/node_modules/jodid25519/index.js +35 -0
- data/node_modules/jodid25519/jsdoc.json +19 -0
- data/node_modules/jodid25519/lib/core.js +481 -0
- data/node_modules/jodid25519/lib/curve255.js +221 -0
- data/node_modules/jodid25519/lib/dh.js +111 -0
- data/node_modules/jodid25519/lib/eddsa.js +573 -0
- data/node_modules/jodid25519/lib/utils.js +198 -0
- data/node_modules/jodid25519/package.json +104 -0
- data/node_modules/jquery/AUTHORS.txt +295 -0
- data/node_modules/jquery/LICENSE.txt +36 -0
- data/node_modules/jquery/README.md +65 -0
- data/node_modules/jquery/bower.json +14 -0
- data/node_modules/jquery/dist/core.js +482 -0
- data/node_modules/jquery/dist/jquery.js +10220 -0
- data/node_modules/jquery/dist/jquery.min.js +4 -0
- data/node_modules/jquery/dist/jquery.min.map +1 -0
- data/node_modules/jquery/dist/jquery.slim.js +8107 -0
- data/node_modules/jquery/dist/jquery.slim.min.js +4 -0
- data/node_modules/jquery/dist/jquery.slim.min.map +1 -0
- data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2272 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/node_modules/jquery/package.json +169 -0
- data/node_modules/jquery/src/.eslintrc.json +18 -0
- data/node_modules/jquery/src/ajax.js +855 -0
- data/node_modules/jquery/src/ajax/jsonp.js +102 -0
- data/node_modules/jquery/src/ajax/load.js +76 -0
- data/node_modules/jquery/src/ajax/parseXML.js +30 -0
- data/node_modules/jquery/src/ajax/script.js +77 -0
- data/node_modules/jquery/src/ajax/var/location.js +5 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +7 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +5 -0
- data/node_modules/jquery/src/ajax/xhr.js +169 -0
- data/node_modules/jquery/src/attributes.js +13 -0
- data/node_modules/jquery/src/attributes/attr.js +140 -0
- data/node_modules/jquery/src/attributes/classes.js +174 -0
- data/node_modules/jquery/src/attributes/prop.js +143 -0
- data/node_modules/jquery/src/attributes/support.js +33 -0
- data/node_modules/jquery/src/attributes/val.js +188 -0
- data/node_modules/jquery/src/callbacks.js +234 -0
- data/node_modules/jquery/src/core.js +482 -0
- data/node_modules/jquery/src/core/DOMEval.js +16 -0
- data/node_modules/jquery/src/core/access.js +70 -0
- data/node_modules/jquery/src/core/init.js +127 -0
- data/node_modules/jquery/src/core/parseHTML.js +65 -0
- data/node_modules/jquery/src/core/ready-no-deferred.js +105 -0
- data/node_modules/jquery/src/core/ready.js +95 -0
- data/node_modules/jquery/src/core/readyException.js +13 -0
- data/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
- data/node_modules/jquery/src/core/support.js +20 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +6 -0
- data/node_modules/jquery/src/css.js +426 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +26 -0
- data/node_modules/jquery/src/css/adjustCSS.js +71 -0
- data/node_modules/jquery/src/css/curCSS.js +59 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/node_modules/jquery/src/css/showHide.js +105 -0
- data/node_modules/jquery/src/css/support.js +89 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +5 -0
- data/node_modules/jquery/src/css/var/getStyles.js +17 -0
- data/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/node_modules/jquery/src/css/var/rmargin.js +5 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
- data/node_modules/jquery/src/css/var/swap.js +26 -0
- data/node_modules/jquery/src/data.js +179 -0
- data/node_modules/jquery/src/data/Data.js +161 -0
- data/node_modules/jquery/src/data/var/acceptData.js +19 -0
- data/node_modules/jquery/src/data/var/dataPriv.js +7 -0
- data/node_modules/jquery/src/data/var/dataUser.js +7 -0
- data/node_modules/jquery/src/deferred.js +389 -0
- data/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
- data/node_modules/jquery/src/deprecated.js +30 -0
- data/node_modules/jquery/src/dimensions.js +56 -0
- data/node_modules/jquery/src/effects.js +693 -0
- data/node_modules/jquery/src/effects/Tween.js +123 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +15 -0
- data/node_modules/jquery/src/event.js +745 -0
- data/node_modules/jquery/src/event/ajax.js +22 -0
- data/node_modules/jquery/src/event/alias.js +29 -0
- data/node_modules/jquery/src/event/focusin.js +55 -0
- data/node_modules/jquery/src/event/support.js +11 -0
- data/node_modules/jquery/src/event/trigger.js +185 -0
- data/node_modules/jquery/src/exports/amd.js +26 -0
- data/node_modules/jquery/src/exports/global.js +34 -0
- data/node_modules/jquery/src/jquery.js +41 -0
- data/node_modules/jquery/src/manipulation.js +486 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +23 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +104 -0
- data/node_modules/jquery/src/manipulation/getAll.js +31 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/node_modules/jquery/src/manipulation/support.js +35 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +5 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +29 -0
- data/node_modules/jquery/src/offset.js +232 -0
- data/node_modules/jquery/src/queue.js +145 -0
- data/node_modules/jquery/src/queue/delay.js +24 -0
- data/node_modules/jquery/src/selector-native.js +237 -0
- data/node_modules/jquery/src/selector-sizzle.js +19 -0
- data/node_modules/jquery/src/selector.js +3 -0
- data/node_modules/jquery/src/serialize.js +130 -0
- data/node_modules/jquery/src/traversing.js +178 -0
- data/node_modules/jquery/src/traversing/findFilter.js +106 -0
- data/node_modules/jquery/src/traversing/var/dir.js +22 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +17 -0
- data/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
- data/node_modules/jquery/src/var/arr.js +5 -0
- data/node_modules/jquery/src/var/class2type.js +6 -0
- data/node_modules/jquery/src/var/concat.js +7 -0
- data/node_modules/jquery/src/var/document.js +5 -0
- data/node_modules/jquery/src/var/documentElement.js +7 -0
- data/node_modules/jquery/src/var/fnToString.js +7 -0
- data/node_modules/jquery/src/var/getProto.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +7 -0
- data/node_modules/jquery/src/var/indexOf.js +7 -0
- data/node_modules/jquery/src/var/pnum.js +5 -0
- data/node_modules/jquery/src/var/push.js +7 -0
- data/node_modules/jquery/src/var/rcssNum.js +9 -0
- data/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
- data/node_modules/jquery/src/var/slice.js +7 -0
- data/node_modules/jquery/src/var/support.js +6 -0
- data/node_modules/jquery/src/var/toString.js +7 -0
- data/node_modules/jquery/src/wrap.js +77 -0
- data/node_modules/jsbn/.npmignore +2 -0
- data/node_modules/jsbn/LICENSE +40 -0
- data/node_modules/jsbn/README.md +175 -0
- data/node_modules/jsbn/example.html +12 -0
- data/node_modules/jsbn/example.js +3 -0
- data/node_modules/jsbn/index.js +1358 -0
- data/node_modules/jsbn/package.json +87 -0
- data/node_modules/jsdom-global/.npmignore +1 -0
- data/node_modules/jsdom-global/.travis.yml +6 -0
- data/node_modules/jsdom-global/HISTORY.md +85 -0
- data/node_modules/jsdom-global/README.md +137 -0
- data/node_modules/jsdom-global/browser.js +10 -0
- data/node_modules/jsdom-global/index.js +46 -0
- data/node_modules/jsdom-global/keys.js +187 -0
- data/node_modules/jsdom-global/package.json +95 -0
- data/node_modules/jsdom-global/register.js +1 -0
- data/node_modules/jsdom-global/test.js +22 -0
- data/node_modules/jsdom/Changelog.md +1254 -0
- data/node_modules/jsdom/LICENSE.txt +22 -0
- data/node_modules/jsdom/README.md +592 -0
- data/node_modules/jsdom/lib/jsdom.js +456 -0
- data/node_modules/jsdom/lib/jsdom/browser/Window.js +502 -0
- data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +1129 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentAdapter.js +73 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentfeatures.js +47 -0
- data/node_modules/jsdom/lib/jsdom/browser/domtohtml.js +19 -0
- data/node_modules/jsdom/lib/jsdom/browser/htmltodom.js +323 -0
- data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
- data/node_modules/jsdom/lib/jsdom/browser/resource-loader.js +275 -0
- data/node_modules/jsdom/lib/jsdom/level2/style.js +69 -0
- data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes.js +468 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +87 -0
- data/node_modules/jsdom/lib/jsdom/living/blob-symbols.js +6 -0
- data/node_modules/jsdom/lib/jsdom/living/blob.js +73 -0
- data/node_modules/jsdom/lib/jsdom/living/dom-token-list.js +222 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +61 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +303 -0
- data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +19 -0
- data/node_modules/jsdom/lib/jsdom/living/file-reader.js +133 -0
- data/node_modules/jsdom/lib/jsdom/living/file-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/file.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/form-data-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/.gitkeep +0 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +169 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ChildNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +143 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +97 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +712 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +110 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +552 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementCSSInlineStyle.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementContentEditable.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +137 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +251 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/GlobalEventHandlers.js +770 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +228 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAppletElement.js +225 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +167 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +159 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +119 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +211 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +203 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +112 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +150 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHyperlinkElementUtils.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +278 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +326 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +583 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +206 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +505 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +124 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +309 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +178 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +204 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +260 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +245 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +161 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableDataCellElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +357 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableHeaderCellElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +202 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +173 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +415 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +94 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +193 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +113 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/History.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +269 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/LinkStyle.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +227 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +234 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +96 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorConcurrentHardware.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorCookies.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorID.js +149 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorLanguage.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorOnLine.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorPlugins.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +512 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonDocumentTypeChildNode.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonElementParentNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ParentNode.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +105 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Window.js +1 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WindowEventHandlers.js +242 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +53 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set-parser.js +5 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/proxied-window-event-handlers.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +68 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +51 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +62 -0
- data/node_modules/jsdom/lib/jsdom/living/html-collection.js +109 -0
- data/node_modules/jsdom/lib/jsdom/living/index.js +57 -0
- data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +24 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/node-filter.js +47 -0
- data/node_modules/jsdom/lib/jsdom/living/node-iterator.js +232 -0
- data/node_modules/jsdom/lib/jsdom/living/node-list.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/node.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +176 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +777 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +491 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAppletElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +58 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +144 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +275 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +396 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +72 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +76 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +35 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +174 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableDataCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +148 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableHeaderCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +70 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +54 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +184 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +475 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/post-message.js +36 -0
- data/node_modules/jsdom/lib/jsdom/living/register-elements.js +306 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +257 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +145 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History.idl +12 -0
- data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +235 -0
- data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-sync-worker.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-utils.js +327 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +182 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-event-target.js +23 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-upload.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js +1016 -0
- data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +156 -0
- data/node_modules/jsdom/lib/jsdom/utils.js +242 -0
- data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
- data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/DOMException.js +41 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/dom-exception-table.json +134 -0
- data/node_modules/jsdom/node_modules/request/CHANGELOG.md +662 -0
- data/node_modules/jsdom/node_modules/request/LICENSE +55 -0
- data/node_modules/jsdom/node_modules/request/README.md +1098 -0
- data/node_modules/jsdom/node_modules/request/index.js +156 -0
- data/node_modules/jsdom/node_modules/request/lib/auth.js +168 -0
- data/node_modules/jsdom/node_modules/request/lib/cookies.js +39 -0
- data/node_modules/jsdom/node_modules/request/lib/getProxyFromURI.js +79 -0
- data/node_modules/jsdom/node_modules/request/lib/har.js +215 -0
- data/node_modules/jsdom/node_modules/request/lib/helpers.js +65 -0
- data/node_modules/jsdom/node_modules/request/lib/multipart.js +112 -0
- data/node_modules/jsdom/node_modules/request/lib/oauth.js +147 -0
- data/node_modules/jsdom/node_modules/request/lib/querystring.js +51 -0
- data/node_modules/jsdom/node_modules/request/lib/redirect.js +157 -0
- data/node_modules/jsdom/node_modules/request/lib/tunnel.js +176 -0
- data/node_modules/jsdom/node_modules/request/package.json +163 -0
- data/node_modules/jsdom/node_modules/request/request.js +1475 -0
- data/node_modules/jsdom/package.json +184 -0
- data/node_modules/json-schema/README.md +5 -0
- data/node_modules/json-schema/draft-00/hyper-schema +68 -0
- data/node_modules/json-schema/draft-00/json-ref +26 -0
- data/node_modules/json-schema/draft-00/links +33 -0
- data/node_modules/json-schema/draft-00/schema +155 -0
- data/node_modules/json-schema/draft-01/hyper-schema +68 -0
- data/node_modules/json-schema/draft-01/json-ref +26 -0
- data/node_modules/json-schema/draft-01/links +33 -0
- data/node_modules/json-schema/draft-01/schema +155 -0
- data/node_modules/json-schema/draft-02/hyper-schema +68 -0
- data/node_modules/json-schema/draft-02/json-ref +26 -0
- data/node_modules/json-schema/draft-02/links +35 -0
- data/node_modules/json-schema/draft-02/schema +166 -0
- data/node_modules/json-schema/draft-03/examples/address +20 -0
- data/node_modules/json-schema/draft-03/examples/calendar +53 -0
- data/node_modules/json-schema/draft-03/examples/card +105 -0
- data/node_modules/json-schema/draft-03/examples/geo +8 -0
- data/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- data/node_modules/json-schema/draft-03/hyper-schema +60 -0
- data/node_modules/json-schema/draft-03/json-ref +26 -0
- data/node_modules/json-schema/draft-03/links +35 -0
- data/node_modules/json-schema/draft-03/schema +174 -0
- data/node_modules/json-schema/draft-04/hyper-schema +60 -0
- data/node_modules/json-schema/draft-04/links +41 -0
- data/node_modules/json-schema/draft-04/schema +189 -0
- data/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- data/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- data/node_modules/json-schema/lib/links.js +66 -0
- data/node_modules/json-schema/lib/validate.js +273 -0
- data/node_modules/json-schema/package.json +100 -0
- data/node_modules/json-schema/test/tests.js +95 -0
- data/node_modules/json-stringify-safe/.npmignore +1 -0
- data/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
- data/node_modules/json-stringify-safe/LICENSE +15 -0
- data/node_modules/json-stringify-safe/Makefile +35 -0
- data/node_modules/json-stringify-safe/README.md +52 -0
- data/node_modules/json-stringify-safe/package.json +102 -0
- data/node_modules/json-stringify-safe/stringify.js +27 -0
- data/node_modules/json-stringify-safe/test/mocha.opts +2 -0
- data/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
- data/node_modules/jsonpointer/.travis.yml +7 -0
- data/node_modules/jsonpointer/LICENSE.md +21 -0
- data/node_modules/jsonpointer/README.md +39 -0
- data/node_modules/jsonpointer/benchmark.js +56 -0
- data/node_modules/jsonpointer/jsonpointer.js +93 -0
- data/node_modules/jsonpointer/package.json +109 -0
- data/node_modules/jsonpointer/test.js +131 -0
- data/node_modules/jsprim/CHANGES.md +39 -0
- data/node_modules/jsprim/LICENSE +19 -0
- data/node_modules/jsprim/README.md +237 -0
- data/node_modules/jsprim/lib/jsprim.js +488 -0
- data/node_modules/jsprim/package.json +85 -0
- data/node_modules/levn/LICENSE +22 -0
- data/node_modules/levn/README.md +196 -0
- data/node_modules/levn/lib/cast.js +298 -0
- data/node_modules/levn/lib/coerce.js +285 -0
- data/node_modules/levn/lib/index.js +22 -0
- data/node_modules/levn/lib/parse-string.js +113 -0
- data/node_modules/levn/lib/parse.js +102 -0
- data/node_modules/levn/package.json +108 -0
- data/node_modules/mime-db/HISTORY.md +375 -0
- data/node_modules/mime-db/LICENSE +22 -0
- data/node_modules/mime-db/README.md +82 -0
- data/node_modules/mime-db/db.json +6712 -0
- data/node_modules/mime-db/index.js +11 -0
- data/node_modules/mime-db/package.json +137 -0
- data/node_modules/mime-types/HISTORY.md +210 -0
- data/node_modules/mime-types/LICENSE +23 -0
- data/node_modules/mime-types/README.md +103 -0
- data/node_modules/mime-types/index.js +188 -0
- data/node_modules/mime-types/package.json +127 -0
- data/node_modules/nwmatcher/LICENSE +22 -0
- data/node_modules/nwmatcher/README.md +107 -0
- data/node_modules/nwmatcher/package.json +99 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-cache.js +187 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-jquery.js +126 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-pseudos.js +273 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-shortcuts.js +35 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-traversal.js +90 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-webforms.js +104 -0
- data/node_modules/nwmatcher/src/nwmatcher-base.js +785 -0
- data/node_modules/nwmatcher/src/nwmatcher-noqsa.js +962 -0
- data/node_modules/nwmatcher/src/nwmatcher.js +1780 -0
- data/node_modules/oauth-sign/LICENSE +55 -0
- data/node_modules/oauth-sign/README.md +4 -0
- data/node_modules/oauth-sign/index.js +136 -0
- data/node_modules/oauth-sign/package.json +98 -0
- data/node_modules/optionator/CHANGELOG.md +52 -0
- data/node_modules/optionator/LICENSE +22 -0
- data/node_modules/optionator/README.md +236 -0
- data/node_modules/optionator/lib/help.js +247 -0
- data/node_modules/optionator/lib/index.js +465 -0
- data/node_modules/optionator/lib/util.js +54 -0
- data/node_modules/optionator/package.json +109 -0
- data/node_modules/parse5/CHANGELOG.md +69 -0
- data/node_modules/parse5/LICENSE +19 -0
- data/node_modules/parse5/README.md +247 -0
- data/node_modules/parse5/docs/build/index.md +963 -0
- data/node_modules/parse5/index.js +12 -0
- data/node_modules/parse5/lib/common/doctype.js +134 -0
- data/node_modules/parse5/lib/common/foreign_content.js +257 -0
- data/node_modules/parse5/lib/common/html.js +268 -0
- data/node_modules/parse5/lib/common/unicode.js +48 -0
- data/node_modules/parse5/lib/common/utils.js +13 -0
- data/node_modules/parse5/lib/jsdom/jsdom_parser.js +39 -0
- data/node_modules/parse5/lib/jsdom/parsing_unit.js +53 -0
- data/node_modules/parse5/lib/serialization/serializer.js +178 -0
- data/node_modules/parse5/lib/simple_api/simple_api_parser.js +107 -0
- data/node_modules/parse5/lib/simple_api/tokenizer_proxy.js +122 -0
- data/node_modules/parse5/lib/tokenization/location_info_mixin.js +80 -0
- data/node_modules/parse5/lib/tokenization/named_entity_trie.js +6 -0
- data/node_modules/parse5/lib/tokenization/preprocessor.js +115 -0
- data/node_modules/parse5/lib/tokenization/tokenizer.js +2317 -0
- data/node_modules/parse5/lib/tree_adapters/default.js +200 -0
- data/node_modules/parse5/lib/tree_adapters/htmlparser2.js +317 -0
- data/node_modules/parse5/lib/tree_construction/formatting_element_list.js +167 -0
- data/node_modules/parse5/lib/tree_construction/location_info_mixin.js +197 -0
- data/node_modules/parse5/lib/tree_construction/open_element_stack.js +379 -0
- data/node_modules/parse5/lib/tree_construction/parser.js +2827 -0
- data/node_modules/parse5/package.json +125 -0
- data/node_modules/pinkie-promise/index.js +3 -0
- data/node_modules/pinkie-promise/license +21 -0
- data/node_modules/pinkie-promise/package.json +102 -0
- data/node_modules/pinkie-promise/readme.md +28 -0
- data/node_modules/pinkie/index.js +292 -0
- data/node_modules/pinkie/license +21 -0
- data/node_modules/pinkie/package.json +100 -0
- data/node_modules/pinkie/readme.md +83 -0
- data/node_modules/prelude-ls/CHANGELOG.md +99 -0
- data/node_modules/prelude-ls/LICENSE +22 -0
- data/node_modules/prelude-ls/README.md +15 -0
- data/node_modules/prelude-ls/lib/Func.js +65 -0
- data/node_modules/prelude-ls/lib/List.js +686 -0
- data/node_modules/prelude-ls/lib/Num.js +130 -0
- data/node_modules/prelude-ls/lib/Obj.js +154 -0
- data/node_modules/prelude-ls/lib/Str.js +92 -0
- data/node_modules/prelude-ls/lib/index.js +178 -0
- data/node_modules/prelude-ls/package.json +116 -0
- data/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/punycode/README.md +176 -0
- data/node_modules/punycode/package.json +127 -0
- data/node_modules/punycode/punycode.js +533 -0
- data/node_modules/qs/.eslintignore +1 -0
- data/node_modules/qs/.eslintrc +19 -0
- data/node_modules/qs/CHANGELOG.md +144 -0
- data/node_modules/qs/CONTRIBUTING.md +1 -0
- data/node_modules/qs/LICENSE +28 -0
- data/node_modules/qs/README.md +398 -0
- data/node_modules/qs/dist/qs.js +574 -0
- data/node_modules/qs/lib/formats.js +18 -0
- data/node_modules/qs/lib/index.js +11 -0
- data/node_modules/qs/lib/parse.js +166 -0
- data/node_modules/qs/lib/stringify.js +187 -0
- data/node_modules/qs/lib/utils.js +180 -0
- data/node_modules/qs/package.json +121 -0
- data/node_modules/qs/test/.eslintrc +9 -0
- data/node_modules/qs/test/index.js +7 -0
- data/node_modules/qs/test/parse.js +459 -0
- data/node_modules/qs/test/stringify.js +538 -0
- data/node_modules/qs/test/utils.js +22 -0
- data/node_modules/sax/LICENSE +41 -0
- data/node_modules/sax/LICENSE-W3C.html +188 -0
- data/node_modules/sax/README.md +225 -0
- data/node_modules/sax/lib/sax.js +1576 -0
- data/node_modules/sax/package.json +133 -0
- data/node_modules/sntp/.npmignore +18 -0
- data/node_modules/sntp/.travis.yml +5 -0
- data/node_modules/sntp/LICENSE +28 -0
- data/node_modules/sntp/Makefile +9 -0
- data/node_modules/sntp/README.md +68 -0
- data/node_modules/sntp/examples/offset.js +16 -0
- data/node_modules/sntp/examples/time.js +25 -0
- data/node_modules/sntp/index.js +1 -0
- data/node_modules/sntp/lib/index.js +412 -0
- data/node_modules/sntp/package.json +98 -0
- data/node_modules/sntp/test/index.js +435 -0
- data/node_modules/source-map/.npmignore +2 -0
- data/node_modules/source-map/.travis.yml +4 -0
- data/node_modules/source-map/CHANGELOG.md +201 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/Makefile.dryice.js +166 -0
- data/node_modules/source-map/README.md +479 -0
- data/node_modules/source-map/build/assert-shim.js +56 -0
- data/node_modules/source-map/build/mini-require.js +152 -0
- data/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/node_modules/source-map/build/test-prefix.js +8 -0
- data/node_modules/source-map/build/test-suffix.js +3 -0
- data/node_modules/source-map/lib/source-map.js +8 -0
- data/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/node_modules/source-map/lib/source-map/base64-vlq.js +142 -0
- data/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +420 -0
- data/node_modules/source-map/lib/source-map/binary-search.js +80 -0
- data/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +303 -0
- data/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
- data/node_modules/source-map/lib/source-map/source-map-consumer.js +222 -0
- data/node_modules/source-map/lib/source-map/source-map-generator.js +400 -0
- data/node_modules/source-map/lib/source-map/source-node.js +414 -0
- data/node_modules/source-map/lib/source-map/util.js +319 -0
- data/node_modules/source-map/package.json +223 -0
- data/node_modules/source-map/test/run-tests.js +62 -0
- data/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/node_modules/source-map/test/source-map/test-base64-vlq.js +23 -0
- data/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/source-map/test/source-map/test-dog-fooding.js +84 -0
- data/node_modules/source-map/test/source-map/test-source-map-consumer.js +874 -0
- data/node_modules/source-map/test/source-map/test-source-map-generator.js +679 -0
- data/node_modules/source-map/test/source-map/test-source-node.js +612 -0
- data/node_modules/source-map/test/source-map/test-util.js +216 -0
- data/node_modules/source-map/test/source-map/util.js +299 -0
- data/node_modules/sshpk/.npmignore +9 -0
- data/node_modules/sshpk/.travis.yml +11 -0
- data/node_modules/sshpk/LICENSE +18 -0
- data/node_modules/sshpk/README.md +666 -0
- data/node_modules/sshpk/bin/sshpk-conv +201 -0
- data/node_modules/sshpk/bin/sshpk-sign +191 -0
- data/node_modules/sshpk/bin/sshpk-verify +166 -0
- data/node_modules/sshpk/lib/algs.js +168 -0
- data/node_modules/sshpk/lib/certificate.js +291 -0
- data/node_modules/sshpk/lib/dhe.js +311 -0
- data/node_modules/sshpk/lib/ed-compat.js +96 -0
- data/node_modules/sshpk/lib/errors.js +84 -0
- data/node_modules/sshpk/lib/fingerprint.js +161 -0
- data/node_modules/sshpk/lib/formats/auto.js +73 -0
- data/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- data/node_modules/sshpk/lib/formats/pem.js +186 -0
- data/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- data/node_modules/sshpk/lib/formats/pkcs8.js +505 -0
- data/node_modules/sshpk/lib/formats/rfc4253.js +146 -0
- data/node_modules/sshpk/lib/formats/ssh-private.js +261 -0
- data/node_modules/sshpk/lib/formats/ssh.js +114 -0
- data/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
- data/node_modules/sshpk/lib/formats/x509.js +484 -0
- data/node_modules/sshpk/lib/identity.js +255 -0
- data/node_modules/sshpk/lib/index.js +38 -0
- data/node_modules/sshpk/lib/key.js +270 -0
- data/node_modules/sshpk/lib/private-key.js +231 -0
- data/node_modules/sshpk/lib/signature.js +245 -0
- data/node_modules/sshpk/lib/ssh-buffer.js +148 -0
- data/node_modules/sshpk/lib/utils.js +288 -0
- data/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- data/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- data/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- data/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- data/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/sshpk/node_modules/assert-plus/package.json +115 -0
- data/node_modules/sshpk/package.json +135 -0
- data/node_modules/stringstream/.npmignore +15 -0
- data/node_modules/stringstream/.travis.yml +4 -0
- data/node_modules/stringstream/LICENSE.txt +22 -0
- data/node_modules/stringstream/README.md +38 -0
- data/node_modules/stringstream/example.js +27 -0
- data/node_modules/stringstream/package.json +85 -0
- data/node_modules/stringstream/stringstream.js +102 -0
- data/node_modules/strip-ansi/index.js +6 -0
- data/node_modules/strip-ansi/license +21 -0
- data/node_modules/strip-ansi/package.json +123 -0
- data/node_modules/strip-ansi/readme.md +33 -0
- data/node_modules/supports-color/index.js +50 -0
- data/node_modules/supports-color/license +21 -0
- data/node_modules/supports-color/package.json +113 -0
- data/node_modules/supports-color/readme.md +36 -0
- data/node_modules/symbol-tree/.jscsrc +55 -0
- data/node_modules/symbol-tree/.npmignore +6 -0
- data/node_modules/symbol-tree/LICENSE +21 -0
- data/node_modules/symbol-tree/README.md +68 -0
- data/node_modules/symbol-tree/api.md +441 -0
- data/node_modules/symbol-tree/lib/SymbolTree.js +834 -0
- data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
- data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
- data/node_modules/symbol-tree/lib/TreePosition.js +10 -0
- data/node_modules/symbol-tree/package.json +121 -0
- data/node_modules/symbol-tree/test/SymbolTree.js +1189 -0
- data/node_modules/tough-cookie/LICENSE +27 -0
- data/node_modules/tough-cookie/README.md +506 -0
- data/node_modules/tough-cookie/lib/cookie.js +1336 -0
- data/node_modules/tough-cookie/lib/memstore.js +170 -0
- data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
- data/node_modules/tough-cookie/lib/permuteDomain.js +56 -0
- data/node_modules/tough-cookie/lib/pubsuffix.js +98 -0
- data/node_modules/tough-cookie/lib/store.js +71 -0
- data/node_modules/tough-cookie/package.json +136 -0
- data/node_modules/tr46/.npmignore +4 -0
- data/node_modules/tr46/index.js +193 -0
- data/node_modules/tr46/lib/.gitkeep +0 -0
- data/node_modules/tr46/lib/mappingTable.json +1 -0
- data/node_modules/tr46/package.json +91 -0
- data/node_modules/tunnel-agent/LICENSE +55 -0
- data/node_modules/tunnel-agent/README.md +4 -0
- data/node_modules/tunnel-agent/index.js +243 -0
- data/node_modules/tunnel-agent/package.json +100 -0
- data/node_modules/tweetnacl/.npmignore +4 -0
- data/node_modules/tweetnacl/CHANGELOG.md +209 -0
- data/node_modules/tweetnacl/COPYING.txt +9 -0
- data/node_modules/tweetnacl/ISSUE_TEMPLATE.md +3 -0
- data/node_modules/tweetnacl/README.md +477 -0
- data/node_modules/tweetnacl/nacl-fast.js +2388 -0
- data/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- data/node_modules/tweetnacl/nacl.d.ts +98 -0
- data/node_modules/tweetnacl/nacl.js +1175 -0
- data/node_modules/tweetnacl/nacl.min.js +1 -0
- data/node_modules/tweetnacl/package.json +121 -0
- data/node_modules/type-check/LICENSE +22 -0
- data/node_modules/type-check/README.md +210 -0
- data/node_modules/type-check/lib/check.js +126 -0
- data/node_modules/type-check/lib/index.js +16 -0
- data/node_modules/type-check/lib/parse-type.js +196 -0
- data/node_modules/type-check/package.json +102 -0
- data/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/type-detect/History.md +52 -0
- data/node_modules/type-detect/README.md +226 -0
- data/node_modules/type-detect/ReleaseNotes.md +46 -0
- data/node_modules/type-detect/index.js +1 -0
- data/node_modules/type-detect/lib/type.js +134 -0
- data/node_modules/type-detect/package.json +93 -0
- data/node_modules/uuid/.npmignore +8 -0
- data/node_modules/uuid/.travis.yml +5 -0
- data/node_modules/uuid/AUTHORS +5 -0
- data/node_modules/uuid/HISTORY.md +28 -0
- data/node_modules/uuid/LICENSE.md +21 -0
- data/node_modules/uuid/README.md +132 -0
- data/node_modules/uuid/bin/uuid +26 -0
- data/node_modules/uuid/index.js +8 -0
- data/node_modules/uuid/lib/bytesToUuid.js +23 -0
- data/node_modules/uuid/lib/rng-browser.js +33 -0
- data/node_modules/uuid/lib/rng.js +10 -0
- data/node_modules/uuid/package.json +122 -0
- data/node_modules/uuid/test/mocha.opts +3 -0
- data/node_modules/uuid/test/test.js +96 -0
- data/node_modules/uuid/v1.js +103 -0
- data/node_modules/uuid/v4.js +29 -0
- data/node_modules/verror/.gitmodules +0 -0
- data/node_modules/verror/.npmignore +1 -0
- data/node_modules/verror/LICENSE +19 -0
- data/node_modules/verror/Makefile +35 -0
- data/node_modules/verror/Makefile.targ +285 -0
- data/node_modules/verror/README.md +120 -0
- data/node_modules/verror/examples/levels-verror.js +36 -0
- data/node_modules/verror/examples/levels-werror.js +34 -0
- data/node_modules/verror/examples/varargs.js +6 -0
- data/node_modules/verror/examples/verror.js +13 -0
- data/node_modules/verror/examples/werror.js +14 -0
- data/node_modules/verror/jsl.node.conf +139 -0
- data/node_modules/verror/lib/verror.js +157 -0
- data/node_modules/verror/package.json +78 -0
- data/node_modules/verror/tests/tst.inherit.js +100 -0
- data/node_modules/verror/tests/tst.verror.js +156 -0
- data/node_modules/verror/tests/tst.werror.js +179 -0
- data/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/webidl-conversions/README.md +53 -0
- data/node_modules/webidl-conversions/lib/index.js +189 -0
- data/node_modules/webidl-conversions/package.json +96 -0
- data/node_modules/whatwg-encoding/LICENSE.txt +19 -0
- data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
- data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
- data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.travis.yml +20 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/Changelog.md +93 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/README.md +157 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +170 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +174 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/package.json +153 -0
- data/node_modules/whatwg-encoding/package.json +101 -0
- data/node_modules/whatwg-url/.eslintignore +3 -0
- data/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/node_modules/whatwg-url/README.md +66 -0
- data/node_modules/whatwg-url/lib/URL-impl.js +216 -0
- data/node_modules/whatwg-url/lib/URL.js +209 -0
- data/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/node_modules/whatwg-url/lib/url-state-machine.js +1173 -0
- data/node_modules/whatwg-url/lib/utils.js +20 -0
- data/node_modules/whatwg-url/package.json +103 -0
- data/node_modules/wordwrap/LICENSE +18 -0
- data/node_modules/wordwrap/README.markdown +70 -0
- data/node_modules/wordwrap/example/center.js +10 -0
- data/node_modules/wordwrap/example/meat.js +3 -0
- data/node_modules/wordwrap/index.js +76 -0
- data/node_modules/wordwrap/package.json +94 -0
- data/node_modules/wordwrap/test/break.js +32 -0
- data/node_modules/wordwrap/test/idleness.txt +63 -0
- data/node_modules/wordwrap/test/wrap.js +33 -0
- data/node_modules/xml-name-validator/LICENSE.txt +19 -0
- data/node_modules/xml-name-validator/README.md +36 -0
- data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
- data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
- data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
- data/node_modules/xml-name-validator/package.json +97 -0
- data/node_modules/xtend/.jshintrc +30 -0
- data/node_modules/xtend/.npmignore +1 -0
- data/node_modules/xtend/LICENCE +19 -0
- data/node_modules/xtend/Makefile +4 -0
- data/node_modules/xtend/README.md +32 -0
- data/node_modules/xtend/immutable.js +19 -0
- data/node_modules/xtend/mutable.js +17 -0
- data/node_modules/xtend/package.json +117 -0
- data/node_modules/xtend/test.js +83 -0
- data/package.json +32 -0
- data/vendor/assets/javascripts/select_all.js +1 -1
- metadata +1870 -2
@@ -0,0 +1,22 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,351 @@
|
|
1
|
+
# Commander.js
|
2
|
+
|
3
|
+
|
4
|
+
[](http://travis-ci.org/tj/commander.js)
|
5
|
+
[](https://www.npmjs.org/package/commander)
|
6
|
+
[](https://www.npmjs.org/package/commander)
|
7
|
+
[](https://gitter.im/tj/commander.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
8
|
+
|
9
|
+
The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/tj/commander).
|
10
|
+
[API documentation](http://tj.github.com/commander.js/)
|
11
|
+
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
$ npm install commander
|
16
|
+
|
17
|
+
## Option parsing
|
18
|
+
|
19
|
+
Options with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options.
|
20
|
+
|
21
|
+
```js
|
22
|
+
#!/usr/bin/env node
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Module dependencies.
|
26
|
+
*/
|
27
|
+
|
28
|
+
var program = require('commander');
|
29
|
+
|
30
|
+
program
|
31
|
+
.version('0.0.1')
|
32
|
+
.option('-p, --peppers', 'Add peppers')
|
33
|
+
.option('-P, --pineapple', 'Add pineapple')
|
34
|
+
.option('-b, --bbq-sauce', 'Add bbq sauce')
|
35
|
+
.option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble')
|
36
|
+
.parse(process.argv);
|
37
|
+
|
38
|
+
console.log('you ordered a pizza with:');
|
39
|
+
if (program.peppers) console.log(' - peppers');
|
40
|
+
if (program.pineapple) console.log(' - pineapple');
|
41
|
+
if (program.bbqSauce) console.log(' - bbq');
|
42
|
+
console.log(' - %s cheese', program.cheese);
|
43
|
+
```
|
44
|
+
|
45
|
+
Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc.
|
46
|
+
|
47
|
+
|
48
|
+
## Coercion
|
49
|
+
|
50
|
+
```js
|
51
|
+
function range(val) {
|
52
|
+
return val.split('..').map(Number);
|
53
|
+
}
|
54
|
+
|
55
|
+
function list(val) {
|
56
|
+
return val.split(',');
|
57
|
+
}
|
58
|
+
|
59
|
+
function collect(val, memo) {
|
60
|
+
memo.push(val);
|
61
|
+
return memo;
|
62
|
+
}
|
63
|
+
|
64
|
+
function increaseVerbosity(v, total) {
|
65
|
+
return total + 1;
|
66
|
+
}
|
67
|
+
|
68
|
+
program
|
69
|
+
.version('0.0.1')
|
70
|
+
.usage('[options] <file ...>')
|
71
|
+
.option('-i, --integer <n>', 'An integer argument', parseInt)
|
72
|
+
.option('-f, --float <n>', 'A float argument', parseFloat)
|
73
|
+
.option('-r, --range <a>..<b>', 'A range', range)
|
74
|
+
.option('-l, --list <items>', 'A list', list)
|
75
|
+
.option('-o, --optional [value]', 'An optional value')
|
76
|
+
.option('-c, --collect [value]', 'A repeatable value', collect, [])
|
77
|
+
.option('-v, --verbose', 'A value that can be increased', increaseVerbosity, 0)
|
78
|
+
.parse(process.argv);
|
79
|
+
|
80
|
+
console.log(' int: %j', program.integer);
|
81
|
+
console.log(' float: %j', program.float);
|
82
|
+
console.log(' optional: %j', program.optional);
|
83
|
+
program.range = program.range || [];
|
84
|
+
console.log(' range: %j..%j', program.range[0], program.range[1]);
|
85
|
+
console.log(' list: %j', program.list);
|
86
|
+
console.log(' collect: %j', program.collect);
|
87
|
+
console.log(' verbosity: %j', program.verbose);
|
88
|
+
console.log(' args: %j', program.args);
|
89
|
+
```
|
90
|
+
|
91
|
+
## Regular Expression
|
92
|
+
```js
|
93
|
+
program
|
94
|
+
.version('0.0.1')
|
95
|
+
.option('-s --size <size>', 'Pizza size', /^(large|medium|small)$/i, 'medium')
|
96
|
+
.option('-d --drink [drink]', 'Drink', /^(coke|pepsi|izze)$/i)
|
97
|
+
.parse(process.argv);
|
98
|
+
|
99
|
+
console.log(' size: %j', program.size);
|
100
|
+
console.log(' drink: %j', program.drink);
|
101
|
+
```
|
102
|
+
|
103
|
+
## Variadic arguments
|
104
|
+
|
105
|
+
The last argument of a command can be variadic, and only the last argument. To make an argument variadic you have to
|
106
|
+
append `...` to the argument name. Here is an example:
|
107
|
+
|
108
|
+
```js
|
109
|
+
#!/usr/bin/env node
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Module dependencies.
|
113
|
+
*/
|
114
|
+
|
115
|
+
var program = require('commander');
|
116
|
+
|
117
|
+
program
|
118
|
+
.version('0.0.1')
|
119
|
+
.command('rmdir <dir> [otherDirs...]')
|
120
|
+
.action(function (dir, otherDirs) {
|
121
|
+
console.log('rmdir %s', dir);
|
122
|
+
if (otherDirs) {
|
123
|
+
otherDirs.forEach(function (oDir) {
|
124
|
+
console.log('rmdir %s', oDir);
|
125
|
+
});
|
126
|
+
}
|
127
|
+
});
|
128
|
+
|
129
|
+
program.parse(process.argv);
|
130
|
+
```
|
131
|
+
|
132
|
+
An `Array` is used for the value of a variadic argument. This applies to `program.args` as well as the argument passed
|
133
|
+
to your action as demonstrated above.
|
134
|
+
|
135
|
+
## Specify the argument syntax
|
136
|
+
|
137
|
+
```js
|
138
|
+
#!/usr/bin/env node
|
139
|
+
|
140
|
+
var program = require('../');
|
141
|
+
|
142
|
+
program
|
143
|
+
.version('0.0.1')
|
144
|
+
.arguments('<cmd> [env]')
|
145
|
+
.action(function (cmd, env) {
|
146
|
+
cmdValue = cmd;
|
147
|
+
envValue = env;
|
148
|
+
});
|
149
|
+
|
150
|
+
program.parse(process.argv);
|
151
|
+
|
152
|
+
if (typeof cmdValue === 'undefined') {
|
153
|
+
console.error('no command given!');
|
154
|
+
process.exit(1);
|
155
|
+
}
|
156
|
+
console.log('command:', cmdValue);
|
157
|
+
console.log('environment:', envValue || "no environment given");
|
158
|
+
```
|
159
|
+
|
160
|
+
## Git-style sub-commands
|
161
|
+
|
162
|
+
```js
|
163
|
+
// file: ./examples/pm
|
164
|
+
var program = require('..');
|
165
|
+
|
166
|
+
program
|
167
|
+
.version('0.0.1')
|
168
|
+
.command('install [name]', 'install one or more packages')
|
169
|
+
.command('search [query]', 'search with optional query')
|
170
|
+
.command('list', 'list packages installed', {isDefault: true})
|
171
|
+
.parse(process.argv);
|
172
|
+
```
|
173
|
+
|
174
|
+
When `.command()` is invoked with a description argument, no `.action(callback)` should be called to handle sub-commands, otherwise there will be an error. This tells commander that you're going to use separate executables for sub-commands, much like `git(1)` and other popular tools.
|
175
|
+
The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`.
|
176
|
+
|
177
|
+
Options can be passed with the call to `.command()`. Specifying `true` for `opts.noHelp` will remove the option from the generated help output. Specifying `true` for `opts.isDefault` will run the subcommand if no other subcommand is specified.
|
178
|
+
|
179
|
+
If the program is designed to be installed globally, make sure the executables have proper modes, like `755`.
|
180
|
+
|
181
|
+
### `--harmony`
|
182
|
+
|
183
|
+
You can enable `--harmony` option in two ways:
|
184
|
+
* Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. Note some os version don’t support this pattern.
|
185
|
+
* Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process.
|
186
|
+
|
187
|
+
## Automated --help
|
188
|
+
|
189
|
+
The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free:
|
190
|
+
|
191
|
+
```
|
192
|
+
$ ./examples/pizza --help
|
193
|
+
|
194
|
+
Usage: pizza [options]
|
195
|
+
|
196
|
+
An application for pizzas ordering
|
197
|
+
|
198
|
+
Options:
|
199
|
+
|
200
|
+
-h, --help output usage information
|
201
|
+
-V, --version output the version number
|
202
|
+
-p, --peppers Add peppers
|
203
|
+
-P, --pineapple Add pineapple
|
204
|
+
-b, --bbq Add bbq sauce
|
205
|
+
-c, --cheese <type> Add the specified type of cheese [marble]
|
206
|
+
-C, --no-cheese You do not want any cheese
|
207
|
+
|
208
|
+
```
|
209
|
+
|
210
|
+
## Custom help
|
211
|
+
|
212
|
+
You can display arbitrary `-h, --help` information
|
213
|
+
by listening for "--help". Commander will automatically
|
214
|
+
exit once you are done so that the remainder of your program
|
215
|
+
does not execute causing undesired behaviours, for example
|
216
|
+
in the following executable "stuff" will not output when
|
217
|
+
`--help` is used.
|
218
|
+
|
219
|
+
```js
|
220
|
+
#!/usr/bin/env node
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Module dependencies.
|
224
|
+
*/
|
225
|
+
|
226
|
+
var program = require('commander');
|
227
|
+
|
228
|
+
program
|
229
|
+
.version('0.0.1')
|
230
|
+
.option('-f, --foo', 'enable some foo')
|
231
|
+
.option('-b, --bar', 'enable some bar')
|
232
|
+
.option('-B, --baz', 'enable some baz');
|
233
|
+
|
234
|
+
// must be before .parse() since
|
235
|
+
// node's emit() is immediate
|
236
|
+
|
237
|
+
program.on('--help', function(){
|
238
|
+
console.log(' Examples:');
|
239
|
+
console.log('');
|
240
|
+
console.log(' $ custom-help --help');
|
241
|
+
console.log(' $ custom-help -h');
|
242
|
+
console.log('');
|
243
|
+
});
|
244
|
+
|
245
|
+
program.parse(process.argv);
|
246
|
+
|
247
|
+
console.log('stuff');
|
248
|
+
```
|
249
|
+
|
250
|
+
Yields the following help output when `node script-name.js -h` or `node script-name.js --help` are run:
|
251
|
+
|
252
|
+
```
|
253
|
+
|
254
|
+
Usage: custom-help [options]
|
255
|
+
|
256
|
+
Options:
|
257
|
+
|
258
|
+
-h, --help output usage information
|
259
|
+
-V, --version output the version number
|
260
|
+
-f, --foo enable some foo
|
261
|
+
-b, --bar enable some bar
|
262
|
+
-B, --baz enable some baz
|
263
|
+
|
264
|
+
Examples:
|
265
|
+
|
266
|
+
$ custom-help --help
|
267
|
+
$ custom-help -h
|
268
|
+
|
269
|
+
```
|
270
|
+
|
271
|
+
## .outputHelp(cb)
|
272
|
+
|
273
|
+
Output help information without exiting.
|
274
|
+
Optional callback cb allows post-processing of help text before it is displayed.
|
275
|
+
|
276
|
+
If you want to display help by default (e.g. if no command was provided), you can use something like:
|
277
|
+
|
278
|
+
```js
|
279
|
+
var program = require('commander');
|
280
|
+
var colors = require('colors');
|
281
|
+
|
282
|
+
program
|
283
|
+
.version('0.0.1')
|
284
|
+
.command('getstream [url]', 'get stream URL')
|
285
|
+
.parse(process.argv);
|
286
|
+
|
287
|
+
if (!process.argv.slice(2).length) {
|
288
|
+
program.outputHelp(make_red);
|
289
|
+
}
|
290
|
+
|
291
|
+
function make_red(txt) {
|
292
|
+
return colors.red(txt); //display the help text in red on the console
|
293
|
+
}
|
294
|
+
```
|
295
|
+
|
296
|
+
## .help(cb)
|
297
|
+
|
298
|
+
Output help information and exit immediately.
|
299
|
+
Optional callback cb allows post-processing of help text before it is displayed.
|
300
|
+
|
301
|
+
## Examples
|
302
|
+
|
303
|
+
```js
|
304
|
+
var program = require('commander');
|
305
|
+
|
306
|
+
program
|
307
|
+
.version('0.0.1')
|
308
|
+
.option('-C, --chdir <path>', 'change the working directory')
|
309
|
+
.option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
|
310
|
+
.option('-T, --no-tests', 'ignore test hook')
|
311
|
+
|
312
|
+
program
|
313
|
+
.command('setup [env]')
|
314
|
+
.description('run setup commands for all envs')
|
315
|
+
.option("-s, --setup_mode [mode]", "Which setup mode to use")
|
316
|
+
.action(function(env, options){
|
317
|
+
var mode = options.setup_mode || "normal";
|
318
|
+
env = env || 'all';
|
319
|
+
console.log('setup for %s env(s) with %s mode', env, mode);
|
320
|
+
});
|
321
|
+
|
322
|
+
program
|
323
|
+
.command('exec <cmd>')
|
324
|
+
.alias('ex')
|
325
|
+
.description('execute the given remote cmd')
|
326
|
+
.option("-e, --exec_mode <mode>", "Which exec mode to use")
|
327
|
+
.action(function(cmd, options){
|
328
|
+
console.log('exec "%s" using %s mode', cmd, options.exec_mode);
|
329
|
+
}).on('--help', function() {
|
330
|
+
console.log(' Examples:');
|
331
|
+
console.log();
|
332
|
+
console.log(' $ deploy exec sequential');
|
333
|
+
console.log(' $ deploy exec async');
|
334
|
+
console.log();
|
335
|
+
});
|
336
|
+
|
337
|
+
program
|
338
|
+
.command('*')
|
339
|
+
.action(function(env){
|
340
|
+
console.log('deploying "%s"', env);
|
341
|
+
});
|
342
|
+
|
343
|
+
program.parse(process.argv);
|
344
|
+
```
|
345
|
+
|
346
|
+
More Demos can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory.
|
347
|
+
|
348
|
+
## License
|
349
|
+
|
350
|
+
MIT
|
351
|
+
|
@@ -0,0 +1,1110 @@
|
|
1
|
+
/**
|
2
|
+
* Module dependencies.
|
3
|
+
*/
|
4
|
+
|
5
|
+
var EventEmitter = require('events').EventEmitter;
|
6
|
+
var spawn = require('child_process').spawn;
|
7
|
+
var readlink = require('graceful-readlink').readlinkSync;
|
8
|
+
var path = require('path');
|
9
|
+
var dirname = path.dirname;
|
10
|
+
var basename = path.basename;
|
11
|
+
var fs = require('fs');
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Expose the root command.
|
15
|
+
*/
|
16
|
+
|
17
|
+
exports = module.exports = new Command();
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Expose `Command`.
|
21
|
+
*/
|
22
|
+
|
23
|
+
exports.Command = Command;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Expose `Option`.
|
27
|
+
*/
|
28
|
+
|
29
|
+
exports.Option = Option;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initialize a new `Option` with the given `flags` and `description`.
|
33
|
+
*
|
34
|
+
* @param {String} flags
|
35
|
+
* @param {String} description
|
36
|
+
* @api public
|
37
|
+
*/
|
38
|
+
|
39
|
+
function Option(flags, description) {
|
40
|
+
this.flags = flags;
|
41
|
+
this.required = ~flags.indexOf('<');
|
42
|
+
this.optional = ~flags.indexOf('[');
|
43
|
+
this.bool = !~flags.indexOf('-no-');
|
44
|
+
flags = flags.split(/[ ,|]+/);
|
45
|
+
if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift();
|
46
|
+
this.long = flags.shift();
|
47
|
+
this.description = description || '';
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Return option name.
|
52
|
+
*
|
53
|
+
* @return {String}
|
54
|
+
* @api private
|
55
|
+
*/
|
56
|
+
|
57
|
+
Option.prototype.name = function() {
|
58
|
+
return this.long
|
59
|
+
.replace('--', '')
|
60
|
+
.replace('no-', '');
|
61
|
+
};
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Check if `arg` matches the short or long flag.
|
65
|
+
*
|
66
|
+
* @param {String} arg
|
67
|
+
* @return {Boolean}
|
68
|
+
* @api private
|
69
|
+
*/
|
70
|
+
|
71
|
+
Option.prototype.is = function(arg) {
|
72
|
+
return arg == this.short || arg == this.long;
|
73
|
+
};
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Initialize a new `Command`.
|
77
|
+
*
|
78
|
+
* @param {String} name
|
79
|
+
* @api public
|
80
|
+
*/
|
81
|
+
|
82
|
+
function Command(name) {
|
83
|
+
this.commands = [];
|
84
|
+
this.options = [];
|
85
|
+
this._execs = {};
|
86
|
+
this._allowUnknownOption = false;
|
87
|
+
this._args = [];
|
88
|
+
this._name = name || '';
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Inherit from `EventEmitter.prototype`.
|
93
|
+
*/
|
94
|
+
|
95
|
+
Command.prototype.__proto__ = EventEmitter.prototype;
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Add command `name`.
|
99
|
+
*
|
100
|
+
* The `.action()` callback is invoked when the
|
101
|
+
* command `name` is specified via __ARGV__,
|
102
|
+
* and the remaining arguments are applied to the
|
103
|
+
* function for access.
|
104
|
+
*
|
105
|
+
* When the `name` is "*" an un-matched command
|
106
|
+
* will be passed as the first arg, followed by
|
107
|
+
* the rest of __ARGV__ remaining.
|
108
|
+
*
|
109
|
+
* Examples:
|
110
|
+
*
|
111
|
+
* program
|
112
|
+
* .version('0.0.1')
|
113
|
+
* .option('-C, --chdir <path>', 'change the working directory')
|
114
|
+
* .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
|
115
|
+
* .option('-T, --no-tests', 'ignore test hook')
|
116
|
+
*
|
117
|
+
* program
|
118
|
+
* .command('setup')
|
119
|
+
* .description('run remote setup commands')
|
120
|
+
* .action(function() {
|
121
|
+
* console.log('setup');
|
122
|
+
* });
|
123
|
+
*
|
124
|
+
* program
|
125
|
+
* .command('exec <cmd>')
|
126
|
+
* .description('run the given remote command')
|
127
|
+
* .action(function(cmd) {
|
128
|
+
* console.log('exec "%s"', cmd);
|
129
|
+
* });
|
130
|
+
*
|
131
|
+
* program
|
132
|
+
* .command('teardown <dir> [otherDirs...]')
|
133
|
+
* .description('run teardown commands')
|
134
|
+
* .action(function(dir, otherDirs) {
|
135
|
+
* console.log('dir "%s"', dir);
|
136
|
+
* if (otherDirs) {
|
137
|
+
* otherDirs.forEach(function (oDir) {
|
138
|
+
* console.log('dir "%s"', oDir);
|
139
|
+
* });
|
140
|
+
* }
|
141
|
+
* });
|
142
|
+
*
|
143
|
+
* program
|
144
|
+
* .command('*')
|
145
|
+
* .description('deploy the given env')
|
146
|
+
* .action(function(env) {
|
147
|
+
* console.log('deploying "%s"', env);
|
148
|
+
* });
|
149
|
+
*
|
150
|
+
* program.parse(process.argv);
|
151
|
+
*
|
152
|
+
* @param {String} name
|
153
|
+
* @param {String} [desc] for git-style sub-commands
|
154
|
+
* @return {Command} the new command
|
155
|
+
* @api public
|
156
|
+
*/
|
157
|
+
|
158
|
+
Command.prototype.command = function(name, desc, opts) {
|
159
|
+
opts = opts || {};
|
160
|
+
var args = name.split(/ +/);
|
161
|
+
var cmd = new Command(args.shift());
|
162
|
+
|
163
|
+
if (desc) {
|
164
|
+
cmd.description(desc);
|
165
|
+
this.executables = true;
|
166
|
+
this._execs[cmd._name] = true;
|
167
|
+
if (opts.isDefault) this.defaultExecutable = cmd._name;
|
168
|
+
}
|
169
|
+
|
170
|
+
cmd._noHelp = !!opts.noHelp;
|
171
|
+
this.commands.push(cmd);
|
172
|
+
cmd.parseExpectedArgs(args);
|
173
|
+
cmd.parent = this;
|
174
|
+
|
175
|
+
if (desc) return this;
|
176
|
+
return cmd;
|
177
|
+
};
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Define argument syntax for the top-level command.
|
181
|
+
*
|
182
|
+
* @api public
|
183
|
+
*/
|
184
|
+
|
185
|
+
Command.prototype.arguments = function (desc) {
|
186
|
+
return this.parseExpectedArgs(desc.split(/ +/));
|
187
|
+
};
|
188
|
+
|
189
|
+
/**
|
190
|
+
* Add an implicit `help [cmd]` subcommand
|
191
|
+
* which invokes `--help` for the given command.
|
192
|
+
*
|
193
|
+
* @api private
|
194
|
+
*/
|
195
|
+
|
196
|
+
Command.prototype.addImplicitHelpCommand = function() {
|
197
|
+
this.command('help [cmd]', 'display help for [cmd]');
|
198
|
+
};
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Parse expected `args`.
|
202
|
+
*
|
203
|
+
* For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
|
204
|
+
*
|
205
|
+
* @param {Array} args
|
206
|
+
* @return {Command} for chaining
|
207
|
+
* @api public
|
208
|
+
*/
|
209
|
+
|
210
|
+
Command.prototype.parseExpectedArgs = function(args) {
|
211
|
+
if (!args.length) return;
|
212
|
+
var self = this;
|
213
|
+
args.forEach(function(arg) {
|
214
|
+
var argDetails = {
|
215
|
+
required: false,
|
216
|
+
name: '',
|
217
|
+
variadic: false
|
218
|
+
};
|
219
|
+
|
220
|
+
switch (arg[0]) {
|
221
|
+
case '<':
|
222
|
+
argDetails.required = true;
|
223
|
+
argDetails.name = arg.slice(1, -1);
|
224
|
+
break;
|
225
|
+
case '[':
|
226
|
+
argDetails.name = arg.slice(1, -1);
|
227
|
+
break;
|
228
|
+
}
|
229
|
+
|
230
|
+
if (argDetails.name.length > 3 && argDetails.name.slice(-3) === '...') {
|
231
|
+
argDetails.variadic = true;
|
232
|
+
argDetails.name = argDetails.name.slice(0, -3);
|
233
|
+
}
|
234
|
+
if (argDetails.name) {
|
235
|
+
self._args.push(argDetails);
|
236
|
+
}
|
237
|
+
});
|
238
|
+
return this;
|
239
|
+
};
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Register callback `fn` for the command.
|
243
|
+
*
|
244
|
+
* Examples:
|
245
|
+
*
|
246
|
+
* program
|
247
|
+
* .command('help')
|
248
|
+
* .description('display verbose help')
|
249
|
+
* .action(function() {
|
250
|
+
* // output help here
|
251
|
+
* });
|
252
|
+
*
|
253
|
+
* @param {Function} fn
|
254
|
+
* @return {Command} for chaining
|
255
|
+
* @api public
|
256
|
+
*/
|
257
|
+
|
258
|
+
Command.prototype.action = function(fn) {
|
259
|
+
var self = this;
|
260
|
+
var listener = function(args, unknown) {
|
261
|
+
// Parse any so-far unknown options
|
262
|
+
args = args || [];
|
263
|
+
unknown = unknown || [];
|
264
|
+
|
265
|
+
var parsed = self.parseOptions(unknown);
|
266
|
+
|
267
|
+
// Output help if necessary
|
268
|
+
outputHelpIfNecessary(self, parsed.unknown);
|
269
|
+
|
270
|
+
// If there are still any unknown options, then we simply
|
271
|
+
// die, unless someone asked for help, in which case we give it
|
272
|
+
// to them, and then we die.
|
273
|
+
if (parsed.unknown.length > 0) {
|
274
|
+
self.unknownOption(parsed.unknown[0]);
|
275
|
+
}
|
276
|
+
|
277
|
+
// Leftover arguments need to be pushed back. Fixes issue #56
|
278
|
+
if (parsed.args.length) args = parsed.args.concat(args);
|
279
|
+
|
280
|
+
self._args.forEach(function(arg, i) {
|
281
|
+
if (arg.required && null == args[i]) {
|
282
|
+
self.missingArgument(arg.name);
|
283
|
+
} else if (arg.variadic) {
|
284
|
+
if (i !== self._args.length - 1) {
|
285
|
+
self.variadicArgNotLast(arg.name);
|
286
|
+
}
|
287
|
+
|
288
|
+
args[i] = args.splice(i);
|
289
|
+
}
|
290
|
+
});
|
291
|
+
|
292
|
+
// Always append ourselves to the end of the arguments,
|
293
|
+
// to make sure we match the number of arguments the user
|
294
|
+
// expects
|
295
|
+
if (self._args.length) {
|
296
|
+
args[self._args.length] = self;
|
297
|
+
} else {
|
298
|
+
args.push(self);
|
299
|
+
}
|
300
|
+
|
301
|
+
fn.apply(self, args);
|
302
|
+
};
|
303
|
+
var parent = this.parent || this;
|
304
|
+
var name = parent === this ? '*' : this._name;
|
305
|
+
parent.on(name, listener);
|
306
|
+
if (this._alias) parent.on(this._alias, listener);
|
307
|
+
return this;
|
308
|
+
};
|
309
|
+
|
310
|
+
/**
|
311
|
+
* Define option with `flags`, `description` and optional
|
312
|
+
* coercion `fn`.
|
313
|
+
*
|
314
|
+
* The `flags` string should contain both the short and long flags,
|
315
|
+
* separated by comma, a pipe or space. The following are all valid
|
316
|
+
* all will output this way when `--help` is used.
|
317
|
+
*
|
318
|
+
* "-p, --pepper"
|
319
|
+
* "-p|--pepper"
|
320
|
+
* "-p --pepper"
|
321
|
+
*
|
322
|
+
* Examples:
|
323
|
+
*
|
324
|
+
* // simple boolean defaulting to false
|
325
|
+
* program.option('-p, --pepper', 'add pepper');
|
326
|
+
*
|
327
|
+
* --pepper
|
328
|
+
* program.pepper
|
329
|
+
* // => Boolean
|
330
|
+
*
|
331
|
+
* // simple boolean defaulting to true
|
332
|
+
* program.option('-C, --no-cheese', 'remove cheese');
|
333
|
+
*
|
334
|
+
* program.cheese
|
335
|
+
* // => true
|
336
|
+
*
|
337
|
+
* --no-cheese
|
338
|
+
* program.cheese
|
339
|
+
* // => false
|
340
|
+
*
|
341
|
+
* // required argument
|
342
|
+
* program.option('-C, --chdir <path>', 'change the working directory');
|
343
|
+
*
|
344
|
+
* --chdir /tmp
|
345
|
+
* program.chdir
|
346
|
+
* // => "/tmp"
|
347
|
+
*
|
348
|
+
* // optional argument
|
349
|
+
* program.option('-c, --cheese [type]', 'add cheese [marble]');
|
350
|
+
*
|
351
|
+
* @param {String} flags
|
352
|
+
* @param {String} description
|
353
|
+
* @param {Function|Mixed} fn or default
|
354
|
+
* @param {Mixed} defaultValue
|
355
|
+
* @return {Command} for chaining
|
356
|
+
* @api public
|
357
|
+
*/
|
358
|
+
|
359
|
+
Command.prototype.option = function(flags, description, fn, defaultValue) {
|
360
|
+
var self = this
|
361
|
+
, option = new Option(flags, description)
|
362
|
+
, oname = option.name()
|
363
|
+
, name = camelcase(oname);
|
364
|
+
|
365
|
+
// default as 3rd arg
|
366
|
+
if (typeof fn != 'function') {
|
367
|
+
if (fn instanceof RegExp) {
|
368
|
+
var regex = fn;
|
369
|
+
fn = function(val, def) {
|
370
|
+
var m = regex.exec(val);
|
371
|
+
return m ? m[0] : def;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
else {
|
375
|
+
defaultValue = fn;
|
376
|
+
fn = null;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
|
380
|
+
// preassign default value only for --no-*, [optional], or <required>
|
381
|
+
if (false == option.bool || option.optional || option.required) {
|
382
|
+
// when --no-* we make sure default is true
|
383
|
+
if (false == option.bool) defaultValue = true;
|
384
|
+
// preassign only if we have a default
|
385
|
+
if (undefined !== defaultValue) self[name] = defaultValue;
|
386
|
+
}
|
387
|
+
|
388
|
+
// register the option
|
389
|
+
this.options.push(option);
|
390
|
+
|
391
|
+
// when it's passed assign the value
|
392
|
+
// and conditionally invoke the callback
|
393
|
+
this.on(oname, function(val) {
|
394
|
+
// coercion
|
395
|
+
if (null !== val && fn) val = fn(val, undefined === self[name]
|
396
|
+
? defaultValue
|
397
|
+
: self[name]);
|
398
|
+
|
399
|
+
// unassigned or bool
|
400
|
+
if ('boolean' == typeof self[name] || 'undefined' == typeof self[name]) {
|
401
|
+
// if no value, bool true, and we have a default, then use it!
|
402
|
+
if (null == val) {
|
403
|
+
self[name] = option.bool
|
404
|
+
? defaultValue || true
|
405
|
+
: false;
|
406
|
+
} else {
|
407
|
+
self[name] = val;
|
408
|
+
}
|
409
|
+
} else if (null !== val) {
|
410
|
+
// reassign
|
411
|
+
self[name] = val;
|
412
|
+
}
|
413
|
+
});
|
414
|
+
|
415
|
+
return this;
|
416
|
+
};
|
417
|
+
|
418
|
+
/**
|
419
|
+
* Allow unknown options on the command line.
|
420
|
+
*
|
421
|
+
* @param {Boolean} arg if `true` or omitted, no error will be thrown
|
422
|
+
* for unknown options.
|
423
|
+
* @api public
|
424
|
+
*/
|
425
|
+
Command.prototype.allowUnknownOption = function(arg) {
|
426
|
+
this._allowUnknownOption = arguments.length === 0 || arg;
|
427
|
+
return this;
|
428
|
+
};
|
429
|
+
|
430
|
+
/**
|
431
|
+
* Parse `argv`, settings options and invoking commands when defined.
|
432
|
+
*
|
433
|
+
* @param {Array} argv
|
434
|
+
* @return {Command} for chaining
|
435
|
+
* @api public
|
436
|
+
*/
|
437
|
+
|
438
|
+
Command.prototype.parse = function(argv) {
|
439
|
+
// implicit help
|
440
|
+
if (this.executables) this.addImplicitHelpCommand();
|
441
|
+
|
442
|
+
// store raw args
|
443
|
+
this.rawArgs = argv;
|
444
|
+
|
445
|
+
// guess name
|
446
|
+
this._name = this._name || basename(argv[1], '.js');
|
447
|
+
|
448
|
+
// github-style sub-commands with no sub-command
|
449
|
+
if (this.executables && argv.length < 3 && !this.defaultExecutable) {
|
450
|
+
// this user needs help
|
451
|
+
argv.push('--help');
|
452
|
+
}
|
453
|
+
|
454
|
+
// process argv
|
455
|
+
var parsed = this.parseOptions(this.normalize(argv.slice(2)));
|
456
|
+
var args = this.args = parsed.args;
|
457
|
+
|
458
|
+
var result = this.parseArgs(this.args, parsed.unknown);
|
459
|
+
|
460
|
+
// executable sub-commands
|
461
|
+
var name = result.args[0];
|
462
|
+
if (this._execs[name] && typeof this._execs[name] != "function") {
|
463
|
+
return this.executeSubCommand(argv, args, parsed.unknown);
|
464
|
+
} else if (this.defaultExecutable) {
|
465
|
+
// use the default subcommand
|
466
|
+
args.unshift(name = this.defaultExecutable);
|
467
|
+
return this.executeSubCommand(argv, args, parsed.unknown);
|
468
|
+
}
|
469
|
+
|
470
|
+
return result;
|
471
|
+
};
|
472
|
+
|
473
|
+
/**
|
474
|
+
* Execute a sub-command executable.
|
475
|
+
*
|
476
|
+
* @param {Array} argv
|
477
|
+
* @param {Array} args
|
478
|
+
* @param {Array} unknown
|
479
|
+
* @api private
|
480
|
+
*/
|
481
|
+
|
482
|
+
Command.prototype.executeSubCommand = function(argv, args, unknown) {
|
483
|
+
args = args.concat(unknown);
|
484
|
+
|
485
|
+
if (!args.length) this.help();
|
486
|
+
if ('help' == args[0] && 1 == args.length) this.help();
|
487
|
+
|
488
|
+
// <cmd> --help
|
489
|
+
if ('help' == args[0]) {
|
490
|
+
args[0] = args[1];
|
491
|
+
args[1] = '--help';
|
492
|
+
}
|
493
|
+
|
494
|
+
// executable
|
495
|
+
var f = argv[1];
|
496
|
+
// name of the subcommand, link `pm-install`
|
497
|
+
var bin = basename(f, '.js') + '-' + args[0];
|
498
|
+
|
499
|
+
|
500
|
+
// In case of globally installed, get the base dir where executable
|
501
|
+
// subcommand file should be located at
|
502
|
+
var baseDir
|
503
|
+
, link = readlink(f);
|
504
|
+
|
505
|
+
// when symbolink is relative path
|
506
|
+
if (link !== f && link.charAt(0) !== '/') {
|
507
|
+
link = path.join(dirname(f), link)
|
508
|
+
}
|
509
|
+
baseDir = dirname(link);
|
510
|
+
|
511
|
+
// prefer local `./<bin>` to bin in the $PATH
|
512
|
+
var localBin = path.join(baseDir, bin);
|
513
|
+
|
514
|
+
// whether bin file is a js script with explicit `.js` extension
|
515
|
+
var isExplicitJS = false;
|
516
|
+
if (exists(localBin + '.js')) {
|
517
|
+
bin = localBin + '.js';
|
518
|
+
isExplicitJS = true;
|
519
|
+
} else if (exists(localBin)) {
|
520
|
+
bin = localBin;
|
521
|
+
}
|
522
|
+
|
523
|
+
args = args.slice(1);
|
524
|
+
|
525
|
+
var proc;
|
526
|
+
if (process.platform !== 'win32') {
|
527
|
+
if (isExplicitJS) {
|
528
|
+
args.unshift(localBin);
|
529
|
+
// add executable arguments to spawn
|
530
|
+
args = (process.execArgv || []).concat(args);
|
531
|
+
|
532
|
+
proc = spawn('node', args, { stdio: 'inherit', customFds: [0, 1, 2] });
|
533
|
+
} else {
|
534
|
+
proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });
|
535
|
+
}
|
536
|
+
} else {
|
537
|
+
args.unshift(localBin);
|
538
|
+
proc = spawn(process.execPath, args, { stdio: 'inherit'});
|
539
|
+
}
|
540
|
+
|
541
|
+
proc.on('close', process.exit.bind(process));
|
542
|
+
proc.on('error', function(err) {
|
543
|
+
if (err.code == "ENOENT") {
|
544
|
+
console.error('\n %s(1) does not exist, try --help\n', bin);
|
545
|
+
} else if (err.code == "EACCES") {
|
546
|
+
console.error('\n %s(1) not executable. try chmod or run with root\n', bin);
|
547
|
+
}
|
548
|
+
process.exit(1);
|
549
|
+
});
|
550
|
+
|
551
|
+
// Store the reference to the child process
|
552
|
+
this.runningCommand = proc;
|
553
|
+
};
|
554
|
+
|
555
|
+
/**
|
556
|
+
* Normalize `args`, splitting joined short flags. For example
|
557
|
+
* the arg "-abc" is equivalent to "-a -b -c".
|
558
|
+
* This also normalizes equal sign and splits "--abc=def" into "--abc def".
|
559
|
+
*
|
560
|
+
* @param {Array} args
|
561
|
+
* @return {Array}
|
562
|
+
* @api private
|
563
|
+
*/
|
564
|
+
|
565
|
+
Command.prototype.normalize = function(args) {
|
566
|
+
var ret = []
|
567
|
+
, arg
|
568
|
+
, lastOpt
|
569
|
+
, index;
|
570
|
+
|
571
|
+
for (var i = 0, len = args.length; i < len; ++i) {
|
572
|
+
arg = args[i];
|
573
|
+
if (i > 0) {
|
574
|
+
lastOpt = this.optionFor(args[i-1]);
|
575
|
+
}
|
576
|
+
|
577
|
+
if (arg === '--') {
|
578
|
+
// Honor option terminator
|
579
|
+
ret = ret.concat(args.slice(i));
|
580
|
+
break;
|
581
|
+
} else if (lastOpt && lastOpt.required) {
|
582
|
+
ret.push(arg);
|
583
|
+
} else if (arg.length > 1 && '-' == arg[0] && '-' != arg[1]) {
|
584
|
+
arg.slice(1).split('').forEach(function(c) {
|
585
|
+
ret.push('-' + c);
|
586
|
+
});
|
587
|
+
} else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) {
|
588
|
+
ret.push(arg.slice(0, index), arg.slice(index + 1));
|
589
|
+
} else {
|
590
|
+
ret.push(arg);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
|
594
|
+
return ret;
|
595
|
+
};
|
596
|
+
|
597
|
+
/**
|
598
|
+
* Parse command `args`.
|
599
|
+
*
|
600
|
+
* When listener(s) are available those
|
601
|
+
* callbacks are invoked, otherwise the "*"
|
602
|
+
* event is emitted and those actions are invoked.
|
603
|
+
*
|
604
|
+
* @param {Array} args
|
605
|
+
* @return {Command} for chaining
|
606
|
+
* @api private
|
607
|
+
*/
|
608
|
+
|
609
|
+
Command.prototype.parseArgs = function(args, unknown) {
|
610
|
+
var name;
|
611
|
+
|
612
|
+
if (args.length) {
|
613
|
+
name = args[0];
|
614
|
+
if (this.listeners(name).length) {
|
615
|
+
this.emit(args.shift(), args, unknown);
|
616
|
+
} else {
|
617
|
+
this.emit('*', args);
|
618
|
+
}
|
619
|
+
} else {
|
620
|
+
outputHelpIfNecessary(this, unknown);
|
621
|
+
|
622
|
+
// If there were no args and we have unknown options,
|
623
|
+
// then they are extraneous and we need to error.
|
624
|
+
if (unknown.length > 0) {
|
625
|
+
this.unknownOption(unknown[0]);
|
626
|
+
}
|
627
|
+
}
|
628
|
+
|
629
|
+
return this;
|
630
|
+
};
|
631
|
+
|
632
|
+
/**
|
633
|
+
* Return an option matching `arg` if any.
|
634
|
+
*
|
635
|
+
* @param {String} arg
|
636
|
+
* @return {Option}
|
637
|
+
* @api private
|
638
|
+
*/
|
639
|
+
|
640
|
+
Command.prototype.optionFor = function(arg) {
|
641
|
+
for (var i = 0, len = this.options.length; i < len; ++i) {
|
642
|
+
if (this.options[i].is(arg)) {
|
643
|
+
return this.options[i];
|
644
|
+
}
|
645
|
+
}
|
646
|
+
};
|
647
|
+
|
648
|
+
/**
|
649
|
+
* Parse options from `argv` returning `argv`
|
650
|
+
* void of these options.
|
651
|
+
*
|
652
|
+
* @param {Array} argv
|
653
|
+
* @return {Array}
|
654
|
+
* @api public
|
655
|
+
*/
|
656
|
+
|
657
|
+
Command.prototype.parseOptions = function(argv) {
|
658
|
+
var args = []
|
659
|
+
, len = argv.length
|
660
|
+
, literal
|
661
|
+
, option
|
662
|
+
, arg;
|
663
|
+
|
664
|
+
var unknownOptions = [];
|
665
|
+
|
666
|
+
// parse options
|
667
|
+
for (var i = 0; i < len; ++i) {
|
668
|
+
arg = argv[i];
|
669
|
+
|
670
|
+
// literal args after --
|
671
|
+
if ('--' == arg) {
|
672
|
+
literal = true;
|
673
|
+
continue;
|
674
|
+
}
|
675
|
+
|
676
|
+
if (literal) {
|
677
|
+
args.push(arg);
|
678
|
+
continue;
|
679
|
+
}
|
680
|
+
|
681
|
+
// find matching Option
|
682
|
+
option = this.optionFor(arg);
|
683
|
+
|
684
|
+
// option is defined
|
685
|
+
if (option) {
|
686
|
+
// requires arg
|
687
|
+
if (option.required) {
|
688
|
+
arg = argv[++i];
|
689
|
+
if (null == arg) return this.optionMissingArgument(option);
|
690
|
+
this.emit(option.name(), arg);
|
691
|
+
// optional arg
|
692
|
+
} else if (option.optional) {
|
693
|
+
arg = argv[i+1];
|
694
|
+
if (null == arg || ('-' == arg[0] && '-' != arg)) {
|
695
|
+
arg = null;
|
696
|
+
} else {
|
697
|
+
++i;
|
698
|
+
}
|
699
|
+
this.emit(option.name(), arg);
|
700
|
+
// bool
|
701
|
+
} else {
|
702
|
+
this.emit(option.name());
|
703
|
+
}
|
704
|
+
continue;
|
705
|
+
}
|
706
|
+
|
707
|
+
// looks like an option
|
708
|
+
if (arg.length > 1 && '-' == arg[0]) {
|
709
|
+
unknownOptions.push(arg);
|
710
|
+
|
711
|
+
// If the next argument looks like it might be
|
712
|
+
// an argument for this option, we pass it on.
|
713
|
+
// If it isn't, then it'll simply be ignored
|
714
|
+
if (argv[i+1] && '-' != argv[i+1][0]) {
|
715
|
+
unknownOptions.push(argv[++i]);
|
716
|
+
}
|
717
|
+
continue;
|
718
|
+
}
|
719
|
+
|
720
|
+
// arg
|
721
|
+
args.push(arg);
|
722
|
+
}
|
723
|
+
|
724
|
+
return { args: args, unknown: unknownOptions };
|
725
|
+
};
|
726
|
+
|
727
|
+
/**
|
728
|
+
* Return an object containing options as key-value pairs
|
729
|
+
*
|
730
|
+
* @return {Object}
|
731
|
+
* @api public
|
732
|
+
*/
|
733
|
+
Command.prototype.opts = function() {
|
734
|
+
var result = {}
|
735
|
+
, len = this.options.length;
|
736
|
+
|
737
|
+
for (var i = 0 ; i < len; i++) {
|
738
|
+
var key = camelcase(this.options[i].name());
|
739
|
+
result[key] = key === 'version' ? this._version : this[key];
|
740
|
+
}
|
741
|
+
return result;
|
742
|
+
};
|
743
|
+
|
744
|
+
/**
|
745
|
+
* Argument `name` is missing.
|
746
|
+
*
|
747
|
+
* @param {String} name
|
748
|
+
* @api private
|
749
|
+
*/
|
750
|
+
|
751
|
+
Command.prototype.missingArgument = function(name) {
|
752
|
+
console.error();
|
753
|
+
console.error(" error: missing required argument `%s'", name);
|
754
|
+
console.error();
|
755
|
+
process.exit(1);
|
756
|
+
};
|
757
|
+
|
758
|
+
/**
|
759
|
+
* `Option` is missing an argument, but received `flag` or nothing.
|
760
|
+
*
|
761
|
+
* @param {String} option
|
762
|
+
* @param {String} flag
|
763
|
+
* @api private
|
764
|
+
*/
|
765
|
+
|
766
|
+
Command.prototype.optionMissingArgument = function(option, flag) {
|
767
|
+
console.error();
|
768
|
+
if (flag) {
|
769
|
+
console.error(" error: option `%s' argument missing, got `%s'", option.flags, flag);
|
770
|
+
} else {
|
771
|
+
console.error(" error: option `%s' argument missing", option.flags);
|
772
|
+
}
|
773
|
+
console.error();
|
774
|
+
process.exit(1);
|
775
|
+
};
|
776
|
+
|
777
|
+
/**
|
778
|
+
* Unknown option `flag`.
|
779
|
+
*
|
780
|
+
* @param {String} flag
|
781
|
+
* @api private
|
782
|
+
*/
|
783
|
+
|
784
|
+
Command.prototype.unknownOption = function(flag) {
|
785
|
+
if (this._allowUnknownOption) return;
|
786
|
+
console.error();
|
787
|
+
console.error(" error: unknown option `%s'", flag);
|
788
|
+
console.error();
|
789
|
+
process.exit(1);
|
790
|
+
};
|
791
|
+
|
792
|
+
/**
|
793
|
+
* Variadic argument with `name` is not the last argument as required.
|
794
|
+
*
|
795
|
+
* @param {String} name
|
796
|
+
* @api private
|
797
|
+
*/
|
798
|
+
|
799
|
+
Command.prototype.variadicArgNotLast = function(name) {
|
800
|
+
console.error();
|
801
|
+
console.error(" error: variadic arguments must be last `%s'", name);
|
802
|
+
console.error();
|
803
|
+
process.exit(1);
|
804
|
+
};
|
805
|
+
|
806
|
+
/**
|
807
|
+
* Set the program version to `str`.
|
808
|
+
*
|
809
|
+
* This method auto-registers the "-V, --version" flag
|
810
|
+
* which will print the version number when passed.
|
811
|
+
*
|
812
|
+
* @param {String} str
|
813
|
+
* @param {String} flags
|
814
|
+
* @return {Command} for chaining
|
815
|
+
* @api public
|
816
|
+
*/
|
817
|
+
|
818
|
+
Command.prototype.version = function(str, flags) {
|
819
|
+
if (0 == arguments.length) return this._version;
|
820
|
+
this._version = str;
|
821
|
+
flags = flags || '-V, --version';
|
822
|
+
this.option(flags, 'output the version number');
|
823
|
+
this.on('version', function() {
|
824
|
+
process.stdout.write(str + '\n');
|
825
|
+
process.exit(0);
|
826
|
+
});
|
827
|
+
return this;
|
828
|
+
};
|
829
|
+
|
830
|
+
/**
|
831
|
+
* Set the description to `str`.
|
832
|
+
*
|
833
|
+
* @param {String} str
|
834
|
+
* @return {String|Command}
|
835
|
+
* @api public
|
836
|
+
*/
|
837
|
+
|
838
|
+
Command.prototype.description = function(str) {
|
839
|
+
if (0 === arguments.length) return this._description;
|
840
|
+
this._description = str;
|
841
|
+
return this;
|
842
|
+
};
|
843
|
+
|
844
|
+
/**
|
845
|
+
* Set an alias for the command
|
846
|
+
*
|
847
|
+
* @param {String} alias
|
848
|
+
* @return {String|Command}
|
849
|
+
* @api public
|
850
|
+
*/
|
851
|
+
|
852
|
+
Command.prototype.alias = function(alias) {
|
853
|
+
if (0 == arguments.length) return this._alias;
|
854
|
+
this._alias = alias;
|
855
|
+
return this;
|
856
|
+
};
|
857
|
+
|
858
|
+
/**
|
859
|
+
* Set / get the command usage `str`.
|
860
|
+
*
|
861
|
+
* @param {String} str
|
862
|
+
* @return {String|Command}
|
863
|
+
* @api public
|
864
|
+
*/
|
865
|
+
|
866
|
+
Command.prototype.usage = function(str) {
|
867
|
+
var args = this._args.map(function(arg) {
|
868
|
+
return humanReadableArgName(arg);
|
869
|
+
});
|
870
|
+
|
871
|
+
var usage = '[options]'
|
872
|
+
+ (this.commands.length ? ' [command]' : '')
|
873
|
+
+ (this._args.length ? ' ' + args.join(' ') : '');
|
874
|
+
|
875
|
+
if (0 == arguments.length) return this._usage || usage;
|
876
|
+
this._usage = str;
|
877
|
+
|
878
|
+
return this;
|
879
|
+
};
|
880
|
+
|
881
|
+
/**
|
882
|
+
* Get the name of the command
|
883
|
+
*
|
884
|
+
* @param {String} name
|
885
|
+
* @return {String|Command}
|
886
|
+
* @api public
|
887
|
+
*/
|
888
|
+
|
889
|
+
Command.prototype.name = function() {
|
890
|
+
return this._name;
|
891
|
+
};
|
892
|
+
|
893
|
+
/**
|
894
|
+
* Return the largest option length.
|
895
|
+
*
|
896
|
+
* @return {Number}
|
897
|
+
* @api private
|
898
|
+
*/
|
899
|
+
|
900
|
+
Command.prototype.largestOptionLength = function() {
|
901
|
+
return this.options.reduce(function(max, option) {
|
902
|
+
return Math.max(max, option.flags.length);
|
903
|
+
}, 0);
|
904
|
+
};
|
905
|
+
|
906
|
+
/**
|
907
|
+
* Return help for options.
|
908
|
+
*
|
909
|
+
* @return {String}
|
910
|
+
* @api private
|
911
|
+
*/
|
912
|
+
|
913
|
+
Command.prototype.optionHelp = function() {
|
914
|
+
var width = this.largestOptionLength();
|
915
|
+
|
916
|
+
// Prepend the help information
|
917
|
+
return [pad('-h, --help', width) + ' ' + 'output usage information']
|
918
|
+
.concat(this.options.map(function(option) {
|
919
|
+
return pad(option.flags, width) + ' ' + option.description;
|
920
|
+
}))
|
921
|
+
.join('\n');
|
922
|
+
};
|
923
|
+
|
924
|
+
/**
|
925
|
+
* Return command help documentation.
|
926
|
+
*
|
927
|
+
* @return {String}
|
928
|
+
* @api private
|
929
|
+
*/
|
930
|
+
|
931
|
+
Command.prototype.commandHelp = function() {
|
932
|
+
if (!this.commands.length) return '';
|
933
|
+
|
934
|
+
var commands = this.commands.filter(function(cmd) {
|
935
|
+
return !cmd._noHelp;
|
936
|
+
}).map(function(cmd) {
|
937
|
+
var args = cmd._args.map(function(arg) {
|
938
|
+
return humanReadableArgName(arg);
|
939
|
+
}).join(' ');
|
940
|
+
|
941
|
+
return [
|
942
|
+
cmd._name
|
943
|
+
+ (cmd._alias ? '|' + cmd._alias : '')
|
944
|
+
+ (cmd.options.length ? ' [options]' : '')
|
945
|
+
+ ' ' + args
|
946
|
+
, cmd.description()
|
947
|
+
];
|
948
|
+
});
|
949
|
+
|
950
|
+
var width = commands.reduce(function(max, command) {
|
951
|
+
return Math.max(max, command[0].length);
|
952
|
+
}, 0);
|
953
|
+
|
954
|
+
return [
|
955
|
+
''
|
956
|
+
, ' Commands:'
|
957
|
+
, ''
|
958
|
+
, commands.map(function(cmd) {
|
959
|
+
var desc = cmd[1] ? ' ' + cmd[1] : '';
|
960
|
+
return pad(cmd[0], width) + desc;
|
961
|
+
}).join('\n').replace(/^/gm, ' ')
|
962
|
+
, ''
|
963
|
+
].join('\n');
|
964
|
+
};
|
965
|
+
|
966
|
+
/**
|
967
|
+
* Return program help documentation.
|
968
|
+
*
|
969
|
+
* @return {String}
|
970
|
+
* @api private
|
971
|
+
*/
|
972
|
+
|
973
|
+
Command.prototype.helpInformation = function() {
|
974
|
+
var desc = [];
|
975
|
+
if (this._description) {
|
976
|
+
desc = [
|
977
|
+
' ' + this._description
|
978
|
+
, ''
|
979
|
+
];
|
980
|
+
}
|
981
|
+
|
982
|
+
var cmdName = this._name;
|
983
|
+
if (this._alias) {
|
984
|
+
cmdName = cmdName + '|' + this._alias;
|
985
|
+
}
|
986
|
+
var usage = [
|
987
|
+
''
|
988
|
+
,' Usage: ' + cmdName + ' ' + this.usage()
|
989
|
+
, ''
|
990
|
+
];
|
991
|
+
|
992
|
+
var cmds = [];
|
993
|
+
var commandHelp = this.commandHelp();
|
994
|
+
if (commandHelp) cmds = [commandHelp];
|
995
|
+
|
996
|
+
var options = [
|
997
|
+
' Options:'
|
998
|
+
, ''
|
999
|
+
, '' + this.optionHelp().replace(/^/gm, ' ')
|
1000
|
+
, ''
|
1001
|
+
, ''
|
1002
|
+
];
|
1003
|
+
|
1004
|
+
return usage
|
1005
|
+
.concat(cmds)
|
1006
|
+
.concat(desc)
|
1007
|
+
.concat(options)
|
1008
|
+
.join('\n');
|
1009
|
+
};
|
1010
|
+
|
1011
|
+
/**
|
1012
|
+
* Output help information for this command
|
1013
|
+
*
|
1014
|
+
* @api public
|
1015
|
+
*/
|
1016
|
+
|
1017
|
+
Command.prototype.outputHelp = function(cb) {
|
1018
|
+
if (!cb) {
|
1019
|
+
cb = function(passthru) {
|
1020
|
+
return passthru;
|
1021
|
+
}
|
1022
|
+
}
|
1023
|
+
process.stdout.write(cb(this.helpInformation()));
|
1024
|
+
this.emit('--help');
|
1025
|
+
};
|
1026
|
+
|
1027
|
+
/**
|
1028
|
+
* Output help information and exit.
|
1029
|
+
*
|
1030
|
+
* @api public
|
1031
|
+
*/
|
1032
|
+
|
1033
|
+
Command.prototype.help = function(cb) {
|
1034
|
+
this.outputHelp(cb);
|
1035
|
+
process.exit();
|
1036
|
+
};
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* Camel-case the given `flag`
|
1040
|
+
*
|
1041
|
+
* @param {String} flag
|
1042
|
+
* @return {String}
|
1043
|
+
* @api private
|
1044
|
+
*/
|
1045
|
+
|
1046
|
+
function camelcase(flag) {
|
1047
|
+
return flag.split('-').reduce(function(str, word) {
|
1048
|
+
return str + word[0].toUpperCase() + word.slice(1);
|
1049
|
+
});
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
/**
|
1053
|
+
* Pad `str` to `width`.
|
1054
|
+
*
|
1055
|
+
* @param {String} str
|
1056
|
+
* @param {Number} width
|
1057
|
+
* @return {String}
|
1058
|
+
* @api private
|
1059
|
+
*/
|
1060
|
+
|
1061
|
+
function pad(str, width) {
|
1062
|
+
var len = Math.max(0, width - str.length);
|
1063
|
+
return str + Array(len + 1).join(' ');
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
/**
|
1067
|
+
* Output help information if necessary
|
1068
|
+
*
|
1069
|
+
* @param {Command} command to output help for
|
1070
|
+
* @param {Array} array of options to search for -h or --help
|
1071
|
+
* @api private
|
1072
|
+
*/
|
1073
|
+
|
1074
|
+
function outputHelpIfNecessary(cmd, options) {
|
1075
|
+
options = options || [];
|
1076
|
+
for (var i = 0; i < options.length; i++) {
|
1077
|
+
if (options[i] == '--help' || options[i] == '-h') {
|
1078
|
+
cmd.outputHelp();
|
1079
|
+
process.exit(0);
|
1080
|
+
}
|
1081
|
+
}
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
/**
|
1085
|
+
* Takes an argument an returns its human readable equivalent for help usage.
|
1086
|
+
*
|
1087
|
+
* @param {Object} arg
|
1088
|
+
* @return {String}
|
1089
|
+
* @api private
|
1090
|
+
*/
|
1091
|
+
|
1092
|
+
function humanReadableArgName(arg) {
|
1093
|
+
var nameOutput = arg.name + (arg.variadic === true ? '...' : '');
|
1094
|
+
|
1095
|
+
return arg.required
|
1096
|
+
? '<' + nameOutput + '>'
|
1097
|
+
: '[' + nameOutput + ']'
|
1098
|
+
}
|
1099
|
+
|
1100
|
+
// for versions before node v0.8 when there weren't `fs.existsSync`
|
1101
|
+
function exists(file) {
|
1102
|
+
try {
|
1103
|
+
if (fs.statSync(file).isFile()) {
|
1104
|
+
return true;
|
1105
|
+
}
|
1106
|
+
} catch (e) {
|
1107
|
+
return false;
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
|