├── .gitignore ├── LICENSE ├── README.md ├── garlic-standalone.min.js ├── gh-pages.sh ├── images ├── devtools.png ├── response.png └── screenshot.png ├── index.html ├── node_modules ├── .bin │ ├── esparse │ ├── esvalidate │ ├── js-yaml │ ├── json2yaml │ ├── json2yml │ ├── jsontoyaml │ ├── jsontoyml │ ├── md2html │ ├── mkdirp │ ├── mustache │ ├── nopt │ ├── textile-js │ └── yaml2json ├── abbrev │ ├── LICENSE │ ├── README.md │ ├── abbrev.js │ └── package.json ├── argparse │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── action.js │ │ ├── action │ │ │ ├── append.js │ │ │ ├── append │ │ │ │ └── constant.js │ │ │ ├── count.js │ │ │ ├── help.js │ │ │ ├── store.js │ │ │ ├── store │ │ │ │ ├── constant.js │ │ │ │ ├── false.js │ │ │ │ └── true.js │ │ │ ├── subparsers.js │ │ │ └── version.js │ │ ├── action_container.js │ │ ├── argparse.js │ │ ├── argument │ │ │ ├── error.js │ │ │ ├── exclusive.js │ │ │ └── group.js │ │ ├── argument_parser.js │ │ ├── const.js │ │ ├── help │ │ │ ├── added_formatters.js │ │ │ └── formatter.js │ │ ├── namespace.js │ │ └── utils.js │ └── package.json ├── asciidoctor.js │ ├── LICENSE │ ├── README.adoc │ └── package.json ├── async │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── component.json │ ├── lib │ │ └── async.js │ ├── package.json │ └── support │ │ └── sync-package-managers.js ├── blt │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ └── process.js │ ├── package.json │ └── test │ │ └── index.js ├── commander │ ├── Readme.md │ ├── index.js │ └── package.json ├── core-util-is │ ├── LICENSE │ ├── README.md │ ├── float.patch │ ├── lib │ │ └── util.js │ ├── package.json │ └── test.js ├── esprima │ ├── ChangeLog │ ├── LICENSE.BSD │ ├── README.md │ ├── bin │ │ ├── esparse.js │ │ └── esvalidate.js │ ├── esprima.js │ └── package.json ├── findit │ ├── .npmignore │ ├── .travis.yml │ ├── example │ │ └── emitter.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── empty.js │ │ ├── err.js │ │ ├── foo.js │ │ ├── foo │ │ ├── a │ │ │ ├── b │ │ │ │ ├── c │ │ │ │ │ └── w │ │ │ │ └── z │ │ │ └── y │ │ └── x │ │ ├── module.js │ │ ├── stop.js │ │ ├── stop │ │ ├── q │ │ │ ├── w │ │ │ │ ├── c │ │ │ │ └── d │ │ │ ├── x │ │ │ ├── y │ │ │ └── z │ │ │ │ ├── m │ │ │ │ └── n │ │ └── r │ │ │ ├── a │ │ │ ├── b │ │ │ └── c │ │ │ ├── f │ │ │ └── h │ │ │ └── g │ │ │ └── i │ │ ├── symlinks.js │ │ └── symlinks │ │ ├── dir1 │ │ └── file1 │ │ ├── dir2 │ │ └── file2 │ │ └── file ├── garlic │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── index.js ├── graceful-fs │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── fs.js │ ├── graceful-fs.js │ ├── package.json │ ├── polyfills.js │ └── test │ │ ├── max-open.js │ │ ├── open.js │ │ ├── readdir-sort.js │ │ └── write-then-read.js ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ ├── package.json │ └── test.js ├── isarray │ ├── README.md │ ├── build │ │ └── build.js │ ├── component.json │ ├── index.js │ └── package.json ├── jquery │ ├── AUTHORS.txt │ ├── LICENSE.txt │ ├── README.md │ ├── bower.json │ ├── dist │ │ ├── core.js │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ ├── jquery.min.map │ │ ├── jquery.slim.js │ │ ├── jquery.slim.min.js │ │ └── jquery.slim.min.map │ ├── external │ │ └── sizzle │ │ │ ├── LICENSE.txt │ │ │ └── dist │ │ │ ├── sizzle.js │ │ │ ├── sizzle.min.js │ │ │ └── sizzle.min.map │ ├── package.json │ └── src │ │ ├── .eslintrc │ │ ├── ajax.js │ │ ├── ajax │ │ ├── jsonp.js │ │ ├── load.js │ │ ├── parseXML.js │ │ ├── script.js │ │ ├── var │ │ │ ├── location.js │ │ │ ├── nonce.js │ │ │ └── rquery.js │ │ └── xhr.js │ │ ├── attributes.js │ │ ├── attributes │ │ ├── attr.js │ │ ├── classes.js │ │ ├── prop.js │ │ ├── support.js │ │ └── val.js │ │ ├── callbacks.js │ │ ├── core.js │ │ ├── core │ │ ├── DOMEval.js │ │ ├── access.js │ │ ├── init.js │ │ ├── parseHTML.js │ │ ├── ready-no-deferred.js │ │ ├── ready.js │ │ ├── readyException.js │ │ ├── support.js │ │ └── var │ │ │ └── rsingleTag.js │ │ ├── css.js │ │ ├── css │ │ ├── addGetHookIf.js │ │ ├── adjustCSS.js │ │ ├── curCSS.js │ │ ├── hiddenVisibleSelectors.js │ │ ├── showHide.js │ │ ├── support.js │ │ └── var │ │ │ ├── cssExpand.js │ │ │ ├── getStyles.js │ │ │ ├── isHiddenWithinTree.js │ │ │ ├── rmargin.js │ │ │ ├── rnumnonpx.js │ │ │ └── swap.js │ │ ├── data.js │ │ ├── data │ │ ├── Data.js │ │ └── var │ │ │ ├── acceptData.js │ │ │ ├── dataPriv.js │ │ │ └── dataUser.js │ │ ├── deferred.js │ │ ├── deferred │ │ └── exceptionHook.js │ │ ├── deprecated.js │ │ ├── dimensions.js │ │ ├── effects.js │ │ ├── effects │ │ ├── Tween.js │ │ └── animatedSelector.js │ │ ├── event.js │ │ ├── event │ │ ├── ajax.js │ │ ├── alias.js │ │ ├── focusin.js │ │ ├── support.js │ │ └── trigger.js │ │ ├── exports │ │ ├── amd.js │ │ └── global.js │ │ ├── jquery.js │ │ ├── manipulation.js │ │ ├── manipulation │ │ ├── _evalUrl.js │ │ ├── buildFragment.js │ │ ├── getAll.js │ │ ├── setGlobalEval.js │ │ ├── support.js │ │ ├── var │ │ │ ├── rcheckableType.js │ │ │ ├── rscriptType.js │ │ │ └── rtagName.js │ │ └── wrapMap.js │ │ ├── offset.js │ │ ├── queue.js │ │ ├── queue │ │ └── delay.js │ │ ├── selector-native.js │ │ ├── selector-sizzle.js │ │ ├── selector.js │ │ ├── serialize.js │ │ ├── traversing.js │ │ ├── traversing │ │ ├── findFilter.js │ │ └── var │ │ │ ├── dir.js │ │ │ ├── rneedsContext.js │ │ │ └── siblings.js │ │ ├── var │ │ ├── ObjectFunctionString.js │ │ ├── arr.js │ │ ├── class2type.js │ │ ├── concat.js │ │ ├── document.js │ │ ├── documentElement.js │ │ ├── fnToString.js │ │ ├── getProto.js │ │ ├── hasOwn.js │ │ ├── indexOf.js │ │ ├── pnum.js │ │ ├── push.js │ │ ├── rcssNum.js │ │ ├── rnotwhite.js │ │ ├── slice.js │ │ ├── support.js │ │ └── toString.js │ │ └── wrap.js ├── js-yaml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── js-yaml.js │ ├── dist │ │ ├── js-yaml.js │ │ └── js-yaml.min.js │ ├── index.js │ ├── lib │ │ ├── js-yaml.js │ │ └── js-yaml │ │ │ ├── common.js │ │ │ ├── dumper.js │ │ │ ├── exception.js │ │ │ ├── loader.js │ │ │ ├── mark.js │ │ │ ├── schema.js │ │ │ ├── schema │ │ │ ├── core.js │ │ │ ├── default_full.js │ │ │ ├── default_safe.js │ │ │ ├── failsafe.js │ │ │ └── json.js │ │ │ ├── type.js │ │ │ └── type │ │ │ ├── binary.js │ │ │ ├── bool.js │ │ │ ├── float.js │ │ │ ├── int.js │ │ │ ├── js │ │ │ ├── function.js │ │ │ ├── regexp.js │ │ │ └── undefined.js │ │ │ ├── map.js │ │ │ ├── merge.js │ │ │ ├── null.js │ │ │ ├── omap.js │ │ │ ├── pairs.js │ │ │ ├── seq.js │ │ │ ├── set.js │ │ │ ├── str.js │ │ │ └── timestamp.js │ └── package.json ├── json2yaml │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── cli.js │ ├── example.json │ ├── example.yml │ ├── index.js │ ├── package.json │ ├── test.sh │ └── tests │ │ ├── array.json │ │ └── object.json ├── markdown │ ├── .npmignore │ ├── .travis.yml │ ├── Changes.markdown │ ├── README.markdown │ ├── bin │ │ └── md2html.js │ ├── lib │ │ ├── index.js │ │ └── markdown.js │ ├── markdown-js.sublime-project │ ├── markdown-js.sublime-workspace │ ├── node_modules │ │ ├── .bin │ │ │ └── nopt │ │ └── nopt │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bin │ │ │ └── nopt.js │ │ │ ├── examples │ │ │ └── my-program.js │ │ │ ├── lib │ │ │ └── nopt.js │ │ │ └── package.json │ ├── package.json │ └── seed.yml ├── minimist │ ├── .travis.yml │ ├── LICENSE │ ├── example │ │ └── parse.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── dash.js │ │ ├── default_bool.js │ │ ├── dotted.js │ │ ├── long.js │ │ ├── parse.js │ │ ├── parse_modified.js │ │ ├── short.js │ │ └── whitespace.js ├── mkdirp │ ├── .travis.yml │ ├── LICENSE │ ├── bin │ │ ├── cmd.js │ │ └── usage.txt │ ├── examples │ │ └── pow.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── chmod.js │ │ ├── clobber.js │ │ ├── mkdirp.js │ │ ├── opts_fs.js │ │ ├── opts_fs_sync.js │ │ ├── perm.js │ │ ├── perm_sync.js │ │ ├── race.js │ │ ├── rel.js │ │ ├── return.js │ │ ├── return_sync.js │ │ ├── root.js │ │ ├── sync.js │ │ ├── umask.js │ │ └── umask_sync.js ├── mustache │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── mustache │ ├── mustache.js │ ├── mustache.min.js │ ├── package.json │ └── wrappers │ │ ├── dojo │ │ ├── mustache.js.post │ │ └── mustache.js.pre │ │ ├── jquery │ │ ├── mustache.js.post │ │ └── mustache.js.pre │ │ ├── mootools │ │ ├── mustache.js.post │ │ └── mustache.js.pre │ │ ├── qooxdoo │ │ ├── mustache.js.post │ │ └── mustache.js.pre │ │ └── yui3 │ │ ├── mustache.js.post │ │ └── mustache.js.pre ├── nopt │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── nopt.js │ ├── examples │ │ └── my-program.js │ ├── lib │ │ └── nopt.js │ └── package.json ├── opal-npm-wrapper │ ├── .npmignore │ ├── .travis.yml │ ├── Gruntfile.js │ ├── README.md │ ├── bower.json │ ├── index.js │ ├── package.json │ ├── src │ │ ├── append.js │ │ └── prepend.js │ ├── test.js │ └── test │ │ └── index.js ├── parse-curl │ ├── .npmignore │ ├── History.md │ ├── Readme.md │ ├── example.js │ ├── index.js │ ├── package.json │ └── test.js ├── readable-stream │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── duplex.js │ ├── lib │ │ ├── _stream_duplex.js │ │ ├── _stream_passthrough.js │ │ ├── _stream_readable.js │ │ ├── _stream_transform.js │ │ └── _stream_writable.js │ ├── package.json │ ├── passthrough.js │ ├── readable.js │ ├── transform.js │ └── writable.js ├── remedial │ ├── index.js │ └── package.json ├── shellwords │ ├── .npmignore │ ├── Cakefile │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── shellwords.js │ ├── package.json │ ├── spec │ │ └── shellwords_spec.coffee │ └── src │ │ └── shellwords.coffee ├── split │ ├── .npmignore │ ├── .travis.yml │ ├── LICENCE │ ├── examples │ │ └── pretty.js │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── options.asynct.js │ │ ├── partitioned_unicode.js │ │ ├── split.asynct.js │ │ └── try_catch.asynct.js ├── sprintf-js │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── demo │ │ └── angular.html │ ├── dist │ │ ├── angular-sprintf.min.js │ │ ├── angular-sprintf.min.js.map │ │ ├── angular-sprintf.min.map │ │ ├── sprintf.min.js │ │ ├── sprintf.min.js.map │ │ └── sprintf.min.map │ ├── gruntfile.js │ ├── package.json │ ├── src │ │ ├── angular-sprintf.js │ │ └── sprintf.js │ └── test │ │ └── test.js ├── storm-stream │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test │ │ └── index.js ├── string_decoder │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── textile-js │ ├── LICENSE │ ├── Makefile │ ├── README.textile │ ├── bin │ │ └── textile │ ├── bower.json │ ├── index.js │ ├── lib │ │ └── textile.js │ ├── package.json │ ├── test │ │ ├── block_comments.js │ │ ├── converted │ │ │ ├── basic.js │ │ │ ├── code.js │ │ │ ├── definitions.js │ │ │ ├── extra_whitespace.js │ │ │ ├── filter_pba.js │ │ │ ├── html.js │ │ │ ├── images.js │ │ │ ├── instiki.js │ │ │ ├── links.js │ │ │ ├── lists.js │ │ │ ├── poignant.js │ │ │ ├── table.js │ │ │ ├── textism.js │ │ │ └── threshold.js │ │ ├── index.html │ │ ├── index.js │ │ ├── jstextile-tests.js │ │ ├── options.js │ │ └── qunit │ │ │ ├── qunit.css │ │ │ └── qunit.js │ └── update_dingus.sh ├── through │ ├── .travis.yml │ ├── LICENSE.APACHE2 │ ├── LICENSE.MIT │ ├── index.js │ ├── package.json │ ├── readme.markdown │ └── test │ │ ├── async.js │ │ ├── auto-destroy.js │ │ ├── buffering.js │ │ ├── end.js │ │ └── index.js ├── through2 │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── through2.js ├── touch │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── touch.js │ ├── package.json │ ├── test │ │ └── sanity.js │ └── touch.js ├── underscore.string │ ├── .npmignore │ ├── .travis.yml │ ├── README.markdown │ ├── bower.json │ ├── component.json │ ├── foo.js │ ├── gulpfile.js │ ├── lib │ │ └── underscore.string.js │ ├── libpeerconnection.log │ └── package.json ├── underscore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── underscore-min.js │ ├── underscore-min.map │ └── underscore.js ├── xmlhttprequest │ ├── .jshintrc │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── XMLHttpRequest.js │ └── package.json ├── xtend │ ├── .jshintrc │ ├── .npmignore │ ├── LICENCE │ ├── Makefile │ ├── README.md │ ├── immutable.js │ ├── mutable.js │ ├── package.json │ └── test.js └── yaml-to-json │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── bin │ └── yaml2json │ ├── examples │ ├── antananarivo.textile │ ├── data.yml │ ├── musicman.md │ └── tegucigalpa.adoc │ ├── lib │ ├── command.js │ ├── index.js │ ├── loader.js │ ├── markup.js │ └── yaml.js │ ├── package.json │ ├── src │ ├── command.coffee │ ├── index.coffee │ ├── loader.coffee │ ├── markup.coffee │ └── yaml.coffee │ └── test │ └── index.coffee ├── package.json ├── script.js └── source.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Atsushi Nakatsugawa 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /gh-pages.sh: -------------------------------------------------------------------------------- 1 | git checkout gh-pages 2 | git rebase master 3 | git push origin gh-pages 4 | git checkout master 5 | -------------------------------------------------------------------------------- /images/devtools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/images/devtools.png -------------------------------------------------------------------------------- /images/response.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/images/response.png -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/images/screenshot.png -------------------------------------------------------------------------------- /node_modules/.bin/esparse: -------------------------------------------------------------------------------- 1 | ../esprima/bin/esparse.js -------------------------------------------------------------------------------- /node_modules/.bin/esvalidate: -------------------------------------------------------------------------------- 1 | ../esprima/bin/esvalidate.js -------------------------------------------------------------------------------- /node_modules/.bin/js-yaml: -------------------------------------------------------------------------------- 1 | ../js-yaml/bin/js-yaml.js -------------------------------------------------------------------------------- /node_modules/.bin/md2html: -------------------------------------------------------------------------------- 1 | ../markdown/bin/md2html.js -------------------------------------------------------------------------------- /node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | ../nopt/bin/nopt.js -------------------------------------------------------------------------------- /node_modules/.bin/textile-js: -------------------------------------------------------------------------------- 1 | ../textile-js/bin/textile -------------------------------------------------------------------------------- /node_modules/.bin/yaml2json: -------------------------------------------------------------------------------- 1 | ../yaml-to-json/bin/yaml2json -------------------------------------------------------------------------------- /node_modules/abbrev/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/abbrev/README.md: -------------------------------------------------------------------------------- 1 | # abbrev-js 2 | 3 | Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev). 4 | 5 | Usage: 6 | 7 | var abbrev = require("abbrev"); 8 | abbrev("foo", "fool", "folding", "flop"); 9 | 10 | // returns: 11 | { fl: 'flop' 12 | , flo: 'flop' 13 | , flop: 'flop' 14 | , fol: 'folding' 15 | , fold: 'folding' 16 | , foldi: 'folding' 17 | , foldin: 'folding' 18 | , folding: 'folding' 19 | , foo: 'foo' 20 | , fool: 'fool' 21 | } 22 | 23 | This is handy for command-line scripts, or other cases where you want to be able to accept shorthands. 24 | -------------------------------------------------------------------------------- /node_modules/argparse/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (C) 2012 by Vitaly Puzrin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/argparse/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./lib/argparse'); 4 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/count.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionCount 3 | * 4 | * This counts the number of times a keyword argument occurs. 5 | * For example, this is useful for increasing verbosity levels 6 | * 7 | * This class inherided from [[Action]] 8 | * 9 | **/ 10 | 'use strict'; 11 | 12 | var util = require('util'); 13 | 14 | var Action = require('../action'); 15 | 16 | /*:nodoc:* 17 | * new ActionCount(options) 18 | * - options (object): options hash see [[Action.new]] 19 | * 20 | **/ 21 | var ActionCount = module.exports = function ActionCount(options) { 22 | options = options || {}; 23 | options.nargs = 0; 24 | 25 | Action.call(this, options); 26 | }; 27 | util.inherits(ActionCount, Action); 28 | 29 | /*:nodoc:* 30 | * ActionCount#call(parser, namespace, values, optionString) -> Void 31 | * - parser (ArgumentParser): current parser 32 | * - namespace (Namespace): namespace for output data 33 | * - values (Array): parsed values 34 | * - optionString (Array): input option string(not parsed) 35 | * 36 | * Call the action. Save result in namespace object 37 | **/ 38 | ActionCount.prototype.call = function (parser, namespace) { 39 | namespace.set(this.dest, (namespace[this.dest] || 0) + 1); 40 | }; 41 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/help.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionHelp 3 | * 4 | * Support action for printing help 5 | * This class inherided from [[Action]] 6 | **/ 7 | 'use strict'; 8 | 9 | var util = require('util'); 10 | 11 | var Action = require('../action'); 12 | 13 | // Constants 14 | var c = require('../const'); 15 | 16 | /*:nodoc:* 17 | * new ActionHelp(options) 18 | * - options (object): options hash see [[Action.new]] 19 | * 20 | **/ 21 | var ActionHelp = module.exports = function ActionHelp(options) { 22 | options = options || {}; 23 | if (options.defaultValue !== null) { 24 | options.defaultValue = options.defaultValue; 25 | } else { 26 | options.defaultValue = c.SUPPRESS; 27 | } 28 | options.dest = (options.dest !== null ? options.dest : c.SUPPRESS); 29 | options.nargs = 0; 30 | Action.call(this, options); 31 | 32 | }; 33 | util.inherits(ActionHelp, Action); 34 | 35 | /*:nodoc:* 36 | * ActionHelp#call(parser, namespace, values, optionString) 37 | * - parser (ArgumentParser): current parser 38 | * - namespace (Namespace): namespace for output data 39 | * - values (Array): parsed values 40 | * - optionString (Array): input option string(not parsed) 41 | * 42 | * Print help and exit 43 | **/ 44 | ActionHelp.prototype.call = function (parser) { 45 | parser.printHelp(); 46 | parser.exit(); 47 | }; 48 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/store.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStore 3 | * 4 | * This action just stores the argument’s value. This is the default action. 5 | * 6 | * This class inherited from [[Action]] 7 | * 8 | **/ 9 | 'use strict'; 10 | 11 | var util = require('util'); 12 | 13 | var Action = require('../action'); 14 | 15 | // Constants 16 | var c = require('../const'); 17 | 18 | 19 | /*:nodoc:* 20 | * new ActionStore(options) 21 | * - options (object): options hash see [[Action.new]] 22 | * 23 | **/ 24 | var ActionStore = module.exports = function ActionStore(options) { 25 | options = options || {}; 26 | if (this.nargs <= 0) { 27 | throw new Error('nargs for store actions must be > 0; if you ' + 28 | 'have nothing to store, actions such as store ' + 29 | 'true or store const may be more appropriate'); 30 | 31 | } 32 | if (typeof this.constant !== 'undefined' && this.nargs !== c.OPTIONAL) { 33 | throw new Error('nargs must be OPTIONAL to supply const'); 34 | } 35 | Action.call(this, options); 36 | }; 37 | util.inherits(ActionStore, Action); 38 | 39 | /*:nodoc:* 40 | * ActionStore#call(parser, namespace, values, optionString) -> Void 41 | * - parser (ArgumentParser): current parser 42 | * - namespace (Namespace): namespace for output data 43 | * - values (Array): parsed values 44 | * - optionString (Array): input option string(not parsed) 45 | * 46 | * Call the action. Save result in namespace object 47 | **/ 48 | ActionStore.prototype.call = function (parser, namespace, values) { 49 | namespace.set(this.dest, values); 50 | }; 51 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/store/constant.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStoreConstant 3 | * 4 | * This action stores the value specified by the const keyword argument. 5 | * (Note that the const keyword argument defaults to the rather unhelpful null.) 6 | * The 'store_const' action is most commonly used with optional 7 | * arguments that specify some sort of flag. 8 | * 9 | * This class inherited from [[Action]] 10 | **/ 11 | 'use strict'; 12 | 13 | var util = require('util'); 14 | 15 | var Action = require('../../action'); 16 | 17 | /*:nodoc:* 18 | * new ActionStoreConstant(options) 19 | * - options (object): options hash see [[Action.new]] 20 | * 21 | **/ 22 | var ActionStoreConstant = module.exports = function ActionStoreConstant(options) { 23 | options = options || {}; 24 | options.nargs = 0; 25 | if (typeof options.constant === 'undefined') { 26 | throw new Error('constant option is required for storeAction'); 27 | } 28 | Action.call(this, options); 29 | }; 30 | util.inherits(ActionStoreConstant, Action); 31 | 32 | /*:nodoc:* 33 | * ActionStoreConstant#call(parser, namespace, values, optionString) -> Void 34 | * - parser (ArgumentParser): current parser 35 | * - namespace (Namespace): namespace for output data 36 | * - values (Array): parsed values 37 | * - optionString (Array): input option string(not parsed) 38 | * 39 | * Call the action. Save result in namespace object 40 | **/ 41 | ActionStoreConstant.prototype.call = function (parser, namespace) { 42 | namespace.set(this.dest, this.constant); 43 | }; 44 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/store/false.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStoreFalse 3 | * 4 | * This action store the values False respectively. 5 | * This is special cases of 'storeConst' 6 | * 7 | * This class inherited from [[Action]] 8 | **/ 9 | 10 | 'use strict'; 11 | 12 | var util = require('util'); 13 | 14 | var ActionStoreConstant = require('./constant'); 15 | 16 | /*:nodoc:* 17 | * new ActionStoreFalse(options) 18 | * - options (object): hash of options see [[Action.new]] 19 | * 20 | **/ 21 | var ActionStoreFalse = module.exports = function ActionStoreFalse(options) { 22 | options = options || {}; 23 | options.constant = false; 24 | options.defaultValue = options.defaultValue !== null ? options.defaultValue : true; 25 | ActionStoreConstant.call(this, options); 26 | }; 27 | util.inherits(ActionStoreFalse, ActionStoreConstant); 28 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/store/true.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionStoreTrue 3 | * 4 | * This action store the values True respectively. 5 | * This isspecial cases of 'storeConst' 6 | * 7 | * This class inherited from [[Action]] 8 | **/ 9 | 'use strict'; 10 | 11 | var util = require('util'); 12 | 13 | var ActionStoreConstant = require('./constant'); 14 | 15 | /*:nodoc:* 16 | * new ActionStoreTrue(options) 17 | * - options (object): options hash see [[Action.new]] 18 | * 19 | **/ 20 | var ActionStoreTrue = module.exports = function ActionStoreTrue(options) { 21 | options = options || {}; 22 | options.constant = true; 23 | options.defaultValue = options.defaultValue !== null ? options.defaultValue : false; 24 | ActionStoreConstant.call(this, options); 25 | }; 26 | util.inherits(ActionStoreTrue, ActionStoreConstant); 27 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/action/version.js: -------------------------------------------------------------------------------- 1 | /*:nodoc:* 2 | * class ActionVersion 3 | * 4 | * Support action for printing program version 5 | * This class inherited from [[Action]] 6 | **/ 7 | 'use strict'; 8 | 9 | var util = require('util'); 10 | 11 | var Action = require('../action'); 12 | 13 | // 14 | // Constants 15 | // 16 | var c = require('../const'); 17 | 18 | /*:nodoc:* 19 | * new ActionVersion(options) 20 | * - options (object): options hash see [[Action.new]] 21 | * 22 | **/ 23 | var ActionVersion = module.exports = function ActionVersion(options) { 24 | options = options || {}; 25 | options.defaultValue = (options.defaultValue ? options.defaultValue : c.SUPPRESS); 26 | options.dest = (options.dest || c.SUPPRESS); 27 | options.nargs = 0; 28 | this.version = options.version; 29 | Action.call(this, options); 30 | }; 31 | util.inherits(ActionVersion, Action); 32 | 33 | /*:nodoc:* 34 | * ActionVersion#call(parser, namespace, values, optionString) -> Void 35 | * - parser (ArgumentParser): current parser 36 | * - namespace (Namespace): namespace for output data 37 | * - values (Array): parsed values 38 | * - optionString (Array): input option string(not parsed) 39 | * 40 | * Print version and exit 41 | **/ 42 | ActionVersion.prototype.call = function (parser) { 43 | var version = this.version || parser.version; 44 | var formatter = parser._getFormatter(); 45 | formatter.addText(version); 46 | parser.exit(0, formatter.formatHelp()); 47 | }; 48 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/argparse.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports.ArgumentParser = require('./argument_parser.js'); 4 | module.exports.Namespace = require('./namespace'); 5 | module.exports.Action = require('./action'); 6 | module.exports.HelpFormatter = require('./help/formatter.js'); 7 | module.exports.Const = require('./const.js'); 8 | 9 | module.exports.ArgumentDefaultsHelpFormatter = 10 | require('./help/added_formatters.js').ArgumentDefaultsHelpFormatter; 11 | module.exports.RawDescriptionHelpFormatter = 12 | require('./help/added_formatters.js').RawDescriptionHelpFormatter; 13 | module.exports.RawTextHelpFormatter = 14 | require('./help/added_formatters.js').RawTextHelpFormatter; 15 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/argument/error.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var format = require('util').format; 5 | 6 | 7 | var ERR_CODE = 'ARGError'; 8 | 9 | /*:nodoc:* 10 | * argumentError(argument, message) -> TypeError 11 | * - argument (Object): action with broken argument 12 | * - message (String): error message 13 | * 14 | * Error format helper. An error from creating or using an argument 15 | * (optional or positional). The string value of this exception 16 | * is the message, augmented with information 17 | * about the argument that caused it. 18 | * 19 | * #####Example 20 | * 21 | * var argumentErrorHelper = require('./argument/error'); 22 | * if (conflictOptionals.length > 0) { 23 | * throw argumentErrorHelper( 24 | * action, 25 | * format('Conflicting option string(s): %s', conflictOptionals.join(', ')) 26 | * ); 27 | * } 28 | * 29 | **/ 30 | module.exports = function (argument, message) { 31 | var argumentName = null; 32 | var errMessage; 33 | var err; 34 | 35 | if (argument.getName) { 36 | argumentName = argument.getName(); 37 | } else { 38 | argumentName = '' + argument; 39 | } 40 | 41 | if (!argumentName) { 42 | errMessage = message; 43 | } else { 44 | errMessage = format('argument "%s": %s', argumentName, message); 45 | } 46 | 47 | err = new TypeError(errMessage); 48 | err.code = ERR_CODE; 49 | return err; 50 | }; 51 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/const.js: -------------------------------------------------------------------------------- 1 | // 2 | // Constants 3 | // 4 | 5 | 'use strict'; 6 | 7 | module.exports.EOL = '\n'; 8 | 9 | module.exports.SUPPRESS = '==SUPPRESS=='; 10 | 11 | module.exports.OPTIONAL = '?'; 12 | 13 | module.exports.ZERO_OR_MORE = '*'; 14 | 15 | module.exports.ONE_OR_MORE = '+'; 16 | 17 | module.exports.PARSER = 'A...'; 18 | 19 | module.exports.REMAINDER = '...'; 20 | 21 | module.exports._UNRECOGNIZED_ARGS_ATTR = '_unrecognized_args'; 22 | -------------------------------------------------------------------------------- /node_modules/argparse/lib/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.repeat = function (str, num) { 4 | var result = ''; 5 | for (var i = 0; i < num; i++) { result += str; } 6 | return result; 7 | }; 8 | 9 | exports.arrayEqual = function (a, b) { 10 | if (a.length !== b.length) { return false; } 11 | for (var i = 0; i < a.length; i++) { 12 | if (a[i] !== b[i]) { return false; } 13 | } 14 | return true; 15 | }; 16 | 17 | exports.trimChars = function (str, chars) { 18 | var start = 0; 19 | var end = str.length - 1; 20 | while (chars.indexOf(str.charAt(start)) >= 0) { start++; } 21 | while (chars.indexOf(str.charAt(end)) >= 0) { end--; } 22 | return str.slice(start, end + 1); 23 | }; 24 | 25 | exports.capitalize = function (str) { 26 | return str.charAt(0).toUpperCase() + str.slice(1); 27 | }; 28 | 29 | exports.arrayUnion = function () { 30 | var result = []; 31 | for (var i = 0, values = {}; i < arguments.length; i++) { 32 | var arr = arguments[i]; 33 | for (var j = 0; j < arr.length; j++) { 34 | if (!values[arr[j]]) { 35 | values[arr[j]] = true; 36 | result.push(arr[j]); 37 | } 38 | } 39 | } 40 | return result; 41 | }; 42 | 43 | function has(obj, key) { 44 | return Object.prototype.hasOwnProperty.call(obj, key); 45 | } 46 | 47 | exports.has = has; 48 | 49 | exports.extend = function (dest, src) { 50 | for (var i in src) { 51 | if (has(src, i)) { dest[i] = src[i]; } 52 | } 53 | }; 54 | 55 | exports.trimEnd = function (str) { 56 | return str.replace(/\s+$/g, ''); 57 | }; 58 | -------------------------------------------------------------------------------- /node_modules/asciidoctor.js/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (C) 2014 Dan Allen, Guillaume Grossetie, Anthonny Quérouil and the Asciidoctor Project 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/async/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "iojs" 6 | -------------------------------------------------------------------------------- /node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2014 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/async/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "description": "Higher-order functions and common patterns for asynchronous code", 4 | "version": "0.9.2", 5 | "main": "lib/async.js", 6 | "keywords": [ 7 | "async", 8 | "callback", 9 | "utility", 10 | "module" 11 | ], 12 | "license": "MIT", 13 | "repository": { 14 | "type": "git", 15 | "url": "https://github.com/caolan/async.git" 16 | }, 17 | "devDependencies": { 18 | "nodeunit": ">0.0.0", 19 | "uglify-js": "1.2.x", 20 | "nodelint": ">0.0.0", 21 | "lodash": ">=2.4.1" 22 | }, 23 | "moduleType": [ 24 | "amd", 25 | "globals", 26 | "node" 27 | ], 28 | "ignore": [ 29 | "**/.*", 30 | "node_modules", 31 | "bower_components", 32 | "test", 33 | "tests" 34 | ], 35 | "authors": [ 36 | "Caolan McMahon" 37 | ] 38 | } -------------------------------------------------------------------------------- /node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "description": "Higher-order functions and common patterns for asynchronous code", 4 | "version": "0.9.2", 5 | "keywords": [ 6 | "async", 7 | "callback", 8 | "utility", 9 | "module" 10 | ], 11 | "license": "MIT", 12 | "repository": "caolan/async", 13 | "scripts": [ 14 | "lib/async.js" 15 | ] 16 | } -------------------------------------------------------------------------------- /node_modules/blt/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "iojs" 4 | - "0.12" 5 | - "0.11" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /node_modules/blt/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Jesse Keane 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/blt/lib/process.js: -------------------------------------------------------------------------------- 1 | module.exports = process 2 | -------------------------------------------------------------------------------- /node_modules/core-util-is/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Node.js contributors. All rights reserved. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /node_modules/esprima/LICENSE.BSD: -------------------------------------------------------------------------------- 1 | Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright 7 | notice, this list of conditions and the following disclaimer. 8 | * Redistributions in binary form must reproduce the above copyright 9 | notice, this list of conditions and the following disclaimer in the 10 | documentation and/or other materials provided with the distribution. 11 | 12 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 13 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 15 | ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY 16 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 17 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 18 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 19 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 20 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 21 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 | -------------------------------------------------------------------------------- /node_modules/findit/.npmignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .npmignore 3 | node_modules 4 | -------------------------------------------------------------------------------- /node_modules/findit/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/findit/example/emitter.js: -------------------------------------------------------------------------------- 1 | var finder = require('../')(process.argv[2] || '.'); 2 | var path = require('path'); 3 | 4 | finder.on('directory', function (dir, stat, stop) { 5 | var base = path.basename(dir); 6 | if (base === '.git' || base === 'node_modules') stop() 7 | else console.log(dir + '/') 8 | }); 9 | 10 | finder.on('file', function (file, stat) { 11 | console.log(file); 12 | }); 13 | 14 | finder.on('link', function (link, stat) { 15 | console.log(link); 16 | }); 17 | -------------------------------------------------------------------------------- /node_modules/findit/test/empty.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | var test = require('tap').test; 3 | var find = require('../'); 4 | 5 | mkdirp.sync(__dirname + '/empty'); 6 | 7 | test('empty', function (t) { 8 | t.plan(1); 9 | var w = find(__dirname + '/empty'); 10 | var files = []; 11 | w.on('file', function (file) { 12 | files.push(file); 13 | }); 14 | w.on('end', function () { 15 | t.deepEqual(files, []); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /node_modules/findit/test/err.js: -------------------------------------------------------------------------------- 1 | var find = require('../'); 2 | var test = require('tap').test; 3 | var path = require('path'); 4 | 5 | test('error', function (t) { 6 | t.plan(1); 7 | 8 | var finder = find(__dirname + '/does/not/exist'); 9 | finder.on('error', function (err) { 10 | t.equal(err.path, __dirname + '/does/not/exist'); 11 | }); 12 | }); 13 | -------------------------------------------------------------------------------- /node_modules/findit/test/foo/a/b/c/w: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/foo/a/b/c/w -------------------------------------------------------------------------------- /node_modules/findit/test/foo/a/b/z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/foo/a/b/z -------------------------------------------------------------------------------- /node_modules/findit/test/foo/a/y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/foo/a/y -------------------------------------------------------------------------------- /node_modules/findit/test/foo/x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/foo/x -------------------------------------------------------------------------------- /node_modules/findit/test/module.js: -------------------------------------------------------------------------------- 1 | var find = require('../'); 2 | var test = require('tap').test; 3 | 4 | test('single file', function (t) { 5 | t.plan(2); 6 | 7 | var finder = find(__filename); 8 | var files = []; 9 | finder.on('file', function (file) { 10 | t.equal(file, __filename); 11 | files.push(file); 12 | }); 13 | 14 | finder.on('directory', function (dir) { 15 | t.fail(dir); 16 | }); 17 | 18 | finder.on('end', function () { 19 | t.deepEqual(files, [ __filename ]); 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /node_modules/findit/test/stop.js: -------------------------------------------------------------------------------- 1 | var find = require('../'); 2 | var test = require('tap').test; 3 | var path = require('path'); 4 | 5 | test('stop', function (t) { 6 | t.plan(1); 7 | 8 | var finder = find(__dirname + '/..'); 9 | var files = []; 10 | var stopped = false; 11 | finder.on('file', function (file) { 12 | files.push(file); 13 | if (files.length === 3) { 14 | finder.stop(); 15 | stopped = true; 16 | } 17 | else if (stopped) { 18 | t.fail("files didn't stop"); 19 | } 20 | }); 21 | 22 | finder.on('directory', function (dir, stat, stop) { 23 | if (stopped) t.fail("directories didn't stop"); 24 | }); 25 | 26 | finder.on('end', function () { 27 | t.fail("shouldn't have ended"); 28 | }); 29 | 30 | finder.on('stop', function () { 31 | t.equal(files.length, 3); 32 | }); 33 | }); 34 | -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/w/c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/w/c -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/w/d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/w/d -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/x -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/y -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/z/m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/z/m -------------------------------------------------------------------------------- /node_modules/findit/test/stop/q/z/n: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/q/z/n -------------------------------------------------------------------------------- /node_modules/findit/test/stop/r/a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/r/a -------------------------------------------------------------------------------- /node_modules/findit/test/stop/r/b: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/r/b -------------------------------------------------------------------------------- /node_modules/findit/test/stop/r/c/f/h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/r/c/f/h -------------------------------------------------------------------------------- /node_modules/findit/test/stop/r/c/g/i: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/stop/r/c/g/i -------------------------------------------------------------------------------- /node_modules/findit/test/symlinks/dir1/file1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/symlinks/dir1/file1 -------------------------------------------------------------------------------- /node_modules/findit/test/symlinks/dir2/file2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/symlinks/dir2/file2 -------------------------------------------------------------------------------- /node_modules/findit/test/symlinks/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/findit/test/symlinks/file -------------------------------------------------------------------------------- /node_modules/garlic/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "iojs" 4 | - "0.12" 5 | - "0.11" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /node_modules/garlic/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Jesse Keane 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/garlic/README.md: -------------------------------------------------------------------------------- 1 | # garlic 2 | 3 | [![Build Status](http://img.shields.io/travis/jarofghosts/garlic.svg?style=flat)](https://travis-ci.org/jarofghosts/garlic) 4 | [![npm install](http://img.shields.io/npm/dm/garlic.svg?style=flat)](https://www.npmjs.org/package/garlic) 5 | 6 | Adds a little bit of magic to your [blt](http://npm.im/blt) 7 | 8 | ## example 9 | 10 | ```javascript 11 | var through = require('through2') 12 | , garlic = require('garlic') 13 | 14 | garlic(splitSentence) 15 | 16 | function splitSentence() { 17 | return through(function(words, _, next) { 18 | var self = this 19 | 20 | words.split(' ').forEach(function(word) { 21 | self.push(word) 22 | }) 23 | 24 | next() 25 | }) 26 | } 27 | ``` 28 | 29 | ## api 30 | 31 | `garlic(createStream)` 32 | 33 | * `createStream` is a function that returns a stream. This function will be 34 | called for *every tuple*, and the returned stream will be used as the sole 35 | means of processing the data from that tuple. 36 | 37 | ## notes 38 | 39 | `garlic` handles anchoring your data-processing events, allowing you to write or 40 | use regular node streams as a Bolt in an Apache Storm Topology. 41 | 42 | **This is incredibly experimental and magical and untested. Tread lightly** 43 | 44 | ## license 45 | 46 | MIT 47 | -------------------------------------------------------------------------------- /node_modules/garlic/index.js: -------------------------------------------------------------------------------- 1 | var through = require('through2') 2 | , blt = require('blt') 3 | 4 | module.exports = garlic 5 | 6 | function garlic(createStream) { 7 | var bltStream = blt(setup) 8 | 9 | return bltStream 10 | 11 | function setup() { 12 | var garlicStream = through.obj(factory) 13 | 14 | return garlicStream 15 | 16 | function factory(tuple, _, next) { 17 | var stream = createStream(tuple) 18 | 19 | stream.on('data', onData) 20 | stream.on('error', onError) 21 | stream.on('end', onEnd) 22 | stream.on('log', onLog) 23 | 24 | stream.write(tuple.tuple[tuple.tuple.length - 1]) 25 | stream.end() 26 | 27 | next() 28 | 29 | function cleanup() { 30 | stream.removeListener('data', onData) 31 | stream.removeListener('error', onError) 32 | stream.removeListener('end', onEnd) 33 | stream.removeListener('log', onLog) 34 | } 35 | 36 | function onData(data) { 37 | garlicStream.push([data, tuple]) 38 | } 39 | 40 | function onError() { 41 | garlicStream.emit('fail', tuple) 42 | cleanup() 43 | 44 | if(stream.destroy) { 45 | stream.destroy() 46 | } 47 | } 48 | 49 | function onEnd() { 50 | garlicStream.emit('ack', tuple) 51 | cleanup() 52 | } 53 | 54 | function onLog(message) { 55 | garlicStream.emit('log', message) 56 | } 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/README.md: -------------------------------------------------------------------------------- 1 | # graceful-fs 2 | 3 | graceful-fs functions as a drop-in replacement for the fs module, 4 | making various improvements. 5 | 6 | The improvements are meant to normalize behavior across different 7 | platforms and environments, and to make filesystem access more 8 | resilient to errors. 9 | 10 | ## Improvements over [fs module](http://api.nodejs.org/fs.html) 11 | 12 | graceful-fs: 13 | 14 | * Queues up `open` and `readdir` calls, and retries them once 15 | something closes if there is an EMFILE error from too many file 16 | descriptors. 17 | * fixes `lchmod` for Node versions prior to 0.6.2. 18 | * implements `fs.lutimes` if possible. Otherwise it becomes a noop. 19 | * ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or 20 | `lchown` if the user isn't root. 21 | * makes `lchmod` and `lchown` become noops, if not available. 22 | * retries reading a file if `read` results in EAGAIN error. 23 | 24 | On Windows, it retries renaming a file for up to one second if `EACCESS` 25 | or `EPERM` error occurs, likely because antivirus software has locked 26 | the directory. 27 | 28 | ## USAGE 29 | 30 | ```javascript 31 | // use just like fs 32 | var fs = require('graceful-fs') 33 | 34 | // now go and do stuff with it... 35 | fs.readFileSync('some-file-or-whatever') 36 | ``` 37 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/fs.js: -------------------------------------------------------------------------------- 1 | // eeeeeevvvvviiiiiiillllll 2 | // more evil than monkey-patching the native builtin? 3 | // Not sure. 4 | 5 | var mod = require("module") 6 | var pre = '(function (exports, require, module, __filename, __dirname) { ' 7 | var post = '});' 8 | var src = pre + process.binding('natives').fs + post 9 | var vm = require('vm') 10 | var fn = vm.runInThisContext(src) 11 | fn(exports, require, module, __filename, __dirname) 12 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/test/open.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var fs = require('../graceful-fs.js') 3 | 4 | test('graceful fs is monkeypatched fs', function (t) { 5 | t.equal(fs, require('../fs.js')) 6 | t.end() 7 | }) 8 | 9 | test('open an existing file works', function (t) { 10 | var fd = fs.openSync(__filename, 'r') 11 | fs.closeSync(fd) 12 | fs.open(__filename, 'r', function (er, fd) { 13 | if (er) throw er 14 | fs.close(fd, function (er) { 15 | if (er) throw er 16 | t.pass('works') 17 | t.end() 18 | }) 19 | }) 20 | }) 21 | 22 | test('open a non-existing file throws', function (t) { 23 | var er 24 | try { 25 | var fd = fs.openSync('this file does not exist', 'r') 26 | } catch (x) { 27 | er = x 28 | } 29 | t.ok(er, 'should throw') 30 | t.notOk(fd, 'should not get an fd') 31 | t.equal(er.code, 'ENOENT') 32 | 33 | fs.open('neither does this file', 'r', function (er, fd) { 34 | t.ok(er, 'should throw') 35 | t.notOk(fd, 'should not get an fd') 36 | t.equal(er.code, 'ENOENT') 37 | t.end() 38 | }) 39 | }) 40 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/test/readdir-sort.js: -------------------------------------------------------------------------------- 1 | var test = require("tap").test 2 | var fs = require("../fs.js") 3 | 4 | var readdir = fs.readdir 5 | fs.readdir = function(path, cb) { 6 | process.nextTick(function() { 7 | cb(null, ["b", "z", "a"]) 8 | }) 9 | } 10 | 11 | var g = require("../") 12 | 13 | test("readdir reorder", function (t) { 14 | g.readdir("whatevers", function (er, files) { 15 | if (er) 16 | throw er 17 | t.same(files, [ "a", "b", "z" ]) 18 | t.end() 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /node_modules/graceful-fs/test/write-then-read.js: -------------------------------------------------------------------------------- 1 | var fs = require('../'); 2 | var rimraf = require('rimraf'); 3 | var mkdirp = require('mkdirp'); 4 | var test = require('tap').test; 5 | var p = require('path').resolve(__dirname, 'files'); 6 | 7 | process.chdir(__dirname) 8 | 9 | // Make sure to reserve the stderr fd 10 | process.stderr.write(''); 11 | 12 | var num = 4097; 13 | var paths = new Array(num); 14 | 15 | test('make files', function (t) { 16 | rimraf.sync(p); 17 | mkdirp.sync(p); 18 | 19 | for (var i = 0; i < num; ++i) { 20 | paths[i] = 'files/file-' + i; 21 | fs.writeFileSync(paths[i], 'content'); 22 | } 23 | 24 | t.end(); 25 | }) 26 | 27 | test('read files', function (t) { 28 | // now read them 29 | var done = 0; 30 | for (var i = 0; i < num; ++i) { 31 | fs.readFile(paths[i], function(err, data) { 32 | if (err) 33 | throw err; 34 | 35 | ++done; 36 | if (done === num) { 37 | t.pass('success'); 38 | t.end() 39 | } 40 | }); 41 | } 42 | }); 43 | 44 | test('cleanup', function (t) { 45 | rimraf.sync(p); 46 | t.end(); 47 | }); 48 | -------------------------------------------------------------------------------- /node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | ctor.super_ = superCtor 5 | ctor.prototype = Object.create(superCtor.prototype, { 6 | constructor: { 7 | value: ctor, 8 | enumerable: false, 9 | writable: true, 10 | configurable: true 11 | } 12 | }); 13 | }; 14 | } else { 15 | // old school shim for old browsers 16 | module.exports = function inherits(ctor, superCtor) { 17 | ctor.super_ = superCtor 18 | var TempCtor = function () {} 19 | TempCtor.prototype = superCtor.prototype 20 | ctor.prototype = new TempCtor() 21 | ctor.prototype.constructor = ctor 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "main": "dist/jquery.js", 4 | "license": "MIT", 5 | "ignore": [ 6 | "package.json" 7 | ], 8 | "keywords": [ 9 | "jquery", 10 | "javascript", 11 | "browser", 12 | "library" 13 | ] 14 | } -------------------------------------------------------------------------------- /node_modules/jquery/src/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | // Support: IE <=9 only, Android <=4.0 only 3 | // The above browsers are failing a lot of tests in the ES5 4 | // test suite at http://test262.ecmascript.org. 5 | "parserOptions": { 6 | "ecmaVersion": 3 7 | }, 8 | "globals": { 9 | "window": true, 10 | "jQuery": true, 11 | "define": true, 12 | "module": true, 13 | "noGlobal": true 14 | }, 15 | "rules": { 16 | "strict": ["error", "function"] 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | // Cross-browser xml parsing 8 | jQuery.parseXML = function( data ) { 9 | var xml; 10 | if ( !data || typeof data !== "string" ) { 11 | return null; 12 | } 13 | 14 | // Support: IE 9 - 11 only 15 | // IE throws on parseFromString with invalid input. 16 | try { 17 | xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); 18 | } catch ( e ) { 19 | xml = undefined; 20 | } 21 | 22 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 23 | jQuery.error( "Invalid XML: " + data ); 24 | } 25 | return xml; 26 | }; 27 | 28 | return jQuery.parseXML; 29 | 30 | } ); 31 | -------------------------------------------------------------------------------- /node_modules/jquery/src/ajax/var/location.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return window.location; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/ajax/var/nonce.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../../core" 3 | ], function( jQuery ) { 4 | "use strict"; 5 | 6 | return jQuery.now(); 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/ajax/var/rquery.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /\?/ ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/attributes.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./core", 3 | "./attributes/attr", 4 | "./attributes/prop", 5 | "./attributes/classes", 6 | "./attributes/val" 7 | ], function( jQuery ) { 8 | 9 | "use strict"; 10 | 11 | // Return jQuery for attributes-only inclusion 12 | return jQuery; 13 | } ); 14 | -------------------------------------------------------------------------------- /node_modules/jquery/src/attributes/support.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/document", 3 | "../var/support" 4 | ], function( document, support ) { 5 | 6 | "use strict"; 7 | 8 | ( function() { 9 | var input = document.createElement( "input" ), 10 | select = document.createElement( "select" ), 11 | opt = select.appendChild( document.createElement( "option" ) ); 12 | 13 | input.type = "checkbox"; 14 | 15 | // Support: Android <=4.3 only 16 | // Default value for a checkbox should be "on" 17 | support.checkOn = input.value !== ""; 18 | 19 | // Support: IE <=11 only 20 | // Must access selectedIndex to make default options select 21 | support.optSelected = opt.selected; 22 | 23 | // Support: IE <=11 only 24 | // An input loses its value after becoming a radio 25 | input = document.createElement( "input" ); 26 | input.value = "t"; 27 | input.type = "radio"; 28 | support.radioValue = input.value === "t"; 29 | } )(); 30 | 31 | return support; 32 | 33 | } ); 34 | -------------------------------------------------------------------------------- /node_modules/jquery/src/core/DOMEval.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/document" 3 | ], function( document ) { 4 | "use strict"; 5 | 6 | function DOMEval( code, doc ) { 7 | doc = doc || document; 8 | 9 | var script = doc.createElement( "script" ); 10 | 11 | script.text = code; 12 | doc.head.appendChild( script ).parentNode.removeChild( script ); 13 | } 14 | 15 | return DOMEval; 16 | } ); 17 | -------------------------------------------------------------------------------- /node_modules/jquery/src/core/access.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | // Multifunctional method to get and set values of a collection 8 | // The value/s can optionally be executed if it's a function 9 | var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { 10 | var i = 0, 11 | len = elems.length, 12 | bulk = key == null; 13 | 14 | // Sets many values 15 | if ( jQuery.type( key ) === "object" ) { 16 | chainable = true; 17 | for ( i in key ) { 18 | access( elems, fn, i, key[ i ], true, emptyGet, raw ); 19 | } 20 | 21 | // Sets one value 22 | } else if ( value !== undefined ) { 23 | chainable = true; 24 | 25 | if ( !jQuery.isFunction( value ) ) { 26 | raw = true; 27 | } 28 | 29 | if ( bulk ) { 30 | 31 | // Bulk operations run against the entire set 32 | if ( raw ) { 33 | fn.call( elems, value ); 34 | fn = null; 35 | 36 | // ...except when executing function values 37 | } else { 38 | bulk = fn; 39 | fn = function( elem, key, value ) { 40 | return bulk.call( jQuery( elem ), value ); 41 | }; 42 | } 43 | } 44 | 45 | if ( fn ) { 46 | for ( ; i < len; i++ ) { 47 | fn( 48 | elems[ i ], key, raw ? 49 | value : 50 | value.call( elems[ i ], i, fn( elems[ i ], key ) ) 51 | ); 52 | } 53 | } 54 | } 55 | 56 | return chainable ? 57 | elems : 58 | 59 | // Gets 60 | bulk ? 61 | fn.call( elems ) : 62 | len ? fn( elems[ 0 ], key ) : emptyGet; 63 | }; 64 | 65 | return access; 66 | 67 | } ); 68 | -------------------------------------------------------------------------------- /node_modules/jquery/src/core/readyException.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | jQuery.readyException = function( error ) { 8 | window.setTimeout( function() { 9 | throw error; 10 | } ); 11 | }; 12 | 13 | } ); 14 | -------------------------------------------------------------------------------- /node_modules/jquery/src/core/support.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/document", 3 | "../var/support" 4 | ], function( document, support ) { 5 | 6 | "use strict"; 7 | 8 | // Support: Safari 8 only 9 | // In Safari 8 documents created via document.implementation.createHTMLDocument 10 | // collapse sibling forms: the second one becomes a child of the first one. 11 | // Because of that, this security measure has to be disabled in Safari 8. 12 | // https://bugs.webkit.org/show_bug.cgi?id=137337 13 | support.createHTMLDocument = ( function() { 14 | var body = document.implementation.createHTMLDocument( "" ).body; 15 | body.innerHTML = "
"; 16 | return body.childNodes.length === 2; 17 | } )(); 18 | 19 | return support; 20 | } ); 21 | -------------------------------------------------------------------------------- /node_modules/jquery/src/core/var/rsingleTag.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | // Match a standalone tag 5 | return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); 6 | } ); 7 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/addGetHookIf.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | 3 | "use strict"; 4 | 5 | function addGetHookIf( conditionFn, hookFn ) { 6 | 7 | // Define the hook, we'll check on the first run if it's really needed. 8 | return { 9 | get: function() { 10 | if ( conditionFn() ) { 11 | 12 | // Hook not needed (or it's not possible to use it due 13 | // to missing dependency), remove it. 14 | delete this.get; 15 | return; 16 | } 17 | 18 | // Hook needed; redefine it so that the support test is not executed again. 19 | return ( this.get = hookFn ).apply( this, arguments ); 20 | } 21 | }; 22 | } 23 | 24 | return addGetHookIf; 25 | 26 | } ); 27 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/hiddenVisibleSelectors.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | "../selector" 4 | ], function( jQuery ) { 5 | 6 | "use strict"; 7 | 8 | jQuery.expr.pseudos.hidden = function( elem ) { 9 | return !jQuery.expr.pseudos.visible( elem ); 10 | }; 11 | jQuery.expr.pseudos.visible = function( elem ) { 12 | return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); 13 | }; 14 | 15 | } ); 16 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/cssExpand.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return [ "Top", "Right", "Bottom", "Left" ]; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/getStyles.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return function( elem ) { 5 | 6 | // Support: IE <=11 only, Firefox <=30 (#15098, #14150) 7 | // IE throws on elements created in popups 8 | // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" 9 | var view = elem.ownerDocument.defaultView; 10 | 11 | if ( !view || !view.opener ) { 12 | view = window; 13 | } 14 | 15 | return view.getComputedStyle( elem ); 16 | }; 17 | } ); 18 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/isHiddenWithinTree.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../../core", 3 | "../../selector" 4 | 5 | // css is assumed 6 | ], function( jQuery ) { 7 | "use strict"; 8 | 9 | // isHiddenWithinTree reports if an element has a non-"none" display style (inline and/or 10 | // through the CSS cascade), which is useful in deciding whether or not to make it visible. 11 | // It differs from the :hidden selector (jQuery.expr.pseudos.hidden) in two important ways: 12 | // * A hidden ancestor does not force an element to be classified as hidden. 13 | // * Being disconnected from the document does not force an element to be classified as hidden. 14 | // These differences improve the behavior of .toggle() et al. when applied to elements that are 15 | // detached or contained within hidden ancestors (gh-2404, gh-2863). 16 | return function( elem, el ) { 17 | 18 | // isHiddenWithinTree might be called from jQuery#filter function; 19 | // in that case, element will be second argument 20 | elem = el || elem; 21 | 22 | // Inline style trumps all 23 | return elem.style.display === "none" || 24 | elem.style.display === "" && 25 | 26 | // Otherwise, check computed style 27 | // Support: Firefox <=43 - 45 28 | // Disconnected elements can have computed display: none, so first confirm that elem is 29 | // in the document. 30 | jQuery.contains( elem.ownerDocument, elem ) && 31 | 32 | jQuery.css( elem, "display" ) === "none"; 33 | }; 34 | } ); 35 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/rmargin.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /^margin/ ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/rnumnonpx.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../../var/pnum" 3 | ], function( pnum ) { 4 | "use strict"; 5 | 6 | return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/css/var/swap.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | 3 | "use strict"; 4 | 5 | // A method for quickly swapping in/out CSS properties to get correct calculations. 6 | return function( elem, options, callback, args ) { 7 | var ret, name, 8 | old = {}; 9 | 10 | // Remember the old values, and insert the new ones 11 | for ( name in options ) { 12 | old[ name ] = elem.style[ name ]; 13 | elem.style[ name ] = options[ name ]; 14 | } 15 | 16 | ret = callback.apply( elem, args || [] ); 17 | 18 | // Revert the old values 19 | for ( name in options ) { 20 | elem.style[ name ] = old[ name ]; 21 | } 22 | 23 | return ret; 24 | }; 25 | 26 | } ); 27 | -------------------------------------------------------------------------------- /node_modules/jquery/src/data/var/acceptData.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | 3 | "use strict"; 4 | 5 | /** 6 | * Determines whether an object can have data 7 | */ 8 | return function( owner ) { 9 | 10 | // Accepts only: 11 | // - Node 12 | // - Node.ELEMENT_NODE 13 | // - Node.DOCUMENT_NODE 14 | // - Object 15 | // - Any 16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); 17 | }; 18 | 19 | } ); 20 | -------------------------------------------------------------------------------- /node_modules/jquery/src/data/var/dataPriv.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../Data" 3 | ], function( Data ) { 4 | "use strict"; 5 | 6 | return new Data(); 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/data/var/dataUser.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../Data" 3 | ], function( Data ) { 4 | "use strict"; 5 | 6 | return new Data(); 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/deferred/exceptionHook.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | "../deferred" 4 | ], function( jQuery ) { 5 | 6 | "use strict"; 7 | 8 | // These usually indicate a programmer mistake during development, 9 | // warn about them ASAP rather than swallowing them by default. 10 | var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 11 | 12 | jQuery.Deferred.exceptionHook = function( error, stack ) { 13 | 14 | // Support: IE 8 - 9 only 15 | // Console exists when dev tools are open, which can happen at any time 16 | if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { 17 | window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); 18 | } 19 | }; 20 | 21 | } ); 22 | -------------------------------------------------------------------------------- /node_modules/jquery/src/deprecated.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | jQuery.fn.extend( { 8 | 9 | bind: function( types, data, fn ) { 10 | return this.on( types, null, data, fn ); 11 | }, 12 | unbind: function( types, fn ) { 13 | return this.off( types, null, fn ); 14 | }, 15 | 16 | delegate: function( selector, types, data, fn ) { 17 | return this.on( types, selector, data, fn ); 18 | }, 19 | undelegate: function( selector, types, fn ) { 20 | 21 | // ( namespace ) or ( selector, types [, fn] ) 22 | return arguments.length === 1 ? 23 | this.off( selector, "**" ) : 24 | this.off( types, selector || "**", fn ); 25 | } 26 | } ); 27 | 28 | jQuery.parseJSON = JSON.parse; 29 | 30 | } ); 31 | -------------------------------------------------------------------------------- /node_modules/jquery/src/effects/animatedSelector.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | "../selector", 4 | "../effects" 5 | ], function( jQuery ) { 6 | 7 | "use strict"; 8 | 9 | jQuery.expr.pseudos.animated = function( elem ) { 10 | return jQuery.grep( jQuery.timers, function( fn ) { 11 | return elem === fn.elem; 12 | } ).length; 13 | }; 14 | 15 | } ); 16 | -------------------------------------------------------------------------------- /node_modules/jquery/src/event/ajax.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | "use strict"; 7 | 8 | // Attach a bunch of functions for handling common AJAX events 9 | jQuery.each( [ 10 | "ajaxStart", 11 | "ajaxStop", 12 | "ajaxComplete", 13 | "ajaxError", 14 | "ajaxSuccess", 15 | "ajaxSend" 16 | ], function( i, type ) { 17 | jQuery.fn[ type ] = function( fn ) { 18 | return this.on( type, fn ); 19 | }; 20 | } ); 21 | 22 | } ); 23 | -------------------------------------------------------------------------------- /node_modules/jquery/src/event/alias.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | 4 | "../event", 5 | "./trigger" 6 | ], function( jQuery ) { 7 | 8 | "use strict"; 9 | 10 | jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + 11 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + 12 | "change select submit keydown keypress keyup contextmenu" ).split( " " ), 13 | function( i, name ) { 14 | 15 | // Handle event binding 16 | jQuery.fn[ name ] = function( data, fn ) { 17 | return arguments.length > 0 ? 18 | this.on( name, null, data, fn ) : 19 | this.trigger( name ); 20 | }; 21 | } ); 22 | 23 | jQuery.fn.extend( { 24 | hover: function( fnOver, fnOut ) { 25 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); 26 | } 27 | } ); 28 | 29 | } ); 30 | -------------------------------------------------------------------------------- /node_modules/jquery/src/event/support.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | "use strict"; 6 | 7 | support.focusin = "onfocusin" in window; 8 | 9 | return support; 10 | 11 | } ); 12 | -------------------------------------------------------------------------------- /node_modules/jquery/src/exports/amd.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | // Register as a named AMD module, since jQuery can be concatenated with other 8 | // files that may use define, but not via a proper concatenation script that 9 | // understands anonymous AMD modules. A named AMD is safest and most robust 10 | // way to register. Lowercase jquery is used because AMD module names are 11 | // derived from file names, and jQuery is normally delivered in a lowercase 12 | // file name. Do this after creating the global so that if an AMD module wants 13 | // to call noConflict to hide this version of jQuery, it will work. 14 | 15 | // Note that for maximum portability, libraries that are not jQuery should 16 | // declare themselves as anonymous modules, and avoid setting a global if an 17 | // AMD loader is present. jQuery is a special case. For more information, see 18 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 19 | 20 | if ( typeof define === "function" && define.amd ) { 21 | define( "jquery", [], function() { 22 | return jQuery; 23 | } ); 24 | } 25 | 26 | } ); 27 | -------------------------------------------------------------------------------- /node_modules/jquery/src/exports/global.js: -------------------------------------------------------------------------------- 1 | /* ExcludeStart */ 2 | 3 | // This file is included in a different way from all the others 4 | // so the "use strict" pragma is not needed. 5 | /* eslint strict: "off" */ 6 | 7 | /* ExcludeEnd */ 8 | 9 | var 10 | 11 | // Map over jQuery in case of overwrite 12 | _jQuery = window.jQuery, 13 | 14 | // Map over the $ in case of overwrite 15 | _$ = window.$; 16 | 17 | jQuery.noConflict = function( deep ) { 18 | if ( window.$ === jQuery ) { 19 | window.$ = _$; 20 | } 21 | 22 | if ( deep && window.jQuery === jQuery ) { 23 | window.jQuery = _jQuery; 24 | } 25 | 26 | return jQuery; 27 | }; 28 | 29 | // Expose jQuery and $ identifiers, even in AMD 30 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) 31 | // and CommonJS for browser emulators (#13566) 32 | if ( !noGlobal ) { 33 | window.jQuery = window.$ = jQuery; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/jquery/src/jquery.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./core", 3 | "./selector", 4 | "./traversing", 5 | "./callbacks", 6 | "./deferred", 7 | "./deferred/exceptionHook", 8 | "./core/ready", 9 | "./data", 10 | "./queue", 11 | "./queue/delay", 12 | "./attributes", 13 | "./event", 14 | "./event/alias", 15 | "./event/focusin", 16 | "./manipulation", 17 | "./manipulation/_evalUrl", 18 | "./wrap", 19 | "./css", 20 | "./css/hiddenVisibleSelectors", 21 | "./serialize", 22 | "./ajax", 23 | "./ajax/xhr", 24 | "./ajax/script", 25 | "./ajax/jsonp", 26 | "./ajax/load", 27 | "./event/ajax", 28 | "./effects", 29 | "./effects/animatedSelector", 30 | "./offset", 31 | "./dimensions", 32 | "./deprecated", 33 | "./exports/amd" 34 | ], function( jQuery ) { 35 | 36 | "use strict"; 37 | 38 | return ( window.jQuery = window.$ = jQuery ); 39 | 40 | } ); 41 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/_evalUrl.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../ajax" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | jQuery._evalUrl = function( url ) { 8 | return jQuery.ajax( { 9 | url: url, 10 | 11 | // Make this explicit, since user can override this through ajaxSetup (#11264) 12 | type: "GET", 13 | dataType: "script", 14 | cache: true, 15 | async: false, 16 | global: false, 17 | "throws": true 18 | } ); 19 | }; 20 | 21 | return jQuery._evalUrl; 22 | 23 | } ); 24 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/getAll.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | function getAll( context, tag ) { 8 | 9 | // Support: IE <=9 - 11 only 10 | // Use typeof to avoid zero-argument method invocation on host objects (#15151) 11 | var ret = typeof context.getElementsByTagName !== "undefined" ? 12 | context.getElementsByTagName( tag || "*" ) : 13 | typeof context.querySelectorAll !== "undefined" ? 14 | context.querySelectorAll( tag || "*" ) : 15 | []; 16 | 17 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ? 18 | jQuery.merge( [ context ], ret ) : 19 | ret; 20 | } 21 | 22 | return getAll; 23 | } ); 24 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/setGlobalEval.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../data/var/dataPriv" 3 | ], function( dataPriv ) { 4 | 5 | "use strict"; 6 | 7 | // Mark scripts as having already been evaluated 8 | function setGlobalEval( elems, refElements ) { 9 | var i = 0, 10 | l = elems.length; 11 | 12 | for ( ; i < l; i++ ) { 13 | dataPriv.set( 14 | elems[ i ], 15 | "globalEval", 16 | !refElements || dataPriv.get( refElements[ i ], "globalEval" ) 17 | ); 18 | } 19 | } 20 | 21 | return setGlobalEval; 22 | } ); 23 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/support.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/document", 3 | "../var/support" 4 | ], function( document, support ) { 5 | 6 | "use strict"; 7 | 8 | ( function() { 9 | var fragment = document.createDocumentFragment(), 10 | div = fragment.appendChild( document.createElement( "div" ) ), 11 | input = document.createElement( "input" ); 12 | 13 | // Support: Android 4.0 - 4.3 only 14 | // Check state lost if the name is set (#11217) 15 | // Support: Windows Web Apps (WWA) 16 | // `name` and `type` must use .setAttribute for WWA (#14901) 17 | input.setAttribute( "type", "radio" ); 18 | input.setAttribute( "checked", "checked" ); 19 | input.setAttribute( "name", "t" ); 20 | 21 | div.appendChild( input ); 22 | 23 | // Support: Android <=4.1 only 24 | // Older WebKit doesn't clone checked state correctly in fragments 25 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 26 | 27 | // Support: IE <=11 only 28 | // Make sure textarea (and checkbox) defaultValue is properly cloned 29 | div.innerHTML = ""; 30 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; 31 | } )(); 32 | 33 | return support; 34 | 35 | } ); 36 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/var/rcheckableType.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /^(?:checkbox|radio)$/i ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/var/rscriptType.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /^$|\/(?:java|ecma)script/i ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/var/rtagName.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/manipulation/wrapMap.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | 3 | "use strict"; 4 | 5 | // We have to close these tags to support XHTML (#13200) 6 | var wrapMap = { 7 | 8 | // Support: IE <=9 only 9 | option: [ 1, "" ], 10 | 11 | // XHTML parsers do not magically insert elements in the 12 | // same way that tag soup parsers do. So we cannot shorten 13 | // this by omitting or other required elements. 14 | thead: [ 1, "", "
" ], 15 | col: [ 2, "", "
" ], 16 | tr: [ 2, "", "
" ], 17 | td: [ 3, "", "
" ], 18 | 19 | _default: [ 0, "", "" ] 20 | }; 21 | 22 | // Support: IE <=9 only 23 | wrapMap.optgroup = wrapMap.option; 24 | 25 | wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; 26 | wrapMap.th = wrapMap.td; 27 | 28 | return wrapMap; 29 | } ); 30 | -------------------------------------------------------------------------------- /node_modules/jquery/src/queue/delay.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../core", 3 | "../queue", 4 | "../effects" // Delay is optional because of this dependency 5 | ], function( jQuery ) { 6 | 7 | "use strict"; 8 | 9 | // Based off of the plugin by Clint Helfers, with permission. 10 | // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ 11 | jQuery.fn.delay = function( time, type ) { 12 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; 13 | type = type || "fx"; 14 | 15 | return this.queue( type, function( next, hooks ) { 16 | var timeout = window.setTimeout( next, time ); 17 | hooks.stop = function() { 18 | window.clearTimeout( timeout ); 19 | }; 20 | } ); 21 | }; 22 | 23 | return jQuery.fn.delay; 24 | } ); 25 | -------------------------------------------------------------------------------- /node_modules/jquery/src/selector-sizzle.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./core", 3 | "../external/sizzle/dist/sizzle" 4 | ], function( jQuery, Sizzle ) { 5 | 6 | "use strict"; 7 | 8 | jQuery.find = Sizzle; 9 | jQuery.expr = Sizzle.selectors; 10 | 11 | // Deprecated 12 | jQuery.expr[ ":" ] = jQuery.expr.pseudos; 13 | jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; 14 | jQuery.text = Sizzle.getText; 15 | jQuery.isXMLDoc = Sizzle.isXML; 16 | jQuery.contains = Sizzle.contains; 17 | jQuery.escapeSelector = Sizzle.escape; 18 | 19 | } ); 20 | -------------------------------------------------------------------------------- /node_modules/jquery/src/selector.js: -------------------------------------------------------------------------------- 1 | define( [ "./selector-sizzle" ], function() { 2 | "use strict"; 3 | } ); 4 | -------------------------------------------------------------------------------- /node_modules/jquery/src/traversing/var/dir.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../../core" 3 | ], function( jQuery ) { 4 | 5 | "use strict"; 6 | 7 | return function( elem, dir, until ) { 8 | var matched = [], 9 | truncate = until !== undefined; 10 | 11 | while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { 12 | if ( elem.nodeType === 1 ) { 13 | if ( truncate && jQuery( elem ).is( until ) ) { 14 | break; 15 | } 16 | matched.push( elem ); 17 | } 18 | } 19 | return matched; 20 | }; 21 | 22 | } ); 23 | -------------------------------------------------------------------------------- /node_modules/jquery/src/traversing/var/rneedsContext.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../../core", 3 | "../../selector" 4 | ], function( jQuery ) { 5 | "use strict"; 6 | 7 | return jQuery.expr.match.needsContext; 8 | } ); 9 | -------------------------------------------------------------------------------- /node_modules/jquery/src/traversing/var/siblings.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | 3 | "use strict"; 4 | 5 | return function( n, elem ) { 6 | var matched = []; 7 | 8 | for ( ; n; n = n.nextSibling ) { 9 | if ( n.nodeType === 1 && n !== elem ) { 10 | matched.push( n ); 11 | } 12 | } 13 | 14 | return matched; 15 | }; 16 | 17 | } ); 18 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/ObjectFunctionString.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./fnToString" 3 | ], function( fnToString ) { 4 | "use strict"; 5 | 6 | return fnToString.call( Object ); 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/arr.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return []; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/class2type.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | // [[Class]] -> type pairs 5 | return {}; 6 | } ); 7 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/concat.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./arr" 3 | ], function( arr ) { 4 | "use strict"; 5 | 6 | return arr.concat; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/document.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return window.document; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/documentElement.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./document" 3 | ], function( document ) { 4 | "use strict"; 5 | 6 | return document.documentElement; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/fnToString.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./hasOwn" 3 | ], function( hasOwn ) { 4 | "use strict"; 5 | 6 | return hasOwn.toString; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/getProto.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return Object.getPrototypeOf; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/hasOwn.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./class2type" 3 | ], function( class2type ) { 4 | "use strict"; 5 | 6 | return class2type.hasOwnProperty; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/indexOf.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./arr" 3 | ], function( arr ) { 4 | "use strict"; 5 | 6 | return arr.indexOf; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/pnum.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/push.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./arr" 3 | ], function( arr ) { 4 | "use strict"; 5 | 6 | return arr.push; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/rcssNum.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "../var/pnum" 3 | ], function( pnum ) { 4 | 5 | "use strict"; 6 | 7 | return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); 8 | 9 | } ); 10 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/rnotwhite.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | return ( /\S+/g ); 5 | } ); 6 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/slice.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./arr" 3 | ], function( arr ) { 4 | "use strict"; 5 | 6 | return arr.slice; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/support.js: -------------------------------------------------------------------------------- 1 | define( function() { 2 | "use strict"; 3 | 4 | // All support tests are defined in their respective modules. 5 | return {}; 6 | } ); 7 | -------------------------------------------------------------------------------- /node_modules/jquery/src/var/toString.js: -------------------------------------------------------------------------------- 1 | define( [ 2 | "./class2type" 3 | ], function( class2type ) { 4 | "use strict"; 5 | 6 | return class2type.toString; 7 | } ); 8 | -------------------------------------------------------------------------------- /node_modules/js-yaml/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (C) 2011-2015 by Vitaly Puzrin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/js-yaml/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | var yaml = require('./lib/js-yaml.js'); 5 | 6 | 7 | module.exports = yaml; 8 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/common.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | 4 | function isNothing(subject) { 5 | return (typeof subject === 'undefined') || (subject === null); 6 | } 7 | 8 | 9 | function isObject(subject) { 10 | return (typeof subject === 'object') && (subject !== null); 11 | } 12 | 13 | 14 | function toArray(sequence) { 15 | if (Array.isArray(sequence)) return sequence; 16 | else if (isNothing(sequence)) return []; 17 | 18 | return [ sequence ]; 19 | } 20 | 21 | 22 | function extend(target, source) { 23 | var index, length, key, sourceKeys; 24 | 25 | if (source) { 26 | sourceKeys = Object.keys(source); 27 | 28 | for (index = 0, length = sourceKeys.length; index < length; index += 1) { 29 | key = sourceKeys[index]; 30 | target[key] = source[key]; 31 | } 32 | } 33 | 34 | return target; 35 | } 36 | 37 | 38 | function repeat(string, count) { 39 | var result = '', cycle; 40 | 41 | for (cycle = 0; cycle < count; cycle += 1) { 42 | result += string; 43 | } 44 | 45 | return result; 46 | } 47 | 48 | 49 | function isNegativeZero(number) { 50 | return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number); 51 | } 52 | 53 | 54 | module.exports.isNothing = isNothing; 55 | module.exports.isObject = isObject; 56 | module.exports.toArray = toArray; 57 | module.exports.repeat = repeat; 58 | module.exports.isNegativeZero = isNegativeZero; 59 | module.exports.extend = extend; 60 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/exception.js: -------------------------------------------------------------------------------- 1 | // YAML error class. http://stackoverflow.com/questions/8458984 2 | // 3 | 'use strict'; 4 | 5 | function YAMLException(reason, mark) { 6 | // Super constructor 7 | Error.call(this); 8 | 9 | // Include stack trace in error object 10 | if (Error.captureStackTrace) { 11 | // Chrome and NodeJS 12 | Error.captureStackTrace(this, this.constructor); 13 | } else { 14 | // FF, IE 10+ and Safari 6+. Fallback for others 15 | this.stack = (new Error()).stack || ''; 16 | } 17 | 18 | this.name = 'YAMLException'; 19 | this.reason = reason; 20 | this.mark = mark; 21 | this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : ''); 22 | } 23 | 24 | 25 | // Inherit from Error 26 | YAMLException.prototype = Object.create(Error.prototype); 27 | YAMLException.prototype.constructor = YAMLException; 28 | 29 | 30 | YAMLException.prototype.toString = function toString(compact) { 31 | var result = this.name + ': '; 32 | 33 | result += this.reason || '(unknown reason)'; 34 | 35 | if (!compact && this.mark) { 36 | result += ' ' + this.mark.toString(); 37 | } 38 | 39 | return result; 40 | }; 41 | 42 | 43 | module.exports = YAMLException; 44 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/schema/core.js: -------------------------------------------------------------------------------- 1 | // Standard YAML's Core schema. 2 | // http://www.yaml.org/spec/1.2/spec.html#id2804923 3 | // 4 | // NOTE: JS-YAML does not support schema-specific tag resolution restrictions. 5 | // So, Core schema has no distinctions from JSON schema is JS-YAML. 6 | 7 | 8 | 'use strict'; 9 | 10 | 11 | var Schema = require('../schema'); 12 | 13 | 14 | module.exports = new Schema({ 15 | include: [ 16 | require('./json') 17 | ] 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/schema/default_full.js: -------------------------------------------------------------------------------- 1 | // JS-YAML's default schema for `load` function. 2 | // It is not described in the YAML specification. 3 | // 4 | // This schema is based on JS-YAML's default safe schema and includes 5 | // JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function. 6 | // 7 | // Also this schema is used as default base schema at `Schema.create` function. 8 | 9 | 10 | 'use strict'; 11 | 12 | 13 | var Schema = require('../schema'); 14 | 15 | 16 | module.exports = Schema.DEFAULT = new Schema({ 17 | include: [ 18 | require('./default_safe') 19 | ], 20 | explicit: [ 21 | require('../type/js/undefined'), 22 | require('../type/js/regexp'), 23 | require('../type/js/function') 24 | ] 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/schema/default_safe.js: -------------------------------------------------------------------------------- 1 | // JS-YAML's default schema for `safeLoad` function. 2 | // It is not described in the YAML specification. 3 | // 4 | // This schema is based on standard YAML's Core schema and includes most of 5 | // extra types described at YAML tag repository. (http://yaml.org/type/) 6 | 7 | 8 | 'use strict'; 9 | 10 | 11 | var Schema = require('../schema'); 12 | 13 | 14 | module.exports = new Schema({ 15 | include: [ 16 | require('./core') 17 | ], 18 | implicit: [ 19 | require('../type/timestamp'), 20 | require('../type/merge') 21 | ], 22 | explicit: [ 23 | require('../type/binary'), 24 | require('../type/omap'), 25 | require('../type/pairs'), 26 | require('../type/set') 27 | ] 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/schema/failsafe.js: -------------------------------------------------------------------------------- 1 | // Standard YAML's Failsafe schema. 2 | // http://www.yaml.org/spec/1.2/spec.html#id2802346 3 | 4 | 5 | 'use strict'; 6 | 7 | 8 | var Schema = require('../schema'); 9 | 10 | 11 | module.exports = new Schema({ 12 | explicit: [ 13 | require('../type/str'), 14 | require('../type/seq'), 15 | require('../type/map') 16 | ] 17 | }); 18 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/schema/json.js: -------------------------------------------------------------------------------- 1 | // Standard YAML's JSON schema. 2 | // http://www.yaml.org/spec/1.2/spec.html#id2803231 3 | // 4 | // NOTE: JS-YAML does not support schema-specific tag resolution restrictions. 5 | // So, this schema is not such strict as defined in the YAML specification. 6 | // It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc. 7 | 8 | 9 | 'use strict'; 10 | 11 | 12 | var Schema = require('../schema'); 13 | 14 | 15 | module.exports = new Schema({ 16 | include: [ 17 | require('./failsafe') 18 | ], 19 | implicit: [ 20 | require('../type/null'), 21 | require('../type/bool'), 22 | require('../type/int'), 23 | require('../type/float') 24 | ] 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/bool.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | function resolveYamlBoolean(data) { 6 | if (data === null) return false; 7 | 8 | var max = data.length; 9 | 10 | return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || 11 | (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE')); 12 | } 13 | 14 | function constructYamlBoolean(data) { 15 | return data === 'true' || 16 | data === 'True' || 17 | data === 'TRUE'; 18 | } 19 | 20 | function isBoolean(object) { 21 | return Object.prototype.toString.call(object) === '[object Boolean]'; 22 | } 23 | 24 | module.exports = new Type('tag:yaml.org,2002:bool', { 25 | kind: 'scalar', 26 | resolve: resolveYamlBoolean, 27 | construct: constructYamlBoolean, 28 | predicate: isBoolean, 29 | represent: { 30 | lowercase: function (object) { return object ? 'true' : 'false'; }, 31 | uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; }, 32 | camelcase: function (object) { return object ? 'True' : 'False'; } 33 | }, 34 | defaultStyle: 'lowercase' 35 | }); 36 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/js/undefined.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../../type'); 4 | 5 | function resolveJavascriptUndefined() { 6 | return true; 7 | } 8 | 9 | function constructJavascriptUndefined() { 10 | /*eslint-disable no-undefined*/ 11 | return undefined; 12 | } 13 | 14 | function representJavascriptUndefined() { 15 | return ''; 16 | } 17 | 18 | function isUndefined(object) { 19 | return typeof object === 'undefined'; 20 | } 21 | 22 | module.exports = new Type('tag:yaml.org,2002:js/undefined', { 23 | kind: 'scalar', 24 | resolve: resolveJavascriptUndefined, 25 | construct: constructJavascriptUndefined, 26 | predicate: isUndefined, 27 | represent: representJavascriptUndefined 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/map.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:map', { 6 | kind: 'mapping', 7 | construct: function (data) { return data !== null ? data : {}; } 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/merge.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | function resolveYamlMerge(data) { 6 | return data === '<<' || data === null; 7 | } 8 | 9 | module.exports = new Type('tag:yaml.org,2002:merge', { 10 | kind: 'scalar', 11 | resolve: resolveYamlMerge 12 | }); 13 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/null.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | function resolveYamlNull(data) { 6 | if (data === null) return true; 7 | 8 | var max = data.length; 9 | 10 | return (max === 1 && data === '~') || 11 | (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL')); 12 | } 13 | 14 | function constructYamlNull() { 15 | return null; 16 | } 17 | 18 | function isNull(object) { 19 | return object === null; 20 | } 21 | 22 | module.exports = new Type('tag:yaml.org,2002:null', { 23 | kind: 'scalar', 24 | resolve: resolveYamlNull, 25 | construct: constructYamlNull, 26 | predicate: isNull, 27 | represent: { 28 | canonical: function () { return '~'; }, 29 | lowercase: function () { return 'null'; }, 30 | uppercase: function () { return 'NULL'; }, 31 | camelcase: function () { return 'Null'; } 32 | }, 33 | defaultStyle: 'lowercase' 34 | }); 35 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/omap.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | var _hasOwnProperty = Object.prototype.hasOwnProperty; 6 | var _toString = Object.prototype.toString; 7 | 8 | function resolveYamlOmap(data) { 9 | if (data === null) return true; 10 | 11 | var objectKeys = [], index, length, pair, pairKey, pairHasKey, 12 | object = data; 13 | 14 | for (index = 0, length = object.length; index < length; index += 1) { 15 | pair = object[index]; 16 | pairHasKey = false; 17 | 18 | if (_toString.call(pair) !== '[object Object]') return false; 19 | 20 | for (pairKey in pair) { 21 | if (_hasOwnProperty.call(pair, pairKey)) { 22 | if (!pairHasKey) pairHasKey = true; 23 | else return false; 24 | } 25 | } 26 | 27 | if (!pairHasKey) return false; 28 | 29 | if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey); 30 | else return false; 31 | } 32 | 33 | return true; 34 | } 35 | 36 | function constructYamlOmap(data) { 37 | return data !== null ? data : []; 38 | } 39 | 40 | module.exports = new Type('tag:yaml.org,2002:omap', { 41 | kind: 'sequence', 42 | resolve: resolveYamlOmap, 43 | construct: constructYamlOmap 44 | }); 45 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/pairs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | var _toString = Object.prototype.toString; 6 | 7 | function resolveYamlPairs(data) { 8 | if (data === null) return true; 9 | 10 | var index, length, pair, keys, result, 11 | object = data; 12 | 13 | result = new Array(object.length); 14 | 15 | for (index = 0, length = object.length; index < length; index += 1) { 16 | pair = object[index]; 17 | 18 | if (_toString.call(pair) !== '[object Object]') return false; 19 | 20 | keys = Object.keys(pair); 21 | 22 | if (keys.length !== 1) return false; 23 | 24 | result[index] = [ keys[0], pair[keys[0]] ]; 25 | } 26 | 27 | return true; 28 | } 29 | 30 | function constructYamlPairs(data) { 31 | if (data === null) return []; 32 | 33 | var index, length, pair, keys, result, 34 | object = data; 35 | 36 | result = new Array(object.length); 37 | 38 | for (index = 0, length = object.length; index < length; index += 1) { 39 | pair = object[index]; 40 | 41 | keys = Object.keys(pair); 42 | 43 | result[index] = [ keys[0], pair[keys[0]] ]; 44 | } 45 | 46 | return result; 47 | } 48 | 49 | module.exports = new Type('tag:yaml.org,2002:pairs', { 50 | kind: 'sequence', 51 | resolve: resolveYamlPairs, 52 | construct: constructYamlPairs 53 | }); 54 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/seq.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:seq', { 6 | kind: 'sequence', 7 | construct: function (data) { return data !== null ? data : []; } 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/set.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | var _hasOwnProperty = Object.prototype.hasOwnProperty; 6 | 7 | function resolveYamlSet(data) { 8 | if (data === null) return true; 9 | 10 | var key, object = data; 11 | 12 | for (key in object) { 13 | if (_hasOwnProperty.call(object, key)) { 14 | if (object[key] !== null) return false; 15 | } 16 | } 17 | 18 | return true; 19 | } 20 | 21 | function constructYamlSet(data) { 22 | return data !== null ? data : {}; 23 | } 24 | 25 | module.exports = new Type('tag:yaml.org,2002:set', { 26 | kind: 'mapping', 27 | resolve: resolveYamlSet, 28 | construct: constructYamlSet 29 | }); 30 | -------------------------------------------------------------------------------- /node_modules/js-yaml/lib/js-yaml/type/str.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Type = require('../type'); 4 | 5 | module.exports = new Type('tag:yaml.org,2002:str', { 6 | kind: 'scalar', 7 | construct: function (data) { return data !== null ? data : ''; } 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/json2yaml/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules 16 | -------------------------------------------------------------------------------- /node_modules/json2yaml/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar", 3 | "baz": [ 4 | "qux", 5 | "quxx" 6 | ], 7 | "corge": null, 8 | "grault": 1, 9 | "garply": true, 10 | "waldo": "false", 11 | "fred": "undefined", 12 | "emptyarr": [], 13 | "emptyobj": {} 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/json2yaml/example.yml: -------------------------------------------------------------------------------- 1 | --- 2 | foo: bar 3 | baz: 4 | - qux 5 | - quxx 6 | corge: null 7 | grault: 1 8 | garply: true 9 | waldo: "false" 10 | fred: undefined 11 | -------------------------------------------------------------------------------- /node_modules/json2yaml/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # npm install -g yaml2json 4 | node cli.js tests/object.json | yaml2json > /dev/null 5 | node cli.js tests/array.json | yaml2json > /dev/null 6 | # These tests would probably fail and seem a moot point to me 7 | # Why use YAML for literal values? It's general used for config 8 | # files will multiple teirs of data 9 | #node cli.js tests/string.json | yaml2json 10 | #node cli.js tests/number.json | yaml2json 11 | #node cli.js tests/boolean.json | yaml2json 12 | #node cli.js tests/null.json | yaml2json 13 | echo "Passed if no errors are listed above (and yaml2json is installed)" 14 | -------------------------------------------------------------------------------- /node_modules/json2yaml/tests/array.json: -------------------------------------------------------------------------------- 1 | [ 2 | "baz", 3 | "qux", 4 | "quxx", 5 | null, 6 | true, 7 | { 8 | "foo": "bar", 9 | "corge": null, 10 | "grault": 1, 11 | "garply": true, 12 | "waldo": "false", 13 | "fred": "undefined" 14 | }, 15 | [ 16 | "hello", 17 | "world" 18 | ], 19 | 42, 20 | [ 21 | ] 22 | ] 23 | -------------------------------------------------------------------------------- /node_modules/json2yaml/tests/object.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar", 3 | "baz": [ 4 | "qux", 5 | "quxx" 6 | ], 7 | "corge": { 8 | "grault": 1, 9 | "garply": true, 10 | "waldo": "false", 11 | "fred": null 12 | }, 13 | "empty": { 14 | }, 15 | "hello": "world", 16 | "answer": 42 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/markdown/.npmignore: -------------------------------------------------------------------------------- 1 | .seed.yml 2 | test 3 | -------------------------------------------------------------------------------- /node_modules/markdown/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.6" 4 | - "0.8" 5 | - "0.9" 6 | - "0.10" 7 | - "0.11" 8 | -------------------------------------------------------------------------------- /node_modules/markdown/Changes.markdown: -------------------------------------------------------------------------------- 1 | # Changelog for markdown 2 | 3 | ## v0.5.0 - 2013-07-26 4 | 5 | There might be other bug fixes then the ones listed - I've been a bit lax at 6 | updating the changes file, sorry :( 7 | 8 | - Fix 'undefined' appearing in output for some cases with blockquotes 9 | - Fix (multiple) global variable leaks. Ooops 10 | - Fix IE8 issues (#68, #74, #97) 11 | - Fix IE8 issue (#86) 12 | - Handle windows line endings (#58) 13 | - Allow spaces in img/link paths (#48) 14 | - Add explicit text of the license to the readme (#74) 15 | - Style tweaks by Xhmikosr (#83, #81, #82) 16 | - Build now tested by TravisCI thanks to sebs (#85) 17 | - Fix 'cuddled' header parsing (#94) 18 | - Fix images inside links mistakenly requiring a title attribute to parse 19 | correctly (#71) 20 | 21 | 22 | ## v0.4.0 - 2012-06-09 23 | 24 | - Fix for anchors enclosed by parenthesis (issue #46) 25 | - `npm test` will now run the entire test suite cleanly. (switch tests over to 26 | node-tap). (#21) 27 | - Allow inline elements to appear inside link text (#27) 28 | - Improve link parsing when link is inside parenthesis (#38) 29 | - Actually render image references (#36) 30 | - Improve link parsing when multiple on a line (#5) 31 | - Make it work in IE7/8 (#37) 32 | - Fix blockquote merging/implicit conversion between string/String (#44, #24) 33 | - md2html can now process stdin (#43) 34 | - Fix jslint warnings (#42) 35 | - Fix to correctly render self-closing tags (#40, #35, #28) 36 | -------------------------------------------------------------------------------- /node_modules/markdown/bin/md2html.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | (function () { 3 | "use strict"; 4 | 5 | var fs = require("fs") 6 | , markdown = require("markdown").markdown 7 | , nopt = require("nopt") 8 | , stream 9 | , opts 10 | , buffer = "" 11 | ; 12 | 13 | opts = nopt( 14 | { "dialect": [ "Gruber", "Maruku"] 15 | , "help": Boolean 16 | } 17 | ); 18 | 19 | if (opts.help) { 20 | var name = process.argv[1].split("/").pop() 21 | console.warn( require("util").format( 22 | "usage: %s [--dialect=DIALECT] FILE\n\nValid dialects are Gruber (the default) or Maruku", 23 | name 24 | ) ); 25 | process.exit(0); 26 | } 27 | 28 | var fullpath = opts.argv.remain[0]; 29 | 30 | if (fullpath && fullpath !== "-") { 31 | stream = fs.createReadStream(fullpath); 32 | } else { 33 | stream = process.stdin; 34 | } 35 | stream.resume(); 36 | stream.setEncoding("utf8"); 37 | 38 | stream.on("error", function(error) { 39 | console.error(error.toString()); 40 | process.exit(1); 41 | }); 42 | 43 | stream.on("data", function(data) { 44 | buffer += data; 45 | }); 46 | 47 | stream.on("end", function() { 48 | var html = markdown.toHTML(buffer, opts.dialect); 49 | console.log(html); 50 | }); 51 | 52 | }()) 53 | -------------------------------------------------------------------------------- /node_modules/markdown/lib/index.js: -------------------------------------------------------------------------------- 1 | // super simple module for the most common nodejs use case. 2 | exports.markdown = require("./markdown"); 3 | exports.parse = exports.markdown.toHTML; 4 | -------------------------------------------------------------------------------- /node_modules/markdown/markdown-js.sublime-project: -------------------------------------------------------------------------------- 1 | { 2 | "folders": 3 | [ 4 | { 5 | "path": "/Users/ash/code/js/markdown-js", 6 | "folder_exclude_patterns": ["node_modules"], 7 | "file_exclude_patterns": ["*.sublime-*"] 8 | } 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/markdown/node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | ../nopt/bin/nopt.js -------------------------------------------------------------------------------- /node_modules/markdown/node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/markdown/node_modules/nopt/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | 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 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/markdown/node_modules/nopt/examples/my-program.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | //process.env.DEBUG_NOPT = 1 4 | 5 | // my-program.js 6 | var nopt = require("../lib/nopt") 7 | , Stream = require("stream").Stream 8 | , path = require("path") 9 | , knownOpts = { "foo" : [String, null] 10 | , "bar" : [Stream, Number] 11 | , "baz" : path 12 | , "bloo" : [ "big", "medium", "small" ] 13 | , "flag" : Boolean 14 | , "pick" : Boolean 15 | } 16 | , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] 17 | , "b7" : ["--bar", "7"] 18 | , "m" : ["--bloo", "medium"] 19 | , "p" : ["--pick"] 20 | , "f" : ["--flag", "true"] 21 | , "g" : ["--flag"] 22 | , "s" : "--flag" 23 | } 24 | // everything is optional. 25 | // knownOpts and shorthands default to {} 26 | // arg list defaults to process.argv 27 | // slice defaults to 2 28 | , parsed = nopt(knownOpts, shortHands, process.argv, 2) 29 | 30 | console.log("parsed =\n"+ require("util").inspect(parsed)) 31 | -------------------------------------------------------------------------------- /node_modules/markdown/seed.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: markdown-js 3 | description: JavaScript implementation of Markdown 4 | tags: markdown parser 5 | version: 0.1.2 6 | -------------------------------------------------------------------------------- /node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/minimist/LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /node_modules/minimist/test/dash.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('-', function (t) { 5 | t.plan(5); 6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); 7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); 8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); 9 | t.deepEqual( 10 | parse([ '-b', '-' ], { boolean: 'b' }), 11 | { b: true, _: [ '-' ] } 12 | ); 13 | t.deepEqual( 14 | parse([ '-s', '-' ], { string: 's' }), 15 | { s: '-', _: [] } 16 | ); 17 | }); 18 | 19 | test('-a -- b', function (t) { 20 | t.plan(3); 21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /node_modules/minimist/test/long.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('long opts', function (t) { 5 | t.deepEqual( 6 | parse([ '--bool' ]), 7 | { bool : true, _ : [] }, 8 | 'long boolean' 9 | ); 10 | t.deepEqual( 11 | parse([ '--pow', 'xixxle' ]), 12 | { pow : 'xixxle', _ : [] }, 13 | 'long capture sp' 14 | ); 15 | t.deepEqual( 16 | parse([ '--pow=xixxle' ]), 17 | { pow : 'xixxle', _ : [] }, 18 | 'long capture eq' 19 | ); 20 | t.deepEqual( 21 | parse([ '--host', 'localhost', '--port', '555' ]), 22 | { host : 'localhost', port : 555, _ : [] }, 23 | 'long captures sp' 24 | ); 25 | t.deepEqual( 26 | parse([ '--host=localhost', '--port=555' ]), 27 | { host : 'localhost', port : 555, _ : [] }, 28 | 'long captures eq' 29 | ); 30 | t.end(); 31 | }); 32 | -------------------------------------------------------------------------------- /node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /node_modules/mkdirp/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 James Halliday (mail@substack.net) 2 | 3 | This project is free software released under the MIT/X11 license: 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/mkdirp/bin/cmd.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mkdirp = require('../'); 4 | var minimist = require('minimist'); 5 | var fs = require('fs'); 6 | 7 | var argv = minimist(process.argv.slice(2), { 8 | alias: { m: 'mode', h: 'help' }, 9 | string: [ 'mode' ] 10 | }); 11 | if (argv.help) { 12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout); 13 | return; 14 | } 15 | 16 | var paths = argv._.slice(); 17 | var mode = argv.mode ? parseInt(argv.mode, 8) : undefined; 18 | 19 | (function next () { 20 | if (paths.length === 0) return; 21 | var p = paths.shift(); 22 | 23 | if (mode === undefined) mkdirp(p, cb) 24 | else mkdirp(p, mode, cb) 25 | 26 | function cb (err) { 27 | if (err) { 28 | console.error(err.message); 29 | process.exit(1); 30 | } 31 | else next(); 32 | } 33 | })(); 34 | -------------------------------------------------------------------------------- /node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/chmod.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0777 = parseInt('0777', 8); 6 | var _0755 = parseInt('0755', 8); 7 | var _0744 = parseInt('0744', 8); 8 | 9 | var ps = [ '', 'tmp' ]; 10 | 11 | for (var i = 0; i < 25; i++) { 12 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | ps.push(dir); 14 | } 15 | 16 | var file = ps.join('/'); 17 | 18 | test('chmod-pre', function (t) { 19 | var mode = _0744 20 | mkdirp(file, mode, function (er) { 21 | t.ifError(er, 'should not error'); 22 | fs.stat(file, function (er, stat) { 23 | t.ifError(er, 'should exist'); 24 | t.ok(stat && stat.isDirectory(), 'should be directory'); 25 | t.equal(stat && stat.mode & _0777, mode, 'should be 0744'); 26 | t.end(); 27 | }); 28 | }); 29 | }); 30 | 31 | test('chmod', function (t) { 32 | var mode = _0755 33 | mkdirp(file, mode, function (er) { 34 | t.ifError(er, 'should not error'); 35 | fs.stat(file, function (er, stat) { 36 | t.ifError(er, 'should exist'); 37 | t.ok(stat && stat.isDirectory(), 'should be directory'); 38 | t.end(); 39 | }); 40 | }); 41 | }); 42 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/clobber.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0755 = parseInt('0755', 8); 6 | 7 | var ps = [ '', 'tmp' ]; 8 | 9 | for (var i = 0; i < 25; i++) { 10 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | ps.push(dir); 12 | } 13 | 14 | var file = ps.join('/'); 15 | 16 | // a file in the way 17 | var itw = ps.slice(0, 3).join('/'); 18 | 19 | 20 | test('clobber-pre', function (t) { 21 | console.error("about to write to "+itw) 22 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); 23 | 24 | fs.stat(itw, function (er, stat) { 25 | t.ifError(er) 26 | t.ok(stat && stat.isFile(), 'should be file') 27 | t.end() 28 | }) 29 | }) 30 | 31 | test('clobber', function (t) { 32 | t.plan(2); 33 | mkdirp(file, _0755, function (err) { 34 | t.ok(err); 35 | t.equal(err.code, 'ENOTDIR'); 36 | t.end(); 37 | }); 38 | }); 39 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/mkdirp.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('woo', function (t) { 10 | t.plan(5); 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/tmp/' + [x,y,z].join('/'); 16 | 17 | mkdirp(file, _0755, function (err) { 18 | t.ifError(err); 19 | exists(file, function (ex) { 20 | t.ok(ex, 'file created'); 21 | fs.stat(file, function (err, stat) { 22 | t.ifError(err); 23 | t.equal(stat.mode & _0777, _0755); 24 | t.ok(stat.isDirectory(), 'target not a directory'); 25 | }) 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/opts_fs.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | var _0777 = parseInt('0777', 8); 6 | var _0755 = parseInt('0755', 8); 7 | 8 | test('opts.fs', function (t) { 9 | t.plan(5); 10 | 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/beep/boop/' + [x,y,z].join('/'); 16 | var xfs = mockfs.fs(); 17 | 18 | mkdirp(file, { fs: xfs, mode: _0755 }, function (err) { 19 | t.ifError(err); 20 | xfs.exists(file, function (ex) { 21 | t.ok(ex, 'created file'); 22 | xfs.stat(file, function (err, stat) { 23 | t.ifError(err); 24 | t.equal(stat.mode & _0777, _0755); 25 | t.ok(stat.isDirectory(), 'target not a directory'); 26 | }); 27 | }); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/opts_fs_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var test = require('tap').test; 4 | var mockfs = require('mock-fs'); 5 | var _0777 = parseInt('0777', 8); 6 | var _0755 = parseInt('0755', 8); 7 | 8 | test('opts.fs sync', function (t) { 9 | t.plan(4); 10 | 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/beep/boop/' + [x,y,z].join('/'); 16 | var xfs = mockfs.fs(); 17 | 18 | mkdirp.sync(file, { fs: xfs, mode: _0755 }); 19 | xfs.exists(file, function (ex) { 20 | t.ok(ex, 'created file'); 21 | xfs.stat(file, function (err, stat) { 22 | t.ifError(err); 23 | t.equal(stat.mode & _0777, _0755); 24 | t.ok(stat.isDirectory(), 'target not a directory'); 25 | }); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/perm.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('async perm', function (t) { 10 | t.plan(5); 11 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); 12 | 13 | mkdirp(file, _0755, function (err) { 14 | t.ifError(err); 15 | exists(file, function (ex) { 16 | t.ok(ex, 'file created'); 17 | fs.stat(file, function (err, stat) { 18 | t.ifError(err); 19 | t.equal(stat.mode & _0777, _0755); 20 | t.ok(stat.isDirectory(), 'target not a directory'); 21 | }) 22 | }) 23 | }); 24 | }); 25 | 26 | test('async root perm', function (t) { 27 | mkdirp('/tmp', _0755, function (err) { 28 | if (err) t.fail(err); 29 | t.end(); 30 | }); 31 | t.end(); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/perm_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('sync perm', function (t) { 10 | t.plan(4); 11 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json'; 12 | 13 | mkdirp.sync(file, _0755); 14 | exists(file, function (ex) { 15 | t.ok(ex, 'file created'); 16 | fs.stat(file, function (err, stat) { 17 | t.ifError(err); 18 | t.equal(stat.mode & _0777, _0755); 19 | t.ok(stat.isDirectory(), 'target not a directory'); 20 | }); 21 | }); 22 | }); 23 | 24 | test('sync root perm', function (t) { 25 | t.plan(3); 26 | 27 | var file = '/tmp'; 28 | mkdirp.sync(file, _0755); 29 | exists(file, function (ex) { 30 | t.ok(ex, 'file created'); 31 | fs.stat(file, function (err, stat) { 32 | t.ifError(err); 33 | t.ok(stat.isDirectory(), 'target not a directory'); 34 | }) 35 | }); 36 | }); 37 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/race.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('race', function (t) { 10 | t.plan(10); 11 | var ps = [ '', 'tmp' ]; 12 | 13 | for (var i = 0; i < 25; i++) { 14 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 15 | ps.push(dir); 16 | } 17 | var file = ps.join('/'); 18 | 19 | var res = 2; 20 | mk(file); 21 | 22 | mk(file); 23 | 24 | function mk (file, cb) { 25 | mkdirp(file, _0755, function (err) { 26 | t.ifError(err); 27 | exists(file, function (ex) { 28 | t.ok(ex, 'file created'); 29 | fs.stat(file, function (err, stat) { 30 | t.ifError(err); 31 | t.equal(stat.mode & _0777, _0755); 32 | t.ok(stat.isDirectory(), 'target not a directory'); 33 | }); 34 | }) 35 | }); 36 | } 37 | }); 38 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/rel.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('rel', function (t) { 10 | t.plan(5); 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var cwd = process.cwd(); 16 | process.chdir('/tmp'); 17 | 18 | var file = [x,y,z].join('/'); 19 | 20 | mkdirp(file, _0755, function (err) { 21 | t.ifError(err); 22 | exists(file, function (ex) { 23 | t.ok(ex, 'file created'); 24 | fs.stat(file, function (err, stat) { 25 | t.ifError(err); 26 | process.chdir(cwd); 27 | t.equal(stat.mode & _0777, _0755); 28 | t.ok(stat.isDirectory(), 'target not a directory'); 29 | }) 30 | }) 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/return.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(4); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | mkdirp(file, function (err, made) { 18 | t.ifError(err); 19 | t.equal(made, '/tmp/' + x); 20 | mkdirp(file, function (err, made) { 21 | t.ifError(err); 22 | t.equal(made, null); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/return_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | // Note that this will throw on failure, which will fail the test. 18 | var made = mkdirp.sync(file); 19 | t.equal(made, '/tmp/' + x); 20 | 21 | // making the same file again should have no effect. 22 | made = mkdirp.sync(file); 23 | t.equal(made, null); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0755 = parseInt('0755', 8); 6 | 7 | test('root', function (t) { 8 | // '/' on unix, 'c:/' on windows. 9 | var file = path.resolve('/'); 10 | 11 | mkdirp(file, _0755, function (err) { 12 | if (err) throw err 13 | fs.stat(file, function (er, stat) { 14 | if (er) throw er 15 | t.ok(stat.isDirectory(), 'target is a directory'); 16 | t.end(); 17 | }) 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('sync', function (t) { 10 | t.plan(4); 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/tmp/' + [x,y,z].join('/'); 16 | 17 | try { 18 | mkdirp.sync(file, _0755); 19 | } catch (err) { 20 | t.fail(err); 21 | return t.end(); 22 | } 23 | 24 | exists(file, function (ex) { 25 | t.ok(ex, 'file created'); 26 | fs.stat(file, function (err, stat) { 27 | t.ifError(err); 28 | t.equal(stat.mode & _0777, _0755); 29 | t.ok(stat.isDirectory(), 'target not a directory'); 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/umask.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('implicit mode from umask', function (t) { 10 | t.plan(5); 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/tmp/' + [x,y,z].join('/'); 16 | 17 | mkdirp(file, function (err) { 18 | t.ifError(err); 19 | exists(file, function (ex) { 20 | t.ok(ex, 'file created'); 21 | fs.stat(file, function (err, stat) { 22 | t.ifError(err); 23 | t.equal(stat.mode & _0777, _0777 & (~process.umask())); 24 | t.ok(stat.isDirectory(), 'target not a directory'); 25 | }); 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/mkdirp/test/umask_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var exists = fs.exists || path.exists; 5 | var test = require('tap').test; 6 | var _0777 = parseInt('0777', 8); 7 | var _0755 = parseInt('0755', 8); 8 | 9 | test('umask sync modes', function (t) { 10 | t.plan(4); 11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 14 | 15 | var file = '/tmp/' + [x,y,z].join('/'); 16 | 17 | try { 18 | mkdirp.sync(file); 19 | } catch (err) { 20 | t.fail(err); 21 | return t.end(); 22 | } 23 | 24 | exists(file, function (ex) { 25 | t.ok(ex, 'file created'); 26 | fs.stat(file, function (err, stat) { 27 | t.ifError(err); 28 | t.equal(stat.mode & _0777, (_0777 & (~process.umask()))); 29 | t.ok(stat.isDirectory(), 'target not a directory'); 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/mustache/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2009 Chris Wanstrath (Ruby) 4 | Copyright (c) 2010-2014 Jan Lehnardt (JavaScript) 5 | Copyright (c) 2010-2015 The mustache.js community 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 12 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/dojo/mustache.js.post: -------------------------------------------------------------------------------- 1 | 2 | dojox.mustache = dojo.hitch(Mustache, "render"); 3 | 4 | })(); -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/dojo/mustache.js.pre: -------------------------------------------------------------------------------- 1 | /* 2 | Shameless port of a shameless port 3 | @defunkt => @janl => @aq => @voodootikigod 4 | 5 | See http://github.com/defunkt/mustache for more info. 6 | */ 7 | 8 | dojo.provide("dojox.mustache._base"); 9 | (function(){ 10 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/jquery/mustache.js.post: -------------------------------------------------------------------------------- 1 | $.mustache = function (template, view, partials) { 2 | return Mustache.render(template, view, partials); 3 | }; 4 | 5 | $.fn.mustache = function (view, partials) { 6 | return $(this).map(function (i, elm) { 7 | var template = $.trim($(elm).html()); 8 | var output = $.mustache(template, view, partials); 9 | return $(output).get(); 10 | }); 11 | }; 12 | 13 | })(jQuery); 14 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/jquery/mustache.js.pre: -------------------------------------------------------------------------------- 1 | /* 2 | Shameless port of a shameless port 3 | @defunkt => @janl => @aq 4 | 5 | See http://github.com/defunkt/mustache for more info. 6 | */ 7 | 8 | ;(function($) { 9 | 10 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/mootools/mustache.js.post: -------------------------------------------------------------------------------- 1 | 2 | Object.implement('mustache', function(view, partials){ 3 | return Mustache.render(view, this, partials); 4 | }); 5 | })(); 6 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/mootools/mustache.js.pre: -------------------------------------------------------------------------------- 1 | (function(){ 2 | 3 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/qooxdoo/mustache.js.post: -------------------------------------------------------------------------------- 1 | /** 2 | * Above is the original mustache code. 3 | */ 4 | 5 | // EXPOSE qooxdoo variant 6 | qx.bom.Template.version = this.Mustache.version; 7 | qx.bom.Template.render = this.Mustache.render; 8 | 9 | }).call({}); -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/yui3/mustache.js.post: -------------------------------------------------------------------------------- 1 | 2 | Y.mustache = Mustache.render; 3 | 4 | }, "0"); 5 | -------------------------------------------------------------------------------- /node_modules/mustache/wrappers/yui3/mustache.js.pre: -------------------------------------------------------------------------------- 1 | YUI.add("mustache", function(Y) { 2 | -------------------------------------------------------------------------------- /node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/nopt/.npmignore -------------------------------------------------------------------------------- /node_modules/nopt/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2009, 2010, 2011 Isaac Z. Schlueter. 2 | All rights reserved. 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | 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 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/nopt/bin/nopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var nopt = require("../lib/nopt") 3 | , types = { num: Number 4 | , bool: Boolean 5 | , help: Boolean 6 | , list: Array 7 | , "num-list": [Number, Array] 8 | , "str-list": [String, Array] 9 | , "bool-list": [Boolean, Array] 10 | , str: String } 11 | , shorthands = { s: [ "--str", "astring" ] 12 | , b: [ "--bool" ] 13 | , nb: [ "--no-bool" ] 14 | , tft: [ "--bool-list", "--no-bool-list", "--bool-list", "true" ] 15 | , "?": ["--help"] 16 | , h: ["--help"] 17 | , H: ["--help"] 18 | , n: [ "--num", "125" ] } 19 | , parsed = nopt( types 20 | , shorthands 21 | , process.argv 22 | , 2 ) 23 | 24 | console.log("parsed", parsed) 25 | 26 | if (parsed.help) { 27 | console.log("") 28 | console.log("nopt cli tester") 29 | console.log("") 30 | console.log("types") 31 | console.log(Object.keys(types).map(function M (t) { 32 | var type = types[t] 33 | if (Array.isArray(type)) { 34 | return [t, type.map(function (type) { return type.name })] 35 | } 36 | return [t, type && type.name] 37 | }).reduce(function (s, i) { 38 | s[i[0]] = i[1] 39 | return s 40 | }, {})) 41 | console.log("") 42 | console.log("shorthands") 43 | console.log(shorthands) 44 | } 45 | -------------------------------------------------------------------------------- /node_modules/nopt/examples/my-program.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | //process.env.DEBUG_NOPT = 1 4 | 5 | // my-program.js 6 | var nopt = require("../lib/nopt") 7 | , Stream = require("stream").Stream 8 | , path = require("path") 9 | , knownOpts = { "foo" : [String, null] 10 | , "bar" : [Stream, Number] 11 | , "baz" : path 12 | , "bloo" : [ "big", "medium", "small" ] 13 | , "flag" : Boolean 14 | , "pick" : Boolean 15 | } 16 | , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] 17 | , "b7" : ["--bar", "7"] 18 | , "m" : ["--bloo", "medium"] 19 | , "p" : ["--pick"] 20 | , "f" : ["--flag", "true"] 21 | , "g" : ["--flag"] 22 | , "s" : "--flag" 23 | } 24 | // everything is optional. 25 | // knownOpts and shorthands default to {} 26 | // arg list defaults to process.argv 27 | // slice defaults to 2 28 | , parsed = nopt(knownOpts, shortHands, process.argv, 2) 29 | 30 | console.log("parsed =\n"+ require("util").inspect(parsed)) 31 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | bower_components/ 3 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | before_script: 6 | - npm install -g bower grunt grunt-cli 7 | - npm install 8 | - bower install 9 | - npm install -g mocha 10 | 11 | script: "grunt" 12 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/README.md: -------------------------------------------------------------------------------- 1 | ## opal-npm-wrapper 2 | [![Build Status](https://travis-ci.org/anthonny/opal-npm-wrapper.svg)](https://travis-ci.org/anthonny/opal-npm-wrapper) 3 | 4 | A wrapper to use [Opal](https://github.com/opal/opal-cdn) with NPM 5 | Opal current version : **0.9.0.beta2** 6 | 7 | ### Installation 8 | ``` 9 | npm install opal-npm-wrapper --save 10 | ``` 11 | 12 | ### Usage 13 | ``` 14 | var opal = require('opal-npm-wrapper').Opal; 15 | ``` 16 | 17 | ### License 18 | MIT 19 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "opal-npm-wrapper", 3 | "version": "0.1.0", 4 | "authors": [ 5 | "Anthonny Quérouil " 6 | ], 7 | "license": "MIT", 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "bower_components", 12 | "test", 13 | "tests" 14 | ], 15 | "devDependencies": { 16 | "opal": "0.9.2" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/src/append.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | module.exports.Opal = this.Opal; 4 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/src/prepend.js: -------------------------------------------------------------------------------- 1 | var Opal = this.Opal = undefined; 2 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/test.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var opal = require('./index.js').Opal; 4 | 5 | console.log(opal); 6 | -------------------------------------------------------------------------------- /node_modules/opal-npm-wrapper/test/index.js: -------------------------------------------------------------------------------- 1 | var should = require('chai').should(); 2 | var opal = require('../index.js').Opal; 3 | 4 | describe("Opal", function() { 5 | describe(".uid()", function() { 6 | it("should generate an uid", function(){ 7 | opal.uid().should.be.a('number'); 8 | }); 9 | }); 10 | describe(".alias()", function() { 11 | it("should have an alias", function(){ 12 | opal.alias.should.be.a('function'); 13 | }); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/parse-curl/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/parse-curl/History.md: -------------------------------------------------------------------------------- 1 | 2 | v0.2.5 / 2016-07-03 3 | =================== 4 | 5 | * fix POST method when using --data. Closes #5 6 | 7 | v0.2.4 / 2016-05-08 8 | =================== 9 | 10 | * change const -> var, breaks some browserify stuff 11 | 12 | v0.2.3 / 2016-04-21 13 | =================== 14 | 15 | * remove backticks 16 | 17 | v0.2.2 / 2016-04-21 18 | =================== 19 | 20 | * remove another arrow func 21 | 22 | v0.2.1 / 2016-04-21 23 | =================== 24 | 25 | * remove arrow func 26 | 27 | v0.2.0 / 2016-04-18 28 | =================== 29 | 30 | * add cookie support 31 | 32 | v0.1.0 / 2016-04-14 33 | =================== 34 | 35 | * add test for ignoring other junk 36 | * add --compressed 37 | * fix --data field precedence 38 | * fix --compressed precedence 39 | * fix example 40 | * Initial commit 41 | -------------------------------------------------------------------------------- /node_modules/parse-curl/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # parse-curl.js 3 | 4 | Parse curl commands, returning an object representing the request. 5 | 6 | ## Example 7 | 8 | Input: 9 | 10 | ``` 11 | curl 'http://google.com/' \ 12 | -H 'Accept-Encoding: gzip, deflate, sdch' \ 13 | -H 'Accept-Language: en-US,en;q=0.8,da;q=0.6' \ 14 | -H 'Upgrade-Insecure-Requests: 1' \ 15 | -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36' \ 16 | -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' \ 17 | -H 'Connection: keep-alive' \ 18 | --compressed 19 | ``` 20 | 21 | Output: 22 | 23 | ```json 24 | { 25 | "method": "GET", 26 | "header": { 27 | "Accept-Encoding": "gzip, deflate, sdch", 28 | "Accept-Language": "en-US,en;q=0.8,da;q=0.6", 29 | "Upgrade-Insecure-Requests": "1", 30 | "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36", 31 | "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", 32 | "Connection": "keep-alive" 33 | }, 34 | "url": "http://google.com/" 35 | } 36 | ``` 37 | 38 | ## Badges 39 | 40 | ![](https://img.shields.io/badge/license-MIT-blue.svg) 41 | ![](https://img.shields.io/badge/status-stable-green.svg) 42 | 43 | --- 44 | 45 | > [tjholowaychuk.com](http://tjholowaychuk.com)  ·  46 | > GitHub [@tj](https://github.com/tj)  ·  47 | > Twitter [@tjholowaychuk](https://twitter.com/tjholowaychuk) 48 | -------------------------------------------------------------------------------- /node_modules/parse-curl/example.js: -------------------------------------------------------------------------------- 1 | 2 | const parse = require('./index') 3 | 4 | const out = parse(`curl 'http://google.com/' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8,da;q=0.6' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Connection: keep-alive' --compressed`) 5 | 6 | console.log(JSON.stringify(out, null, 2)) 7 | -------------------------------------------------------------------------------- /node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /node_modules/readable-stream/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. and other Node contributors. All rights reserved. 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to 4 | deal in the Software without restriction, including without limitation the 5 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 6 | sell copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in 10 | all copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 17 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 18 | IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/readable-stream/README.md: -------------------------------------------------------------------------------- 1 | # readable-stream 2 | 3 | ***Node-core streams for userland*** 4 | 5 | [![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) 6 | [![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/) 7 | 8 | This package is a mirror of the Streams2 and Streams3 implementations in Node-core. 9 | 10 | If you want to guarantee a stable streams base, regardless of what version of Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core. 11 | 12 | **readable-stream** comes in two major versions, v1.0.x and v1.1.x. The former tracks the Streams2 implementation in Node 0.10, including bug-fixes and minor improvements as they are added. The latter tracks Streams3 as it develops in Node 0.11; we will likely see a v1.2.x branch for Node 0.12. 13 | 14 | **readable-stream** uses proper patch-level versioning so if you pin to `"~1.0.0"` you’ll get the latest Node 0.10 Streams2 implementation, including any fixes and minor non-breaking improvements. The patch-level versions of 1.0.x and 1.1.x should mirror the patch-level versions of Node-core releases. You should prefer the **1.0.x** releases for now and when you’re ready to start using Streams3, pin to `"~1.1.0"` 15 | 16 | -------------------------------------------------------------------------------- /node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = require('stream'); // hack to fix a circular dependency issue when used with browserify 2 | exports = module.exports = require('./lib/_stream_readable.js'); 3 | exports.Stream = Stream; 4 | exports.Readable = exports; 5 | exports.Writable = require('./lib/_stream_writable.js'); 6 | exports.Duplex = require('./lib/_stream_duplex.js'); 7 | exports.Transform = require('./lib/_stream_transform.js'); 8 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 9 | if (!process.browser && process.env.READABLE_STREAM === 'disable') { 10 | module.exports = require('stream'); 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /node_modules/shellwords/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/shellwords/Cakefile: -------------------------------------------------------------------------------- 1 | {spawn, exec} = require "child_process" 2 | watch = require "nodewatch" 3 | 4 | task "spec", "Runs the Jasmine specs.", -> 5 | header() 6 | 7 | jasmine = spawn "node", ["node_modules/jasmine-node/lib/jasmine-node/cli.js", "--coffee", "-i", "src", "spec"] 8 | 9 | jasmine.stdout.on "data", (data) -> 10 | process.stdout.write data 11 | jasmine.stderr.on "data", (data) -> 12 | process.stderr.write data 13 | 14 | jasmine.stdin.end() 15 | 16 | task "watch", "Watches for file changes, recompiling CoffeeScript and running the Jasmine specs.", -> 17 | console.log "Watching Shellwords for changes...\n" 18 | 19 | invoke "spec" 20 | 21 | watch.add("src").add("spec").onChange (file, prev, cur) -> 22 | exec "coffee -co lib src", (error, stdout, stderr) -> 23 | throw error if error 24 | 25 | invoke "spec" 26 | 27 | header = -> 28 | divider = "------------" 29 | console.log divider, dateString(), divider 30 | 31 | dateString = -> 32 | d = new Date 33 | h = d.getHours() 34 | m = d.getMinutes() 35 | s = d.getSeconds() 36 | meridiem = if h >= 12 then "PM" else "AM" 37 | h -= 12 if h > 12 38 | h = 12 if h is 0 39 | m = "0" + m if m < 10 40 | s = "0" + s if s < 10 41 | 42 | "#{d.toLocaleDateString()} #{h}:#{m}:#{s} #{meridiem}" 43 | -------------------------------------------------------------------------------- /node_modules/shellwords/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 by Jimmy Cuadra 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/shellwords/README.md: -------------------------------------------------------------------------------- 1 | # Shellwords 2 | 3 | Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. It is based on [the Ruby module of the same name](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html). 4 | 5 | ## Installation 6 | 7 | Add "shellwords" to your `package.json` file and run `npm install`. 8 | 9 | ## Example 10 | 11 | ``` javascript 12 | var shellwords = require("shellwords"); 13 | 14 | shellwords.split("foo 'bar baz'"); 15 | // ["foo", "bar baz"] 16 | 17 | shellwords.escape("What's up, yo?"); 18 | // 'What\\\'s\\ up,\\ yo\\?' 19 | ``` 20 | -------------------------------------------------------------------------------- /node_modules/split/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | node_modules/* 3 | npm_debug.log 4 | -------------------------------------------------------------------------------- /node_modules/split/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /node_modules/split/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Dominic Tarr 2 | 3 | Permission is hereby granted, free of charge, 4 | to any person obtaining a copy of this software and 5 | associated documentation files (the "Software"), to 6 | deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, 8 | merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom 10 | the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice 14 | shall be 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 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 20 | ANY 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. -------------------------------------------------------------------------------- /node_modules/split/examples/pretty.js: -------------------------------------------------------------------------------- 1 | 2 | var inspect = require('util').inspect 3 | var es = require('event-stream') //load event-stream 4 | var split = require('../') 5 | 6 | if(!module.parent) { 7 | es.pipe( //pipe joins streams together 8 | process.openStdin(), //open stdin 9 | split(), //split stream to break on newlines 10 | es.map(function (data, callback) {//turn this async function into a stream 11 | var j 12 | try { 13 | j = JSON.parse(data) //try to parse input into json 14 | } catch (err) { 15 | return callback(null, data) //if it fails just pass it anyway 16 | } 17 | callback(null, inspect(j)) //render it nicely 18 | }), 19 | process.stdout // pipe it to stdout ! 20 | ) 21 | } 22 | 23 | // run this 24 | // 25 | // curl -sS registry.npmjs.org/event-stream | node pretty.js 26 | // 27 | -------------------------------------------------------------------------------- /node_modules/split/test/options.asynct.js: -------------------------------------------------------------------------------- 1 | var it = require('it-is').style('colour') 2 | , split = require('..') 3 | 4 | exports ['maximum buffer limit'] = function (test) { 5 | var s = split(JSON.parse, null, { 6 | maxLength: 2 7 | }) 8 | , caughtError = false 9 | , rows = [] 10 | 11 | s.on('error', function (err) { 12 | caughtError = true 13 | }) 14 | 15 | s.on('data', function (row) { rows.push(row) }) 16 | 17 | s.write('{"a":1}\n{"') 18 | s.write('{ "') 19 | it(caughtError).equal(true) 20 | 21 | s.end() 22 | test.done() 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/split/test/partitioned_unicode.js: -------------------------------------------------------------------------------- 1 | var it = require('it-is').style('colour') 2 | , split = require('..') 3 | 4 | exports ['split data with partitioned unicode character'] = function (test) { 5 | var s = split(/,/g) 6 | , caughtError = false 7 | , rows = [] 8 | 9 | s.on('error', function (err) { 10 | caughtError = true 11 | }) 12 | 13 | s.on('data', function (row) { rows.push(row) }) 14 | 15 | var x = 'テスト試験今日とても,よい天気で' 16 | unicodeData = new Buffer(x); 17 | 18 | // partition of 日 19 | piece1 = unicodeData.slice(0, 20); 20 | piece2 = unicodeData.slice(20, unicodeData.length); 21 | 22 | s.write(piece1); 23 | s.write(piece2); 24 | 25 | s.end() 26 | 27 | it(caughtError).equal(false) 28 | 29 | it(rows).deepEqual(['テスト試験今日とても', 'よい天気で']); 30 | 31 | it(rows).deepEqual(x.split(',')) 32 | 33 | test.done() 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/split/test/try_catch.asynct.js: -------------------------------------------------------------------------------- 1 | var it = require('it-is').style('colour') 2 | , split = require('..') 3 | 4 | exports ['emit mapper exceptions as error events'] = function (test) { 5 | var s = split(JSON.parse) 6 | , caughtError = false 7 | , rows = [] 8 | 9 | s.on('error', function (err) { 10 | caughtError = true 11 | }) 12 | 13 | s.on('data', function (row) { rows.push(row) }) 14 | 15 | s.write('{"a":1}\n{"') 16 | it(caughtError).equal(false) 17 | it(rows).deepEqual([ { a: 1 } ]) 18 | 19 | s.write('b":2}\n{"c":}\n') 20 | it(caughtError).equal(true) 21 | it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) 22 | 23 | s.end() 24 | test.done() 25 | } 26 | 27 | exports ['mapper error events on trailing chunks'] = function (test) { 28 | var s = split(JSON.parse) 29 | , caughtError = false 30 | , rows = [] 31 | 32 | s.on('error', function (err) { 33 | caughtError = true 34 | }) 35 | 36 | s.on('data', function (row) { rows.push(row) }) 37 | 38 | s.write('{"a":1}\n{"') 39 | it(caughtError).equal(false) 40 | it(rows).deepEqual([ { a: 1 } ]) 41 | 42 | s.write('b":2}\n{"c":}') 43 | it(caughtError).equal(false) 44 | it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) 45 | 46 | s.end() 47 | it(caughtError).equal(true) 48 | it(rows).deepEqual([ { a: 1 }, { b: 2 } ]) 49 | 50 | test.done() 51 | } 52 | -------------------------------------------------------------------------------- /node_modules/sprintf-js/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ -------------------------------------------------------------------------------- /node_modules/sprintf-js/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sprintf", 3 | "description": "JavaScript sprintf implementation", 4 | "version": "1.0.3", 5 | "main": "src/sprintf.js", 6 | "license": "BSD-3-Clause-Clear", 7 | "keywords": ["sprintf", "string", "formatting"], 8 | "authors": ["Alexandru Marasteanu (http://alexei.ro/)"], 9 | "homepage": "https://github.com/alexei/sprintf.js", 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/alexei/sprintf.js.git" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/sprintf-js/demo/angular.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
{{ "%+010d"|sprintf:-123 }}
10 |
{{ "%+010d"|vsprintf:[-123] }}
11 |
{{ "%+010d"|fmt:-123 }}
12 |
{{ "%+010d"|vfmt:[-123] }}
13 |
{{ "I've got %2$d apples and %1$d oranges."|fmt:4:2 }}
14 |
{{ "I've got %(apples)d apples and %(oranges)d oranges."|fmt:{apples: 2, oranges: 4} }}
15 | 16 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /node_modules/sprintf-js/dist/angular-sprintf.min.js: -------------------------------------------------------------------------------- 1 | /*! sprintf-js | Alexandru Marasteanu (http://alexei.ro/) | BSD-3-Clause */ 2 | 3 | angular.module("sprintf",[]).filter("sprintf",function(){return function(){return sprintf.apply(null,arguments)}}).filter("fmt",["$filter",function(a){return a("sprintf")}]).filter("vsprintf",function(){return function(a,b){return vsprintf(a,b)}}).filter("vfmt",["$filter",function(a){return a("vsprintf")}]); 4 | //# sourceMappingURL=angular-sprintf.min.map -------------------------------------------------------------------------------- /node_modules/sprintf-js/dist/angular-sprintf.min.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"angular-sprintf.min.js","sources":["../src/angular-sprintf.js"],"names":["angular","module","filter","sprintf","apply","arguments","$filter","format","argv","vsprintf"],"mappings":";;AAAAA,QACIC,OAAO,cACPC,OAAO,UAAW,WACd,MAAO,YACH,MAAOC,SAAQC,MAAM,KAAMC,cAGnCH,OAAO,OAAQ,UAAW,SAASI,GAC/B,MAAOA,GAAQ,cAEnBJ,OAAO,WAAY,WACf,MAAO,UAASK,EAAQC,GACpB,MAAOC,UAASF,EAAQC,MAGhCN,OAAO,QAAS,UAAW,SAASI,GAChC,MAAOA,GAAQ"} -------------------------------------------------------------------------------- /node_modules/sprintf-js/dist/angular-sprintf.min.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"angular-sprintf.min.js","sources":["../src/angular-sprintf.js"],"names":["angular","module","filter","sprintf","apply","arguments","$filter","format","argv","vsprintf"],"mappings":";;AAAAA,QACIC,OAAO,cACPC,OAAO,UAAW,WACd,MAAO,YACH,MAAOC,SAAQC,MAAM,KAAMC,cAGnCH,OAAO,OAAQ,UAAW,SAASI,GAC/B,MAAOA,GAAQ,cAEnBJ,OAAO,WAAY,WACf,MAAO,UAASK,EAAQC,GACpB,MAAOC,UAASF,EAAQC,MAGhCN,OAAO,QAAS,UAAW,SAASI,GAChC,MAAOA,GAAQ"} -------------------------------------------------------------------------------- /node_modules/sprintf-js/gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | grunt.initConfig({ 3 | pkg: grunt.file.readJSON("package.json"), 4 | 5 | uglify: { 6 | options: { 7 | banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n", 8 | sourceMap: true 9 | }, 10 | build: { 11 | files: [ 12 | { 13 | src: "src/sprintf.js", 14 | dest: "dist/sprintf.min.js" 15 | }, 16 | { 17 | src: "src/angular-sprintf.js", 18 | dest: "dist/angular-sprintf.min.js" 19 | } 20 | ] 21 | } 22 | }, 23 | 24 | watch: { 25 | js: { 26 | files: "src/*.js", 27 | tasks: ["uglify"] 28 | } 29 | } 30 | }) 31 | 32 | grunt.loadNpmTasks("grunt-contrib-uglify") 33 | grunt.loadNpmTasks("grunt-contrib-watch") 34 | 35 | grunt.registerTask("default", ["uglify", "watch"]) 36 | } 37 | -------------------------------------------------------------------------------- /node_modules/sprintf-js/src/angular-sprintf.js: -------------------------------------------------------------------------------- 1 | angular. 2 | module("sprintf", []). 3 | filter("sprintf", function() { 4 | return function() { 5 | return sprintf.apply(null, arguments) 6 | } 7 | }). 8 | filter("fmt", ["$filter", function($filter) { 9 | return $filter("sprintf") 10 | }]). 11 | filter("vsprintf", function() { 12 | return function(format, argv) { 13 | return vsprintf(format, argv) 14 | } 15 | }). 16 | filter("vfmt", ["$filter", function($filter) { 17 | return $filter("vsprintf") 18 | }]) 19 | -------------------------------------------------------------------------------- /node_modules/storm-stream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "iojs" 4 | - "0.12" 5 | - "0.11" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /node_modules/storm-stream/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Jesse Keane 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/storm-stream/README.md: -------------------------------------------------------------------------------- 1 | # storm-stream 2 | 3 | Duplex stream interface to Storm 4 | 5 | ## example 6 | 7 | ```javascript 8 | var stormStream = require('storm-stream') 9 | 10 | var stream = stormStream() 11 | 12 | stream.on('data', function(data) { 13 | if(data.stream && data.stream === '__heartbeat') { 14 | // sync on heartbeat 15 | stream.write({command: 'sync'}) 16 | } 17 | }) 18 | ``` 19 | 20 | ## api 21 | 22 | `stormStream([inputStream], [outputStream]) -> DuplexStream` 23 | 24 | * Accepts optional input and output streams, defaulting to stdin and stdout. 25 | * Talks plain JavaScript objects and handles communication with Storm. 26 | 27 | ## license 28 | 29 | MIT 30 | -------------------------------------------------------------------------------- /node_modules/storm-stream/index.js: -------------------------------------------------------------------------------- 1 | var through = require('through2') 2 | , split = require('split') 3 | 4 | module.exports = stormStream 5 | 6 | function stormStream(_stdin, _stdout) { 7 | var stdout = _stdout || process.stdout 8 | , stdin = _stdin || process.stdin 9 | , stream = through.obj(write) 10 | 11 | stdin.pipe(split()).on('data', processData) 12 | 13 | return stream 14 | 15 | function processData(data) { 16 | var str = data.toString() 17 | 18 | if(str === 'end') { 19 | return 20 | } 21 | 22 | try { 23 | stream.push(JSON.parse(str)) 24 | } catch(err) { 25 | stream.emit('error', err) 26 | } 27 | } 28 | 29 | function write(obj, _, next) { 30 | try { 31 | stdout.write(JSON.stringify(obj) + '\nend\n') 32 | } catch(err) { 33 | stream.emit('error', err) 34 | } 35 | 36 | next() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /node_modules/string_decoder/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. and other Node contributors. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a 4 | copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to permit 8 | persons to whom the Software is furnished to do so, subject to the 9 | following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 17 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 20 | USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /node_modules/string_decoder/README.md: -------------------------------------------------------------------------------- 1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core 2 | 3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details. 4 | 5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.** 6 | 7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version. -------------------------------------------------------------------------------- /node_modules/textile-js/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Borgar Þorsteinsson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/textile-js/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @cp lib/textile.js textile.js 3 | @uglifyjs -o textile.min.js textile.js 4 | 5 | clean: 6 | @rm textile.js 7 | @rm textile.min.js 8 | 9 | test: 10 | @node test/index.js 11 | 12 | .PHONY: clean all test 13 | -------------------------------------------------------------------------------- /node_modules/textile-js/README.textile: -------------------------------------------------------------------------------- 1 | h1. textile.js 2 | 3 | Attempt at an implementation of fully featured Textile parser in JavaScript that runs reasonably fast and mostly avoids outputting broken HTML. 4 | 5 | Give it a go in "a live textile web editor":http://borgar.github.com/textile-js/. 6 | 7 | 8 | h2. Install 9 | 10 | bc. $ npm install textile-js 11 | 12 | 13 | h2. Options 14 | 15 | The basic interface mimics "marked":https://github.com/chjj/marked, the popular markdown parser. So if you use that in your project then you can support Textile as well with minimal effort. 16 | 17 | Currently, the only supported option is @breaks@ which can be used to enable/disable the default behavior of line-breaking single newlines within blocks. 18 | 19 | 20 | h2. Usage 21 | 22 | bc. console.log( textile( "I am using __textile__." ) ); 23 | 24 | You can also get to the syntax tree, which uses "JsonML":http://www.jsonml.org/. 25 | 26 | bc. var jsonml = textile.parse( text ); 27 | console.log( jsonml ); 28 | 29 | 30 | h2. CLI 31 | 32 | bc. $ textile -o hello.html 33 | hello world 34 | ^D 35 | $ cat hello.html 36 |

hello world

37 | 38 | 39 | h2. License 40 | 41 | Copyright (c) 2012, Borgar Þorsteinsson (MIT License). 42 | 43 | See LICENSE. 44 | -------------------------------------------------------------------------------- /node_modules/textile-js/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "textile-js", 3 | "version": "0.1.11", 4 | "description": "A full-featured JavaScript Textile parser", 5 | "main": "lib/textile.js", 6 | "author": "Borgar Þorsteinsson", 7 | "ignore": [ 8 | "bin", 9 | "test", 10 | "Makefile", 11 | "index.js", 12 | "package.json" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/textile-js/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/textile'); 2 | -------------------------------------------------------------------------------- /node_modules/textile-js/test/block_comments.js: -------------------------------------------------------------------------------- 1 | test('Textile comments', function () { 2 | 3 | 4 | 5 | equal(textile.convert( // Textile comments 6 | 7 | "###. Here's a comment.\n"+ 8 | "\n"+ 9 | "h3. Hello\n"+ 10 | "\n"+ 11 | "###. And\n"+ 12 | "another\n"+ 13 | "one.\n"+ 14 | "\n"+ 15 | "Goodbye.\n" 16 | 17 | ), // Should output 18 | 19 | "

Hello

\n"+ 20 | "\n"+ 21 | "

Goodbye.

" 22 | 23 | ); 24 | 25 | 26 | equal(textile.convert( // Textile comments 27 | 28 | "Some text here.\n"+ 29 | "\n"+ 30 | "###. This is a textile comment block.\n"+ 31 | "It will be removed from your document.\n"+ 32 | "\n"+ 33 | "More text to follow.\n" 34 | 35 | ), // Should output 36 | 37 | "

Some text here.

\n"+ 38 | "\n"+ 39 | "

More text to follow.

" 40 | 41 | ); 42 | 43 | 44 | equal(textile.convert( // Textile comments extended 45 | 46 | "Some text here.\n"+ 47 | "\n"+ 48 | "###.. This is a textile comment block.\n"+ 49 | "It will be removed from your document.\n"+ 50 | "\n"+ 51 | "This is also a comment.\n"+ 52 | "\n"+ 53 | "p. More text to follow.\n" 54 | 55 | ), // Should output 56 | 57 | "

Some text here.

\n"+ 58 | "\n"+ 59 | "

More text to follow.

" 60 | 61 | ); 62 | 63 | 64 | 65 | 66 | 67 | }); 68 | -------------------------------------------------------------------------------- /node_modules/textile-js/test/converted/extra_whitespace.js: -------------------------------------------------------------------------------- 1 | test('extra_whitespace.yml', function () { 2 | 3 | 4 | // =[ 1 ]============================================================================== 5 | 6 | 7 | equal(textile.convert( // The textile 8 | 9 | "h1. Header\n"+ 10 | "\n"+ 11 | "text" 12 | 13 | ), // Should output 14 | 15 | "

Header

\n"+ 16 | "

text

" 17 | 18 | ,"header with 1 blank line below"); 19 | 20 | 21 | // =[ 2 ]============================================================================== 22 | 23 | 24 | equal(textile.convert( // The textile 25 | 26 | "h1. Header\n"+ 27 | "\n"+ 28 | "\n"+ 29 | "text" 30 | 31 | ), // Should output 32 | 33 | "

Header

\n"+ 34 | "

text

" 35 | 36 | ,"header with 2 blank lines below"); 37 | 38 | 39 | // =[ 3 ]============================================================================== 40 | 41 | 42 | equal(textile.convert( // The textile 43 | 44 | "text\n"+ 45 | "\n"+ 46 | "h1. Header" 47 | 48 | ), // Should output 49 | 50 | "

text

\n"+ 51 | "

Header

" 52 | 53 | ,"header with 1 blank line above"); 54 | 55 | 56 | // =[ 4 ]============================================================================== 57 | 58 | 59 | equal(textile.convert( // The textile 60 | 61 | "text\n"+ 62 | "\n"+ 63 | "\n"+ 64 | "h1. Header" 65 | 66 | ), // Should output 67 | 68 | "

text

\n"+ 69 | "

Header

" 70 | 71 | ,"header with 2 blank lines above"); 72 | 73 | 74 | }); 75 | 76 | -------------------------------------------------------------------------------- /node_modules/textile-js/test/converted/filter_pba.js: -------------------------------------------------------------------------------- 1 | test('filter_pba.yml', function () { 2 | 3 | 4 | // =[ 4 ]============================================================================== 5 | 6 | 7 | equal(textile.convert( // The textile 8 | 9 | "p{background: #white url(\"../chunky_bacon.jpg\")}. The quick brown \"cartoon\" fox jumps over the lazy dog" 10 | 11 | ), // Should output 12 | 13 | "

The quick brown “cartoon” fox jumps over the lazy dog

" 14 | 15 | ,"correct application of double quote entity when using styles"); 16 | 17 | 18 | // =[ 5 ]============================================================================== 19 | 20 | 21 | equal(textile.convert( // The textile 22 | 23 | "p{background: #white url('../chunky_bacon.jpg')}. The quick brown 'cartoon' fox jumps over the lazy dog" 24 | 25 | ), // Should output 26 | 27 | "

The quick brown ‘cartoon’ fox jumps over the lazy dog

" 28 | 29 | ,"correct application of single quote entity when using styles"); 30 | 31 | 32 | }); 33 | 34 | -------------------------------------------------------------------------------- /node_modules/textile-js/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | textile tests 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |

textile tests

34 |

35 |

36 |
    37 | 38 | 39 | -------------------------------------------------------------------------------- /node_modules/textile-js/update_dingus.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | uglifyjs lib/textile.js > min_temp_textile.js 4 | git co gh-pages 5 | git pull 6 | rm textile.min.js 7 | mv min_temp_textile.js textile.min.js 8 | git add textile.min.js 9 | git commit -m "Updating textile lib to latest version." 10 | git push 11 | git co master 12 | -------------------------------------------------------------------------------- /node_modules/through/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /node_modules/through/LICENSE.APACHE2: -------------------------------------------------------------------------------- 1 | Apache License, Version 2.0 2 | 3 | Copyright (c) 2011 Dominic Tarr 4 | 5 | Licensed under the Apache License, Version 2.0 (the "License"); 6 | you may not use this file except in compliance with the License. 7 | You may obtain a copy of the License at 8 | 9 | http://www.apache.org/licenses/LICENSE-2.0 10 | 11 | Unless required by applicable law or agreed to in writing, software 12 | distributed under the License is distributed on an "AS IS" BASIS, 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | See the License for the specific language governing permissions and 15 | limitations under the License. 16 | -------------------------------------------------------------------------------- /node_modules/through/LICENSE.MIT: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011 Dominic Tarr 4 | 5 | Permission is hereby granted, free of charge, 6 | to any person obtaining a copy of this software and 7 | associated documentation files (the "Software"), to 8 | deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, 10 | merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom 12 | the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice 16 | shall be included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 20 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 22 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /node_modules/through/test/async.js: -------------------------------------------------------------------------------- 1 | var from = require('from') 2 | var through = require('../') 3 | 4 | var tape = require('tape') 5 | 6 | tape('simple async example', function (t) { 7 | 8 | var n = 0, expected = [1,2,3,4,5], actual = [] 9 | from(expected) 10 | .pipe(through(function(data) { 11 | this.pause() 12 | n ++ 13 | setTimeout(function(){ 14 | console.log('pushing data', data) 15 | this.push(data) 16 | this.resume() 17 | }.bind(this), 300) 18 | })).pipe(through(function(data) { 19 | console.log('pushing data second time', data); 20 | this.push(data) 21 | })).on('data', function (d) { 22 | actual.push(d) 23 | }).on('end', function() { 24 | t.deepEqual(actual, expected) 25 | t.end() 26 | }) 27 | 28 | }) 29 | -------------------------------------------------------------------------------- /node_modules/through/test/auto-destroy.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var through = require('../') 3 | 4 | // must emit end before close. 5 | 6 | test('end before close', function (assert) { 7 | var ts = through() 8 | ts.autoDestroy = false 9 | var ended = false, closed = false 10 | 11 | ts.on('end', function () { 12 | assert.ok(!closed) 13 | ended = true 14 | }) 15 | ts.on('close', function () { 16 | assert.ok(ended) 17 | closed = true 18 | }) 19 | 20 | ts.write(1) 21 | ts.write(2) 22 | ts.write(3) 23 | ts.end() 24 | assert.ok(ended) 25 | assert.notOk(closed) 26 | ts.destroy() 27 | assert.ok(closed) 28 | assert.end() 29 | }) 30 | 31 | -------------------------------------------------------------------------------- /node_modules/through/test/end.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var through = require('../') 3 | 4 | // must emit end before close. 5 | 6 | test('end before close', function (assert) { 7 | var ts = through() 8 | var ended = false, closed = false 9 | 10 | ts.on('end', function () { 11 | assert.ok(!closed) 12 | ended = true 13 | }) 14 | ts.on('close', function () { 15 | assert.ok(ended) 16 | closed = true 17 | }) 18 | 19 | ts.write(1) 20 | ts.write(2) 21 | ts.write(3) 22 | ts.end() 23 | assert.ok(ended) 24 | assert.ok(closed) 25 | assert.end() 26 | }) 27 | 28 | test('end only once', function (t) { 29 | 30 | var ts = through() 31 | var ended = false, closed = false 32 | 33 | ts.on('end', function () { 34 | t.equal(ended, false) 35 | ended = true 36 | }) 37 | 38 | ts.queue(null) 39 | ts.queue(null) 40 | ts.queue(null) 41 | 42 | ts.resume() 43 | 44 | t.end() 45 | }) 46 | -------------------------------------------------------------------------------- /node_modules/through2/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .jshintrc 3 | .travis.yml -------------------------------------------------------------------------------- /node_modules/touch/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/touch/README.md: -------------------------------------------------------------------------------- 1 | # node-touch 2 | 3 | For all your node touching needs. 4 | 5 | ## Installing 6 | 7 | ```bash 8 | npm install touch 9 | ``` 10 | 11 | ## CLI Usage: 12 | 13 | See `man touch` 14 | 15 | ## API Usage: 16 | 17 | ```javascript 18 | var touch = require("touch") 19 | ``` 20 | 21 | Gives you the following functions: 22 | 23 | * `touch(filename, options, cb)` 24 | * `touch.sync(filename, options)` 25 | * `touch.ftouch(fd, options, cb)` 26 | * `touch.ftouchSync(fd, options)` 27 | 28 | ## Options 29 | 30 | * `force` like `touch -f` Boolean 31 | * `time` like `touch -t ` Can be a Date object, or any parseable 32 | Date string, or epoch ms number. 33 | * `atime` like `touch -a` Can be either a Boolean, or a Date. 34 | * `mtime` like `touch -m` Can be either a Boolean, or a Date. 35 | * `ref` like `touch -r ` Must be path to a file. 36 | * `nocreate` like `touch -c` Boolean 37 | 38 | If neither `atime` nor `mtime` are set, then both values are set. If 39 | one of them is set, then the other is not. 40 | -------------------------------------------------------------------------------- /node_modules/touch/bin/touch.js: -------------------------------------------------------------------------------- 1 | var touch = require("../touch") 2 | , fs = require("fs") 3 | , path = require("path") 4 | , nopt = require("nopt") 5 | , types = { atime: Boolean 6 | , mtime: Boolean 7 | , time: Date 8 | , ref: path 9 | , nocreate: Boolean 10 | , force: Boolean } 11 | , shorthands = { a: "--atime" 12 | , m: "--mtime" 13 | , r: "--ref" 14 | , t: "--time" 15 | , c: "--nocreate" 16 | , f: "--force" } 17 | 18 | var options = nopt(types, shorthands) 19 | 20 | var files = options.argv.remain 21 | delete options.argv 22 | 23 | files.forEach(function (file) { 24 | touch(file, options, function (er) { 25 | if (er) { 26 | console.error("bad touch!") 27 | throw er 28 | } 29 | console.error(file, fs.statSync(file)) 30 | }) 31 | }) 32 | -------------------------------------------------------------------------------- /node_modules/touch/test/sanity.js: -------------------------------------------------------------------------------- 1 | var fs = require("fs") 2 | var touch = require("../touch.js") 3 | 4 | function _ (fn) { return function (er) { 5 | if (er) throw er 6 | fn() 7 | }} 8 | 9 | touch.sync("sync") 10 | touch("async", _(function () { 11 | console.log("async", fs.statSync("async")) 12 | console.log("sync", fs.statSync("sync")) 13 | 14 | setTimeout(function () { 15 | touch.sync("sync") 16 | touch("async", _(function () { 17 | console.log("async", fs.statSync("async")) 18 | console.log("sync", fs.statSync("sync")) 19 | setTimeout(function () { 20 | touch.sync("sync") 21 | touch("async", _(function () { 22 | console.log("async", fs.statSync("async")) 23 | console.log("sync", fs.statSync("sync")) 24 | fs.unlinkSync("sync") 25 | fs.unlinkSync("async") 26 | })) 27 | }, 1000) 28 | })) 29 | }, 1000) 30 | })) 31 | 32 | -------------------------------------------------------------------------------- /node_modules/underscore.string/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | dist 3 | -------------------------------------------------------------------------------- /node_modules/underscore.string/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | 5 | before_script: 6 | - "export DISPLAY=:99.0" 7 | - "sh -e /etc/init.d/xvfb start" 8 | - sleep 2 9 | -------------------------------------------------------------------------------- /node_modules/underscore.string/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscore.string", 3 | "version": "2.4.0", 4 | "description": "String manipulation extensions for Underscore.js javascript library.", 5 | "homepage": "http://epeli.github.com/underscore.string/", 6 | "contributors": [ 7 | "Esa-Matti Suuronen (http://esa-matti.suuronen.org/)", 8 | "Edward Tsech ", 9 | "Pavel Pravosud ()", 10 | "Sasha Koss (http://koss.nocorp.me/)", 11 | "Vladimir Dronnikov ", 12 | "Pete Kruckenberg ()", 13 | "Paul Chavard ()", 14 | "Ed Finkler ()" 15 | ], 16 | "keywords": [ 17 | "underscore", 18 | "string" 19 | ], 20 | "main": "./lib/underscore.string.js", 21 | "repository": { 22 | "type": "git", 23 | "url": "https://github.com/epeli/underscore.string.git" 24 | }, 25 | "bugs": { 26 | "url": "https://github.com/epeli/underscore.string/issues" 27 | }, 28 | "licenses": [ 29 | { 30 | "type": "MIT" 31 | } 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/underscore.string/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscore.string", 3 | "repo": "epeli/underscore.string", 4 | "description": "String manipulation extensions for Underscore.js javascript library", 5 | "version": "2.4.0", 6 | "keywords": ["underscore", "string"], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/underscore.string.js", 10 | "scripts": ["lib/underscore.string.js"] 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/underscore.string/foo.js: -------------------------------------------------------------------------------- 1 | 2 | function boolMatch(s, matchers) { 3 | var i, matcher, down = s.toLowerCase(); 4 | matchers = [].concat(matchers); 5 | for (i = 0; i < matchers.length; i += 1) { 6 | matcher = matchers[i]; 7 | if (matcher.test && matcher.test(s)) return true; 8 | if (matcher && matcher.toLowerCase() === down) return true; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/underscore.string/gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'), 2 | qunit = require("gulp-qunit"), 3 | uglify = require('gulp-uglify'), 4 | clean = require('gulp-clean'), 5 | rename = require('gulp-rename'), 6 | SRC = 'lib/underscore.string.js', 7 | DEST = 'dist', 8 | MIN_FILE = 'underscore.string.min.js', 9 | TEST_SUITES = ['test/test.html', 'test/test_underscore/index.html']; 10 | 11 | gulp.task('test', function() { 12 | return gulp.src(TEST_SUITES) 13 | .pipe(qunit()); 14 | }); 15 | 16 | gulp.task('clean', function() { 17 | return gulp.src(DEST) 18 | .pipe(clean()); 19 | }); 20 | 21 | gulp.task('build', ['test', 'clean'], function() { 22 | return gulp.src(SRC) 23 | .pipe(uglify()) 24 | .pipe(rename(MIN_FILE)) 25 | .pipe(gulp.dest(DEST)); 26 | }); 27 | -------------------------------------------------------------------------------- /node_modules/underscore.string/libpeerconnection.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/goofmint/cURLtoSwagger/175ac45308fd18a2cd6bb87bb7fab17b8183b0b6/node_modules/underscore.string/libpeerconnection.log -------------------------------------------------------------------------------- /node_modules/underscore/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative 2 | Reporters & Editors 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | 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 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/underscore/README.md: -------------------------------------------------------------------------------- 1 | __ 2 | /\ \ __ 3 | __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____ 4 | /\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\ 5 | \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\ 6 | \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/ 7 | \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/ 8 | \ \____/ 9 | \/___/ 10 | 11 | Underscore.js is a utility-belt library for JavaScript that provides 12 | support for the usual functional suspects (each, map, reduce, filter...) 13 | without extending any core JavaScript objects. 14 | 15 | For Docs, License, Tests, and pre-packed downloads, see: 16 | http://underscorejs.org 17 | 18 | Underscore is an open-sourced component of DocumentCloud: 19 | https://github.com/documentcloud 20 | 21 | Many thanks to our contributors: 22 | https://github.com/jashkenas/underscore/contributors 23 | -------------------------------------------------------------------------------- /node_modules/xmlhttprequest/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "browser": false, 4 | "esnext": true, 5 | "bitwise": false, 6 | "camelcase": true, 7 | "curly": true, 8 | "eqeqeq": true, 9 | "eqnull": true, 10 | "immed": true, 11 | "indent": 2, 12 | "latedef": true, 13 | "laxbreak": true, 14 | "newcap": true, 15 | "noarg": true, 16 | "quotmark": "double", 17 | "regexp": true, 18 | "undef": true, 19 | "unused": true, 20 | "strict": true, 21 | "trailing": true, 22 | "smarttabs": true, 23 | "globals": { 24 | "define": false 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/xmlhttprequest/.npmignore: -------------------------------------------------------------------------------- 1 | example 2 | tests 3 | 4 | autotest.watchr 5 | -------------------------------------------------------------------------------- /node_modules/xmlhttprequest/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 passive.ly LLC 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/xtend/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "maxdepth": 4, 3 | "maxstatements": 200, 4 | "maxcomplexity": 12, 5 | "maxlen": 80, 6 | "maxparams": 5, 7 | 8 | "curly": true, 9 | "eqeqeq": true, 10 | "immed": true, 11 | "latedef": false, 12 | "noarg": true, 13 | "noempty": true, 14 | "nonew": true, 15 | "undef": true, 16 | "unused": "vars", 17 | "trailing": true, 18 | 19 | "quotmark": true, 20 | "expr": true, 21 | "asi": true, 22 | 23 | "browser": false, 24 | "esnext": true, 25 | "devel": false, 26 | "node": false, 27 | "nonstandard": false, 28 | 29 | "predef": ["require", "module", "__dirname", "__filename"] 30 | } 31 | -------------------------------------------------------------------------------- /node_modules/xtend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/xtend/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014 Raynos. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/xtend/Makefile: -------------------------------------------------------------------------------- 1 | browser: 2 | node ./support/compile 3 | 4 | .PHONY: browser -------------------------------------------------------------------------------- /node_modules/xtend/README.md: -------------------------------------------------------------------------------- 1 | # xtend 2 | 3 | [![browser support][3]][4] 4 | 5 | [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) 6 | 7 | Extend like a boss 8 | 9 | xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence. 10 | 11 | ## Examples 12 | 13 | ```js 14 | var extend = require("xtend") 15 | 16 | // extend returns a new object. Does not mutate arguments 17 | var combination = extend({ 18 | a: "a", 19 | b: 'c' 20 | }, { 21 | b: "b" 22 | }) 23 | // { a: "a", b: "b" } 24 | ``` 25 | 26 | ## Stability status: Locked 27 | 28 | ## MIT Licenced 29 | 30 | 31 | [3]: http://ci.testling.com/Raynos/xtend.png 32 | [4]: http://ci.testling.com/Raynos/xtend 33 | -------------------------------------------------------------------------------- /node_modules/xtend/immutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend() { 6 | var target = {} 7 | 8 | for (var i = 0; i < arguments.length; i++) { 9 | var source = arguments[i] 10 | 11 | for (var key in source) { 12 | if (hasOwnProperty.call(source, key)) { 13 | target[key] = source[key] 14 | } 15 | } 16 | } 17 | 18 | return target 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/xtend/mutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | var hasOwnProperty = Object.prototype.hasOwnProperty; 4 | 5 | function extend(target) { 6 | for (var i = 1; i < arguments.length; i++) { 7 | var source = arguments[i] 8 | 9 | for (var key in source) { 10 | if (hasOwnProperty.call(source, key)) { 11 | target[key] = source[key] 12 | } 13 | } 14 | } 15 | 16 | return target 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/yaml-to-json/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .AppleDouble 3 | .LSOverride 4 | 5 | # Icon must end with two \r 6 | Icon 7 | 8 | 9 | # Thumbnails 10 | ._* 11 | 12 | # Files that might appear on external disk 13 | .Spotlight-V100 14 | .Trashes 15 | 16 | # Directories potentially created on remote AFP share 17 | .AppleDB 18 | .AppleDesktop 19 | Network Trash Folder 20 | Temporary Items 21 | .apdisk 22 | # Logs 23 | logs 24 | *.log 25 | 26 | # Runtime data 27 | pids 28 | *.pid 29 | *.seed 30 | 31 | # Directory for instrumented libs generated by jscoverage/JSCover 32 | lib-cov 33 | 34 | # Coverage directory used by tools like istanbul 35 | coverage 36 | 37 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 38 | .grunt 39 | 40 | # Compiled binary addons (http://nodejs.org/api/addons.html) 41 | build/Release 42 | 43 | # Dependency directory 44 | # Commenting this out is preferred by some people, see 45 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- 46 | node_modules 47 | 48 | # Users Environment Variables 49 | .lock-wscript 50 | 51 | # test output 52 | test/build -------------------------------------------------------------------------------- /node_modules/yaml-to-json/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.11' 5 | matrix: 6 | allow_failures: 7 | - node_js: '0.11' -------------------------------------------------------------------------------- /node_modules/yaml-to-json/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014, Stijn Debrouwere 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- /node_modules/yaml-to-json/Makefile: -------------------------------------------------------------------------------- 1 | all: build 2 | 3 | .PHONY: build 4 | build: 5 | coffee --output lib --compile src 6 | 7 | test: build 8 | rm -rf test/build 9 | mocha test \ 10 | --require should \ 11 | --compilers coffee:coffee-script/register 12 | -------------------------------------------------------------------------------- /node_modules/yaml-to-json/bin/yaml2json: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('../lib/command'); -------------------------------------------------------------------------------- /node_modules/yaml-to-json/examples/antananarivo.textile: -------------------------------------------------------------------------------- 1 | --- 2 | title: Antananarivo 3 | --- 4 | 5 | h1. Antananarivo 6 | 7 | Antananarivo, formerly French _Tananarive_, is the capital and largest city in "Madagascar":http://en.wikipedia.org/wiki/Madagascar. -------------------------------------------------------------------------------- /node_modules/yaml-to-json/examples/data.yml: -------------------------------------------------------------------------------- 1 | description: | 2 | Shop for clothing online! 3 | categories: 4 | - hats 5 | - shirts 6 | - pants 7 | - shoes 8 | -------------------------------------------------------------------------------- /node_modules/yaml-to-json/examples/musicman.md: -------------------------------------------------------------------------------- 1 | --- 2 | block: metadata 3 | title: The Music Man 4 | year: 1962 5 | --- 6 | Plot: In July 1912, a traveling salesman, "Professor" Harold Hill (Robert Preston), arrives in the fictional location of **River City, Iowa**, intrigued by the challenge of swindling the famously stubborn natives of Iowa. 7 | --- 8 | block: cast 9 | actors: 10 | - Robert Preston 11 | - Shirley Jones 12 | --- 13 | In 2005, The Music Man was selected for preservation in the _United States National Film Registry_ by the Library of Congress as being "culturally, historically, or aesthetically significant". 14 | --- 15 | block: disambiguation 16 | alternatives: 17 | - The Music Man _(2003 film)_ 18 | - Music Man _(company)_, a guitar company 19 | - The Music Man is the English name for the Iranian film Santouri _(film)_ -------------------------------------------------------------------------------- /node_modules/yaml-to-json/examples/tegucigalpa.adoc: -------------------------------------------------------------------------------- 1 | --- 2 | title: Tegucigalpa 3 | --- 4 | 5 | During the short-lived Constitution of the http://en.wikipedia.org/wiki/Greater_Republic_of_Central_America[Republic of Central America] of 1821, Tegucigalpa served as a Federal District and capital of then-newly formed as one nation: the states of *El Salvador*, *Guatemala* and *Honduras*. 6 | 7 | == Aftermath 8 | 9 | After this failed attempt to maintain a Central American republic, Honduras returned to become an individual sovereign nation and on January 30, 1937, Article 179 of the 1936 Honduran Constitution was reformed under Decree 53 to established Tegucigalpa and Comayagüela as a Central District. -------------------------------------------------------------------------------- /node_modules/yaml-to-json/lib/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.8.0 2 | (function() { 3 | var markup, yaml, _; 4 | 5 | _ = require('underscore'); 6 | 7 | _.str = require('underscore.string'); 8 | 9 | yaml = require('./yaml'); 10 | 11 | markup = require('./markup'); 12 | 13 | module.exports = function(raw, options) { 14 | var conversionOptions, convert, docs; 15 | if (options == null) { 16 | options = {}; 17 | } 18 | if (options.prose) { 19 | _.extend(options, { 20 | fussy: true, 21 | convert: true, 22 | keepRaw: true 23 | }); 24 | } 25 | if (options.prose && !yaml.isMultidoc(raw)) { 26 | throw new Error("Can only humanize YAML files that contain both frontmatter and content."); 27 | } 28 | if (options.fussy) { 29 | docs = yaml.safeLoadMixed(raw); 30 | } else { 31 | docs = yaml.safeLoadAll(raw); 32 | } 33 | if (options.convert || options.convertAll) { 34 | conversionOptions = { 35 | format: options.format || 'noop', 36 | recursive: options.convertAll, 37 | keepRaw: options.keepRaw 38 | }; 39 | convert = _.partial(markup.object, _, conversionOptions); 40 | docs = _.map(docs, convert); 41 | } 42 | if (options.prose) { 43 | docs = _.extend(docs[0], docs[1], { 44 | more: docs.slice(2) 45 | }); 46 | } 47 | if (yaml.isMultidoc(raw)) { 48 | return docs; 49 | } else { 50 | return docs[0]; 51 | } 52 | }; 53 | 54 | module.exports.yaml = yaml; 55 | 56 | }).call(this); 57 | -------------------------------------------------------------------------------- /node_modules/yaml-to-json/src/index.coffee: -------------------------------------------------------------------------------- 1 | _ = require 'underscore' 2 | _.str = require 'underscore.string' 3 | yaml = require './yaml' 4 | # markup perhaps isn't the right name for this, 5 | # consider that it's actually converting *from* 6 | # markup *to* html 7 | markup = require './markup' 8 | 9 | module.exports = (raw, options={}) -> 10 | if options.prose 11 | _.extend options, 12 | fussy: yes 13 | convert: yes 14 | keepRaw: yes 15 | 16 | if options.prose and not yaml.isMultidoc raw 17 | throw new Error \ 18 | "Can only humanize YAML files that contain both frontmatter and content." 19 | 20 | if options.fussy 21 | docs = yaml.safeLoadMixed raw 22 | else 23 | docs = yaml.safeLoadAll raw 24 | 25 | if options.convert or options.convertAll 26 | conversionOptions = 27 | format: options.format or 'noop' 28 | recursive: options.convertAll 29 | keepRaw: options.keepRaw 30 | convert = _.partial markup.object, _, conversionOptions 31 | docs = _.map docs, convert 32 | 33 | if options.prose 34 | docs = _.extend docs[0], docs[1], more: docs[2..] 35 | 36 | if yaml.isMultidoc raw 37 | docs 38 | else 39 | docs[0] 40 | 41 | module.exports.yaml = yaml 42 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "curl2swagger", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "script.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "MIT", 11 | "dependencies": { 12 | "garlic": "0.0.3", 13 | "jquery": "^3.1.0", 14 | "js-yaml": "^3.6.1", 15 | "json2yaml": "^1.1.0", 16 | "mustache": "^2.2.1", 17 | "parse-curl": "^0.2.5", 18 | "yaml-to-json": "^0.3.0" 19 | } 20 | } 21 | --------------------------------------------------------------------------------