├── config.js ├── node_modules ├── .bin │ ├── har-validator │ ├── mime │ ├── sshpk-conv │ ├── sshpk-sign │ ├── sshpk-verify │ └── uuid ├── ansi-regex │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── ansi-styles │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── asn1 │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── ber │ │ │ ├── errors.js │ │ │ ├── index.js │ │ │ ├── reader.js │ │ │ ├── types.js │ │ │ └── writer.js │ │ └── index.js │ ├── package.json │ └── tst │ │ └── ber │ │ ├── reader.test.js │ │ └── writer.test.js ├── assert-plus │ ├── AUTHORS │ ├── CHANGES.md │ ├── README.md │ ├── assert.js │ └── package.json ├── asynckit │ ├── LICENSE │ ├── README.md │ ├── bench.js │ ├── index.js │ ├── lib │ │ ├── abort.js │ │ ├── async.js │ │ ├── defer.js │ │ ├── iterate.js │ │ ├── readable_asynckit.js │ │ ├── readable_parallel.js │ │ ├── readable_serial.js │ │ ├── readable_serial_ordered.js │ │ ├── state.js │ │ ├── streamify.js │ │ └── terminator.js │ ├── package.json │ ├── parallel.js │ ├── serial.js │ ├── serialOrdered.js │ └── stream.js ├── aws-sign2 │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── aws4 │ ├── .npmignore │ ├── .tern-port │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── aws4.js │ ├── lru.js │ └── package.json ├── bcrypt-pbkdf │ ├── README.md │ ├── index.js │ └── package.json ├── bluebird │ ├── LICENSE │ ├── README.md │ ├── changelog.md │ ├── js │ │ ├── browser │ │ │ ├── bluebird.core.js │ │ │ ├── bluebird.core.min.js │ │ │ ├── bluebird.js │ │ │ └── bluebird.min.js │ │ └── release │ │ │ ├── any.js │ │ │ ├── assert.js │ │ │ ├── async.js │ │ │ ├── bind.js │ │ │ ├── bluebird.js │ │ │ ├── call_get.js │ │ │ ├── cancel.js │ │ │ ├── catch_filter.js │ │ │ ├── context.js │ │ │ ├── debuggability.js │ │ │ ├── direct_resolve.js │ │ │ ├── each.js │ │ │ ├── errors.js │ │ │ ├── es5.js │ │ │ ├── filter.js │ │ │ ├── finally.js │ │ │ ├── generators.js │ │ │ ├── join.js │ │ │ ├── map.js │ │ │ ├── method.js │ │ │ ├── nodeback.js │ │ │ ├── nodeify.js │ │ │ ├── promise.js │ │ │ ├── promise_array.js │ │ │ ├── promisify.js │ │ │ ├── props.js │ │ │ ├── queue.js │ │ │ ├── race.js │ │ │ ├── reduce.js │ │ │ ├── schedule.js │ │ │ ├── settle.js │ │ │ ├── some.js │ │ │ ├── synchronous_inspection.js │ │ │ ├── thenables.js │ │ │ ├── timers.js │ │ │ ├── using.js │ │ │ └── util.js │ └── package.json ├── boom │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── images │ │ └── boom.png │ ├── lib │ │ └── index.js │ ├── package.json │ └── test │ │ └── index.js ├── caseless │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── chalk │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── combined-stream │ ├── License │ ├── Readme.md │ ├── lib │ │ └── combined_stream.js │ └── package.json ├── commander │ ├── History.md │ ├── LICENSE │ ├── Readme.md │ ├── index.js │ └── package.json ├── cryptiles │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── package.json │ └── test │ │ └── index.js ├── dashdash │ ├── CHANGES.md │ ├── LICENSE.txt │ ├── README.md │ ├── etc │ │ └── dashdash.bash_completion.in │ ├── lib │ │ └── dashdash.js │ ├── node_modules │ │ └── assert-plus │ │ │ ├── AUTHORS │ │ │ ├── CHANGES.md │ │ │ ├── README.md │ │ │ ├── assert.js │ │ │ └── package.json │ └── package.json ├── delayed-stream │ ├── .npmignore │ ├── License │ ├── Makefile │ ├── Readme.md │ ├── lib │ │ └── delayed_stream.js │ └── package.json ├── ecc-jsbn │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── LICENSE-jsbn │ │ ├── ec.js │ │ └── sec.js │ ├── package.json │ └── test.js ├── escape-string-regexp │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── extend │ ├── .eslintrc │ ├── .jscs.json │ ├── .npmignore │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── component.json │ ├── index.js │ └── package.json ├── extsprintf │ ├── .gitmodules │ ├── LICENSE │ ├── Makefile │ ├── Makefile.deps │ ├── Makefile.targ │ ├── README.md │ ├── examples │ │ └── simple.js │ ├── jsl.node.conf │ ├── lib │ │ └── extsprintf.js │ └── package.json ├── forever-agent │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── form-data │ ├── License │ ├── README.md │ ├── lib │ │ ├── browser.js │ │ ├── form_data.js │ │ └── populate.js │ └── package.json ├── generate-function │ ├── .npmignore │ ├── .travis.yml │ ├── README.md │ ├── example.js │ ├── index.js │ ├── package.json │ └── test.js ├── generate-object-property │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── getpass │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── index.js │ ├── node_modules │ │ └── assert-plus │ │ │ ├── AUTHORS │ │ │ ├── CHANGES.md │ │ │ ├── README.md │ │ │ ├── assert.js │ │ │ └── package.json │ └── package.json ├── graceful-readlink │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── har-validator │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── har-validator │ ├── lib │ │ ├── async.js │ │ ├── error.js │ │ ├── index.js │ │ ├── runner.js │ │ └── schemas │ │ │ ├── cache.json │ │ │ ├── cacheEntry.json │ │ │ ├── content.json │ │ │ ├── cookie.json │ │ │ ├── creator.json │ │ │ ├── entry.json │ │ │ ├── har.json │ │ │ ├── index.js │ │ │ ├── log.json │ │ │ ├── page.json │ │ │ ├── pageTimings.json │ │ │ ├── postData.json │ │ │ ├── record.json │ │ │ ├── request.json │ │ │ ├── response.json │ │ │ └── timings.json │ └── package.json ├── has-ansi │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── hawk │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── component.json │ ├── dist │ │ └── client.js │ ├── example │ │ └── usage.js │ ├── images │ │ ├── hawk.png │ │ └── logo.png │ ├── lib │ │ ├── browser.js │ │ ├── client.js │ │ ├── crypto.js │ │ ├── index.js │ │ ├── server.js │ │ └── utils.js │ ├── package.json │ └── test │ │ ├── browser.js │ │ ├── client.js │ │ ├── crypto.js │ │ ├── index.js │ │ ├── readme.js │ │ ├── server.js │ │ ├── uri.js │ │ └── utils.js ├── hoek │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── images │ │ └── hoek.png │ ├── lib │ │ ├── escape.js │ │ └── index.js │ ├── package.json │ └── test │ │ ├── escaper.js │ │ ├── index.js │ │ └── modules │ │ ├── ignore.txt │ │ ├── test1.js │ │ ├── test2.js │ │ └── test3.js ├── http-signature │ ├── .dir-locals.el │ ├── .npmignore │ ├── CHANGES.md │ ├── LICENSE │ ├── README.md │ ├── http_signing.md │ ├── lib │ │ ├── index.js │ │ ├── parser.js │ │ ├── signer.js │ │ ├── utils.js │ │ └── verify.js │ └── package.json ├── is-my-json-valid │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── example.js │ ├── formats.js │ ├── index.js │ ├── package.json │ ├── require.js │ └── test │ │ ├── fixtures │ │ └── cosmic.js │ │ ├── json-schema-draft4 │ │ ├── additionalItems.json │ │ ├── additionalProperties.json │ │ ├── allOf.json │ │ ├── anyOf.json │ │ ├── bignum.json │ │ ├── default.json │ │ ├── definitions.json │ │ ├── dependencies.json │ │ ├── enum.json │ │ ├── format.json │ │ ├── items.json │ │ ├── maxItems.json │ │ ├── maxLength.json │ │ ├── maxProperties.json │ │ ├── maximum.json │ │ ├── minItems.json │ │ ├── minLength.json │ │ ├── minProperties.json │ │ ├── minimum.json │ │ ├── multipleOf.json │ │ ├── not.json │ │ ├── nullAndFormat.json │ │ ├── nullAndObject.json │ │ ├── oneOf.json │ │ ├── pattern.json │ │ ├── patternProperties.json │ │ ├── properties.json │ │ ├── ref.json │ │ ├── refRemote.json │ │ ├── required.json │ │ ├── type.json │ │ └── uniqueItems.json │ │ ├── json-schema.js │ │ └── misc.js ├── is-property │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── is-property.js │ └── package.json ├── is-typedarray │ ├── LICENSE.md │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── isstream │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.md │ ├── README.md │ ├── isstream.js │ ├── package.json │ └── test.js ├── jodid25519 │ ├── .npmignore │ ├── .travis.yml │ ├── AUTHORS.md │ ├── LICENSE │ ├── README.md │ ├── almond.0 │ ├── almond.1 │ ├── index.js │ ├── jsdoc.json │ ├── lib │ │ ├── core.js │ │ ├── curve255.js │ │ ├── dh.js │ │ ├── eddsa.js │ │ └── utils.js │ └── package.json ├── jsbn │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── example.html │ ├── example.js │ ├── index.js │ └── package.json ├── json-schema │ ├── README.md │ ├── draft-00 │ │ ├── hyper-schema │ │ ├── json-ref │ │ ├── links │ │ └── schema │ ├── draft-01 │ │ ├── hyper-schema │ │ ├── json-ref │ │ ├── links │ │ └── schema │ ├── draft-02 │ │ ├── hyper-schema │ │ ├── json-ref │ │ ├── links │ │ └── schema │ ├── draft-03 │ │ ├── examples │ │ │ ├── address │ │ │ ├── calendar │ │ │ ├── card │ │ │ ├── geo │ │ │ └── interfaces │ │ ├── hyper-schema │ │ ├── json-ref │ │ ├── links │ │ └── schema │ ├── draft-04 │ │ ├── hyper-schema │ │ ├── links │ │ └── schema │ ├── draft-zyp-json-schema-03.xml │ ├── draft-zyp-json-schema-04.xml │ ├── lib │ │ ├── links.js │ │ └── validate.js │ ├── package.json │ └── test │ │ └── tests.js ├── json-stringify-safe │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── package.json │ ├── stringify.js │ └── test │ │ ├── mocha.opts │ │ └── stringify_test.js ├── jsonpointer │ ├── LICENSE.md │ ├── README.md │ ├── jsonpointer.js │ └── package.json ├── jsprim │ ├── CHANGES.md │ ├── LICENSE │ ├── README.md │ ├── lib │ │ └── jsprim.js │ └── package.json ├── mime-db │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── db.json │ ├── index.js │ └── package.json ├── mime-types │ ├── HISTORY.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── mime │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── build │ │ ├── build.js │ │ └── test.js │ ├── cli.js │ ├── mime.js │ ├── package.json │ └── types.json ├── oauth-sign │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── pinkie-promise │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── pinkie │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── punycode │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── package.json │ └── punycode.js ├── qs │ ├── .eslintignore │ ├── .eslintrc │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── dist │ │ └── qs.js │ ├── lib │ │ ├── formats.js │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js │ ├── package.json │ └── test │ │ ├── .eslintrc │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js ├── request │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── auth.js │ │ ├── cookies.js │ │ ├── getProxyFromURI.js │ │ ├── har.js │ │ ├── helpers.js │ │ ├── multipart.js │ │ ├── oauth.js │ │ ├── querystring.js │ │ ├── redirect.js │ │ └── tunnel.js │ ├── package.json │ └── request.js ├── sntp │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── examples │ │ ├── offset.js │ │ └── time.js │ ├── index.js │ ├── lib │ │ └── index.js │ ├── package.json │ └── test │ │ └── index.js ├── sshpk │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── bin │ │ ├── sshpk-conv │ │ ├── sshpk-sign │ │ └── sshpk-verify │ ├── lib │ │ ├── algs.js │ │ ├── certificate.js │ │ ├── dhe.js │ │ ├── ed-compat.js │ │ ├── errors.js │ │ ├── fingerprint.js │ │ ├── formats │ │ │ ├── auto.js │ │ │ ├── openssh-cert.js │ │ │ ├── pem.js │ │ │ ├── pkcs1.js │ │ │ ├── pkcs8.js │ │ │ ├── rfc4253.js │ │ │ ├── ssh-private.js │ │ │ ├── ssh.js │ │ │ ├── x509-pem.js │ │ │ └── x509.js │ │ ├── identity.js │ │ ├── index.js │ │ ├── key.js │ │ ├── private-key.js │ │ ├── signature.js │ │ ├── ssh-buffer.js │ │ └── utils.js │ ├── man │ │ └── man1 │ │ │ ├── sshpk-conv.1 │ │ │ ├── sshpk-sign.1 │ │ │ └── sshpk-verify.1 │ ├── node_modules │ │ └── assert-plus │ │ │ ├── AUTHORS │ │ │ ├── CHANGES.md │ │ │ ├── README.md │ │ │ ├── assert.js │ │ │ └── package.json │ └── package.json ├── stringstream │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE.txt │ ├── README.md │ ├── example.js │ ├── package.json │ └── stringstream.js ├── strip-ansi │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── supports-color │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── tough-cookie │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── cookie.js │ │ ├── memstore.js │ │ ├── pathMatch.js │ │ ├── permuteDomain.js │ │ ├── pubsuffix.js │ │ └── store.js │ └── package.json ├── tunnel-agent │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── tweetnacl │ ├── .npmignore │ ├── AUTHORS.md │ ├── CHANGELOG.md │ ├── LICENSE │ ├── PULL_REQUEST_TEMPLATE.md │ ├── README.md │ ├── nacl-fast.js │ ├── nacl-fast.min.js │ ├── nacl.d.ts │ ├── nacl.js │ ├── nacl.min.js │ └── package.json ├── twit │ ├── .npmignore │ ├── README.md │ ├── examples │ │ ├── bot.js │ │ └── rtd2.js │ ├── lib │ │ ├── endpoints.js │ │ ├── file_uploader.js │ │ ├── helpers.js │ │ ├── parser.js │ │ ├── settings.js │ │ ├── streaming-api-connection.js │ │ └── twitter.js │ ├── package.json │ └── tests │ │ ├── helpers.js │ │ ├── img │ │ ├── bigbird.jpg │ │ ├── cutebird.png │ │ ├── snoopy-animated.gif │ │ └── twitterbird.gif │ │ ├── multiple-conn.js │ │ ├── rest.js │ │ ├── rest_app_only_auth.js │ │ ├── rest_chunked_upload.js │ │ ├── streaming.js │ │ ├── test_helpers.js │ │ ├── twit.js │ │ ├── user_stream.js │ │ └── video │ │ └── station.mp4 ├── uuid │ ├── .npmignore │ ├── .travis.yml │ ├── AUTHORS │ ├── HISTORY.md │ ├── LICENSE.md │ ├── README.md │ ├── bin │ │ └── uuid │ ├── index.js │ ├── lib │ │ ├── bytesToUuid.js │ │ ├── rng-browser.js │ │ └── rng.js │ ├── package.json │ ├── test │ │ ├── mocha.opts │ │ └── test.js │ ├── v1.js │ └── v4.js ├── verror │ ├── .gitmodules │ ├── .npmignore │ ├── LICENSE │ ├── Makefile │ ├── Makefile.targ │ ├── README.md │ ├── examples │ │ ├── levels-verror.js │ │ ├── levels-werror.js │ │ ├── varargs.js │ │ ├── verror.js │ │ └── werror.js │ ├── jsl.node.conf │ ├── lib │ │ └── verror.js │ ├── package.json │ └── tests │ │ ├── tst.inherit.js │ │ ├── tst.verror.js │ │ └── tst.werror.js └── xtend │ ├── .jshintrc │ ├── .npmignore │ ├── LICENCE │ ├── Makefile │ ├── README.md │ ├── immutable.js │ ├── mutable.js │ ├── package.json │ └── test.js ├── package.json ├── post-tweet.js ├── schedule-tweet.js ├── search.js └── stream.js /config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | consumer_key: 'YOUR_KEY', 3 | consumer_secret: 'YOUR_SECRET_KEY', 4 | access_token: 'ACCESS_TOKEN', 5 | access_token_secret: 'ACCESS_TOKEN_SECRET' 6 | } 7 | -------------------------------------------------------------------------------- /node_modules/.bin/har-validator: -------------------------------------------------------------------------------- 1 | ../har-validator/bin/har-validator -------------------------------------------------------------------------------- /node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | ../mime/cli.js -------------------------------------------------------------------------------- /node_modules/.bin/sshpk-conv: -------------------------------------------------------------------------------- 1 | ../sshpk/bin/sshpk-conv -------------------------------------------------------------------------------- /node_modules/.bin/sshpk-sign: -------------------------------------------------------------------------------- 1 | ../sshpk/bin/sshpk-sign -------------------------------------------------------------------------------- /node_modules/.bin/sshpk-verify: -------------------------------------------------------------------------------- 1 | ../sshpk/bin/sshpk-verify -------------------------------------------------------------------------------- /node_modules/.bin/uuid: -------------------------------------------------------------------------------- 1 | ../uuid/bin/uuid -------------------------------------------------------------------------------- /node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g; 4 | }; 5 | -------------------------------------------------------------------------------- /node_modules/ansi-regex/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/ansi-styles/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/asn1/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /node_modules/asn1/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - 0.10 5 | -------------------------------------------------------------------------------- /node_modules/asn1/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Mark Cavage, 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 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/asn1/README.md: -------------------------------------------------------------------------------- 1 | node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS. 2 | Currently BER encoding is supported; at some point I'll likely have to do DER. 3 | 4 | ## Usage 5 | 6 | Mostly, if you're *actually* needing to read and write ASN.1, you probably don't 7 | need this readme to explain what and why. If you have no idea what ASN.1 is, 8 | see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc 9 | 10 | The source is pretty much self-explanatory, and has read/write methods for the 11 | common types out there. 12 | 13 | ### Decoding 14 | 15 | The following reads an ASN.1 sequence with a boolean. 16 | 17 | var Ber = require('asn1').Ber; 18 | 19 | var reader = new Ber.Reader(new Buffer([0x30, 0x03, 0x01, 0x01, 0xff])); 20 | 21 | reader.readSequence(); 22 | console.log('Sequence len: ' + reader.length); 23 | if (reader.peek() === Ber.Boolean) 24 | console.log(reader.readBoolean()); 25 | 26 | ### Encoding 27 | 28 | The following generates the same payload as above. 29 | 30 | var Ber = require('asn1').Ber; 31 | 32 | var writer = new Ber.Writer(); 33 | 34 | writer.startSequence(); 35 | writer.writeBoolean(true); 36 | writer.endSequence(); 37 | 38 | console.log(writer.buffer); 39 | 40 | ## Installation 41 | 42 | npm install asn1 43 | 44 | ## License 45 | 46 | MIT. 47 | 48 | ## Bugs 49 | 50 | See . 51 | -------------------------------------------------------------------------------- /node_modules/asn1/lib/ber/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | 6 | newInvalidAsn1Error: function(msg) { 7 | var e = new Error(); 8 | e.name = 'InvalidAsn1Error'; 9 | e.message = msg || ''; 10 | return e; 11 | } 12 | 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/asn1/lib/ber/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | var errors = require('./errors'); 4 | var types = require('./types'); 5 | 6 | var Reader = require('./reader'); 7 | var Writer = require('./writer'); 8 | 9 | 10 | ///--- Exports 11 | 12 | module.exports = { 13 | 14 | Reader: Reader, 15 | 16 | Writer: Writer 17 | 18 | }; 19 | 20 | for (var t in types) { 21 | if (types.hasOwnProperty(t)) 22 | module.exports[t] = types[t]; 23 | } 24 | for (var e in errors) { 25 | if (errors.hasOwnProperty(e)) 26 | module.exports[e] = errors[e]; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/asn1/lib/ber/types.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | EOC: 0, 6 | Boolean: 1, 7 | Integer: 2, 8 | BitString: 3, 9 | OctetString: 4, 10 | Null: 5, 11 | OID: 6, 12 | ObjectDescriptor: 7, 13 | External: 8, 14 | Real: 9, // float 15 | Enumeration: 10, 16 | PDV: 11, 17 | Utf8String: 12, 18 | RelativeOID: 13, 19 | Sequence: 16, 20 | Set: 17, 21 | NumericString: 18, 22 | PrintableString: 19, 23 | T61String: 20, 24 | VideotexString: 21, 25 | IA5String: 22, 26 | UTCTime: 23, 27 | GeneralizedTime: 24, 28 | GraphicString: 25, 29 | VisibleString: 26, 30 | GeneralString: 28, 31 | UniversalString: 29, 32 | CharacterString: 30, 33 | BMPString: 31, 34 | Constructor: 32, 35 | Context: 128 36 | }; 37 | -------------------------------------------------------------------------------- /node_modules/asn1/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | // If you have no idea what ASN.1 or BER is, see this: 4 | // ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc 5 | 6 | var Ber = require('./ber/index'); 7 | 8 | 9 | 10 | ///--- Exported API 11 | 12 | module.exports = { 13 | 14 | Ber: Ber, 15 | 16 | BerReader: Ber.Reader, 17 | 18 | BerWriter: Ber.Writer 19 | 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/assert-plus/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Eddy 2 | Fred Kuo 3 | Lars-Magnus Skog 4 | Mark Cavage 5 | Patrick Mooney 6 | Rob Gulewich 7 | -------------------------------------------------------------------------------- /node_modules/assert-plus/CHANGES.md: -------------------------------------------------------------------------------- 1 | # assert-plus Changelog 2 | 3 | ## 0.2.0 4 | 5 | - Fix `assert.object(null)` so it throws 6 | - Fix optional/arrayOf exports for non-type-of asserts 7 | - Add optiona/arrayOf exports for Stream/Date/Regex/uuid 8 | - Add basic unit test coverage 9 | -------------------------------------------------------------------------------- /node_modules/asynckit/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Alex Indigo 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 | -------------------------------------------------------------------------------- /node_modules/asynckit/index.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | { 3 | parallel : require('./parallel.js'), 4 | serial : require('./serial.js'), 5 | serialOrdered : require('./serialOrdered.js') 6 | }; 7 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/abort.js: -------------------------------------------------------------------------------- 1 | // API 2 | module.exports = abort; 3 | 4 | /** 5 | * Aborts leftover active jobs 6 | * 7 | * @param {object} state - current state object 8 | */ 9 | function abort(state) 10 | { 11 | Object.keys(state.jobs).forEach(clean.bind(state)); 12 | 13 | // reset leftover jobs 14 | state.jobs = {}; 15 | } 16 | 17 | /** 18 | * Cleans up leftover job by invoking abort function for the provided job id 19 | * 20 | * @this state 21 | * @param {string|number} key - job id to abort 22 | */ 23 | function clean(key) 24 | { 25 | if (typeof this.jobs[key] == 'function') 26 | { 27 | this.jobs[key](); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/async.js: -------------------------------------------------------------------------------- 1 | var defer = require('./defer.js'); 2 | 3 | // API 4 | module.exports = async; 5 | 6 | /** 7 | * Runs provided callback asynchronously 8 | * even if callback itself is not 9 | * 10 | * @param {function} callback - callback to invoke 11 | * @returns {function} - augmented callback 12 | */ 13 | function async(callback) 14 | { 15 | var isAsync = false; 16 | 17 | // check if async happened 18 | defer(function() { isAsync = true; }); 19 | 20 | return function async_callback(err, result) 21 | { 22 | if (isAsync) 23 | { 24 | callback(err, result); 25 | } 26 | else 27 | { 28 | defer(function nextTick_callback() 29 | { 30 | callback(err, result); 31 | }); 32 | } 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/defer.js: -------------------------------------------------------------------------------- 1 | module.exports = defer; 2 | 3 | /** 4 | * Runs provided function on next iteration of the event loop 5 | * 6 | * @param {function} fn - function to run 7 | */ 8 | function defer(fn) 9 | { 10 | var nextTick = typeof setImmediate == 'function' 11 | ? setImmediate 12 | : ( 13 | typeof process == 'object' && typeof process.nextTick == 'function' 14 | ? process.nextTick 15 | : null 16 | ); 17 | 18 | if (nextTick) 19 | { 20 | nextTick(fn); 21 | } 22 | else 23 | { 24 | setTimeout(fn, 0); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/readable_parallel.js: -------------------------------------------------------------------------------- 1 | var parallel = require('../parallel.js'); 2 | 3 | // API 4 | module.exports = ReadableParallel; 5 | 6 | /** 7 | * Streaming wrapper to `asynckit.parallel` 8 | * 9 | * @param {array|object} list - array or object (named list) to iterate over 10 | * @param {function} iterator - iterator to run 11 | * @param {function} callback - invoked when all elements processed 12 | * @returns {stream.Readable#} 13 | */ 14 | function ReadableParallel(list, iterator, callback) 15 | { 16 | if (!(this instanceof ReadableParallel)) 17 | { 18 | return new ReadableParallel(list, iterator, callback); 19 | } 20 | 21 | // turn on object mode 22 | ReadableParallel.super_.call(this, {objectMode: true}); 23 | 24 | this._start(parallel, list, iterator, callback); 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/readable_serial.js: -------------------------------------------------------------------------------- 1 | var serial = require('../serial.js'); 2 | 3 | // API 4 | module.exports = ReadableSerial; 5 | 6 | /** 7 | * Streaming wrapper to `asynckit.serial` 8 | * 9 | * @param {array|object} list - array or object (named list) to iterate over 10 | * @param {function} iterator - iterator to run 11 | * @param {function} callback - invoked when all elements processed 12 | * @returns {stream.Readable#} 13 | */ 14 | function ReadableSerial(list, iterator, callback) 15 | { 16 | if (!(this instanceof ReadableSerial)) 17 | { 18 | return new ReadableSerial(list, iterator, callback); 19 | } 20 | 21 | // turn on object mode 22 | ReadableSerial.super_.call(this, {objectMode: true}); 23 | 24 | this._start(serial, list, iterator, callback); 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/readable_serial_ordered.js: -------------------------------------------------------------------------------- 1 | var serialOrdered = require('../serialOrdered.js'); 2 | 3 | // API 4 | module.exports = ReadableSerialOrdered; 5 | // expose sort helpers 6 | module.exports.ascending = serialOrdered.ascending; 7 | module.exports.descending = serialOrdered.descending; 8 | 9 | /** 10 | * Streaming wrapper to `asynckit.serialOrdered` 11 | * 12 | * @param {array|object} list - array or object (named list) to iterate over 13 | * @param {function} iterator - iterator to run 14 | * @param {function} sortMethod - custom sort function 15 | * @param {function} callback - invoked when all elements processed 16 | * @returns {stream.Readable#} 17 | */ 18 | function ReadableSerialOrdered(list, iterator, sortMethod, callback) 19 | { 20 | if (!(this instanceof ReadableSerialOrdered)) 21 | { 22 | return new ReadableSerialOrdered(list, iterator, sortMethod, callback); 23 | } 24 | 25 | // turn on object mode 26 | ReadableSerialOrdered.super_.call(this, {objectMode: true}); 27 | 28 | this._start(serialOrdered, list, iterator, sortMethod, callback); 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/state.js: -------------------------------------------------------------------------------- 1 | // API 2 | module.exports = state; 3 | 4 | /** 5 | * Creates initial state object 6 | * for iteration over list 7 | * 8 | * @param {array|object} list - list to iterate over 9 | * @param {function|null} sortMethod - function to use for keys sort, 10 | * or `null` to keep them as is 11 | * @returns {object} - initial state object 12 | */ 13 | function state(list, sortMethod) 14 | { 15 | var isNamedList = !Array.isArray(list) 16 | , initState = 17 | { 18 | index : 0, 19 | keyedList: isNamedList || sortMethod ? Object.keys(list) : null, 20 | jobs : {}, 21 | results : isNamedList ? {} : [], 22 | size : isNamedList ? Object.keys(list).length : list.length 23 | } 24 | ; 25 | 26 | if (sortMethod) 27 | { 28 | // sort array keys based on it's values 29 | // sort object's keys just on own merit 30 | initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) 31 | { 32 | return sortMethod(list[a], list[b]); 33 | }); 34 | } 35 | 36 | return initState; 37 | } 38 | -------------------------------------------------------------------------------- /node_modules/asynckit/lib/terminator.js: -------------------------------------------------------------------------------- 1 | var abort = require('./abort.js') 2 | , async = require('./async.js') 3 | ; 4 | 5 | // API 6 | module.exports = terminator; 7 | 8 | /** 9 | * Terminates jobs in the attached state context 10 | * 11 | * @this AsyncKitState# 12 | * @param {function} callback - final callback to invoke after termination 13 | */ 14 | function terminator(callback) 15 | { 16 | if (!Object.keys(this.jobs).length) 17 | { 18 | return; 19 | } 20 | 21 | // fast forward iteration index 22 | this.index = this.size; 23 | 24 | // abort jobs 25 | abort(this); 26 | 27 | // send back results we have so far 28 | async(callback)(null, this.results); 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/asynckit/parallel.js: -------------------------------------------------------------------------------- 1 | var iterate = require('./lib/iterate.js') 2 | , initState = require('./lib/state.js') 3 | , terminator = require('./lib/terminator.js') 4 | ; 5 | 6 | // Public API 7 | module.exports = parallel; 8 | 9 | /** 10 | * Runs iterator over provided array elements in parallel 11 | * 12 | * @param {array|object} list - array or object (named list) to iterate over 13 | * @param {function} iterator - iterator to run 14 | * @param {function} callback - invoked when all elements processed 15 | * @returns {function} - jobs terminator 16 | */ 17 | function parallel(list, iterator, callback) 18 | { 19 | var state = initState(list); 20 | 21 | while (state.index < (state['keyedList'] || list).length) 22 | { 23 | iterate(list, iterator, state, function(error, result) 24 | { 25 | if (error) 26 | { 27 | callback(error, result); 28 | return; 29 | } 30 | 31 | // looks like it's the last one 32 | if (Object.keys(state.jobs).length === 0) 33 | { 34 | callback(null, state.results); 35 | return; 36 | } 37 | }); 38 | 39 | state.index++; 40 | } 41 | 42 | return terminator.bind(state, callback); 43 | } 44 | -------------------------------------------------------------------------------- /node_modules/asynckit/serial.js: -------------------------------------------------------------------------------- 1 | var serialOrdered = require('./serialOrdered.js'); 2 | 3 | // Public API 4 | module.exports = serial; 5 | 6 | /** 7 | * Runs iterator over provided array elements in series 8 | * 9 | * @param {array|object} list - array or object (named list) to iterate over 10 | * @param {function} iterator - iterator to run 11 | * @param {function} callback - invoked when all elements processed 12 | * @returns {function} - jobs terminator 13 | */ 14 | function serial(list, iterator, callback) 15 | { 16 | return serialOrdered(list, iterator, null, callback); 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/asynckit/stream.js: -------------------------------------------------------------------------------- 1 | var inherits = require('util').inherits 2 | , Readable = require('stream').Readable 3 | , ReadableAsyncKit = require('./lib/readable_asynckit.js') 4 | , ReadableParallel = require('./lib/readable_parallel.js') 5 | , ReadableSerial = require('./lib/readable_serial.js') 6 | , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js') 7 | ; 8 | 9 | // API 10 | module.exports = 11 | { 12 | parallel : ReadableParallel, 13 | serial : ReadableSerial, 14 | serialOrdered : ReadableSerialOrdered, 15 | }; 16 | 17 | inherits(ReadableAsyncKit, Readable); 18 | 19 | inherits(ReadableParallel, ReadableAsyncKit); 20 | inherits(ReadableSerial, ReadableAsyncKit); 21 | inherits(ReadableSerialOrdered, ReadableAsyncKit); 22 | -------------------------------------------------------------------------------- /node_modules/aws-sign2/README.md: -------------------------------------------------------------------------------- 1 | aws-sign 2 | ======== 3 | 4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/aws4/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | examples 3 | example.js 4 | browser 5 | -------------------------------------------------------------------------------- /node_modules/aws4/.tern-port: -------------------------------------------------------------------------------- 1 | 62638 -------------------------------------------------------------------------------- /node_modules/aws4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "4.2" 6 | -------------------------------------------------------------------------------- /node_modules/aws4/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2013 Michael Hart (michael.hart.au@gmail.com) 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 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, 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, 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 THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/bluebird/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013-2015 Petka Antonov 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/bluebird/changelog.md: -------------------------------------------------------------------------------- 1 | [http://bluebirdjs.com/docs/changelog.html](http://bluebirdjs.com/docs/changelog.html) 2 | -------------------------------------------------------------------------------- /node_modules/bluebird/js/release/any.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | module.exports = function(Promise) { 3 | var SomePromiseArray = Promise._SomePromiseArray; 4 | function any(promises) { 5 | var ret = new SomePromiseArray(promises); 6 | var promise = ret.promise(); 7 | ret.setHowMany(1); 8 | ret.setUnwrap(); 9 | ret.init(); 10 | return promise; 11 | } 12 | 13 | Promise.any = function (promises) { 14 | return any(promises); 15 | }; 16 | 17 | Promise.prototype.any = function () { 18 | return any(this); 19 | }; 20 | 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/bluebird/js/release/bluebird.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var old; 3 | if (typeof Promise !== "undefined") old = Promise; 4 | function noConflict() { 5 | try { if (Promise === bluebird) Promise = old; } 6 | catch (e) {} 7 | return bluebird; 8 | } 9 | var bluebird = require("./promise")(); 10 | bluebird.noConflict = noConflict; 11 | module.exports = bluebird; 12 | -------------------------------------------------------------------------------- /node_modules/bluebird/js/release/each.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | module.exports = function(Promise, INTERNAL) { 3 | var PromiseReduce = Promise.reduce; 4 | var PromiseAll = Promise.all; 5 | 6 | function promiseAllThis() { 7 | return PromiseAll(this); 8 | } 9 | 10 | function PromiseMapSeries(promises, fn) { 11 | return PromiseReduce(promises, fn, INTERNAL, INTERNAL); 12 | } 13 | 14 | Promise.prototype.each = function (fn) { 15 | return PromiseReduce(this, fn, INTERNAL, 0) 16 | ._then(promiseAllThis, undefined, undefined, this, undefined); 17 | }; 18 | 19 | Promise.prototype.mapSeries = function (fn) { 20 | return PromiseReduce(this, fn, INTERNAL, INTERNAL); 21 | }; 22 | 23 | Promise.each = function (promises, fn) { 24 | return PromiseReduce(promises, fn, INTERNAL, 0) 25 | ._then(promiseAllThis, undefined, undefined, promises, undefined); 26 | }; 27 | 28 | Promise.mapSeries = PromiseMapSeries; 29 | }; 30 | 31 | -------------------------------------------------------------------------------- /node_modules/bluebird/js/release/filter.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | module.exports = function(Promise, INTERNAL) { 3 | var PromiseMap = Promise.map; 4 | 5 | Promise.prototype.filter = function (fn, options) { 6 | return PromiseMap(this, fn, options, INTERNAL); 7 | }; 8 | 9 | Promise.filter = function (promises, fn, options) { 10 | return PromiseMap(promises, fn, options, INTERNAL); 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/boom/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/boom/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | 9 | -------------------------------------------------------------------------------- /node_modules/boom/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/boom/images/boom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/boom/images/boom.png -------------------------------------------------------------------------------- /node_modules/caseless/README.md: -------------------------------------------------------------------------------- 1 | ## Caseless -- wrap an object to set and get property with caseless semantics but also preserve caseing. 2 | 3 | This library is incredibly useful when working with HTTP headers. It allows you to get/set/check for headers in a caseless manner while also preserving the caseing of headers the first time they are set. 4 | 5 | ## Usage 6 | 7 | ```javascript 8 | var headers = {} 9 | , c = caseless(headers) 10 | ; 11 | c.set('a-Header', 'asdf') 12 | c.get('a-header') === 'asdf' 13 | ``` 14 | 15 | ## has(key) 16 | 17 | Has takes a name and if it finds a matching header will return that header name with the preserved caseing it was set with. 18 | 19 | ```javascript 20 | c.has('a-header') === 'a-Header' 21 | ``` 22 | 23 | ## set(key, value[, clobber=true]) 24 | 25 | Set is fairly straight forward except that if the header exists and clobber is disabled it will add `','+value` to the existing header. 26 | 27 | ```javascript 28 | c.set('a-Header', 'fdas') 29 | c.set('a-HEADER', 'more', false) 30 | c.get('a-header') === 'fdsa,more' 31 | ``` 32 | 33 | ## swap(key) 34 | 35 | Swaps the casing of a header with the new one that is passed in. 36 | 37 | ```javascript 38 | var headers = {} 39 | , c = caseless(headers) 40 | ; 41 | c.set('a-Header', 'fdas') 42 | c.swap('a-HEADER') 43 | c.has('a-header') === 'a-HEADER' 44 | headers === {'a-HEADER': 'fdas'} 45 | ``` 46 | -------------------------------------------------------------------------------- /node_modules/caseless/test.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | , caseless = require('./') 3 | ; 4 | 5 | tape('set get has', function (t) { 6 | var headers = {} 7 | , c = caseless(headers) 8 | ; 9 | t.plan(17) 10 | c.set('a-Header', 'asdf') 11 | t.equal(c.get('a-header'), 'asdf') 12 | t.equal(c.has('a-header'), 'a-Header') 13 | t.ok(!c.has('nothing')) 14 | // old bug where we used the wrong regex 15 | t.ok(!c.has('a-hea')) 16 | c.set('a-header', 'fdsa') 17 | t.equal(c.get('a-header'), 'fdsa') 18 | t.equal(c.get('a-Header'), 'fdsa') 19 | c.set('a-HEADER', 'more', false) 20 | t.equal(c.get('a-header'), 'fdsa,more') 21 | 22 | t.deepEqual(headers, {'a-Header': 'fdsa,more'}) 23 | c.swap('a-HEADER') 24 | t.deepEqual(headers, {'a-HEADER': 'fdsa,more'}) 25 | 26 | c.set('deleteme', 'foobar') 27 | t.ok(c.has('deleteme')) 28 | t.ok(c.del('deleteme')) 29 | t.notOk(c.has('deleteme')) 30 | t.notOk(c.has('idonotexist')) 31 | t.ok(c.del('idonotexist')) 32 | 33 | c.set('tva', 'test1') 34 | c.set('tva-header', 'test2') 35 | t.equal(c.has('tva'), 'tva') 36 | t.notOk(c.has('header')) 37 | 38 | t.equal(c.get('tva'), 'test1') 39 | 40 | }) 41 | -------------------------------------------------------------------------------- /node_modules/chalk/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/combined-stream/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Debuggable Limited 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/commander/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2011 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/cryptiles/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/cryptiles/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | 9 | -------------------------------------------------------------------------------- /node_modules/cryptiles/README.md: -------------------------------------------------------------------------------- 1 | cryptiles 2 | ========= 3 | 4 | General purpose crypto utilities 5 | 6 | [![Build Status](https://secure.travis-ci.org/hapijs/cryptiles.png)](http://travis-ci.org/hapijs/cryptiles) 7 | 8 | Lead Maintainer - [C J Silverio](https://github.com/ceejbot) 9 | 10 | ## Methods 11 | 12 | ### `randomString( size)` 13 | Returns a cryptographically strong pseudo-random data string. Takes a size argument for the length of the string. 14 | 15 | ### `fixedTimeComparison( a, b)` 16 | Compare two strings using fixed time algorithm (to prevent time-based analysis of MAC digest match). Returns `true` if the strings match, `false` if they differ. 17 | -------------------------------------------------------------------------------- /node_modules/dashdash/LICENSE.txt: -------------------------------------------------------------------------------- 1 | # This is the MIT license 2 | 3 | Copyright (c) 2013 Trent Mick. All rights reserved. 4 | Copyright (c) 2013 Joyent Inc. All rights reserved. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a 7 | copy of this software and associated documentation files (the 8 | "Software"), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included 15 | in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | 25 | -------------------------------------------------------------------------------- /node_modules/dashdash/node_modules/assert-plus/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Eddy 2 | Fred Kuo 3 | Lars-Magnus Skog 4 | Mark Cavage 5 | Patrick Mooney 6 | Rob Gulewich 7 | -------------------------------------------------------------------------------- /node_modules/dashdash/node_modules/assert-plus/CHANGES.md: -------------------------------------------------------------------------------- 1 | # assert-plus Changelog 2 | 3 | ## 1.0.0 4 | 5 | - *BREAKING* assert.number (and derivatives) now accept Infinity as valid input 6 | - Add assert.finite check. Previous assert.number callers should use this if 7 | they expect Infinity inputs to throw. 8 | 9 | ## 0.2.0 10 | 11 | - Fix `assert.object(null)` so it throws 12 | - Fix optional/arrayOf exports for non-type-of asserts 13 | - Add optiona/arrayOf exports for Stream/Date/Regex/uuid 14 | - Add basic unit test coverage 15 | -------------------------------------------------------------------------------- /node_modules/delayed-stream/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/delayed-stream/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Debuggable Limited 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/delayed-stream/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | .PHONY: test 7 | 8 | -------------------------------------------------------------------------------- /node_modules/ecc-jsbn/.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/ecc-jsbn/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Jeremie Miller 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. -------------------------------------------------------------------------------- /node_modules/ecc-jsbn/README.md: -------------------------------------------------------------------------------- 1 | ecc-jsbn 2 | ======== 3 | 4 | ECC package based on [jsbn](https://github.com/andyperlitch/jsbn) from [Tom Wu](http://www-cs-students.stanford.edu/~tjw/). 5 | 6 | This is a subset of the same interface as the [node compiled module](https://github.com/quartzjer/ecc), but works in the browser too. 7 | 8 | Also uses point compression now from [https://github.com/kaielvin](https://github.com/kaielvin/jsbn-ec-point-compression). 9 | -------------------------------------------------------------------------------- /node_modules/ecc-jsbn/test.js: -------------------------------------------------------------------------------- 1 | var ecc = require("./index.js"); 2 | var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1); 3 | var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1); 4 | console.log(key1.deriveSharedSecret(key2)); 5 | var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey); 6 | var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true); 7 | console.log(key3.deriveSharedSecret(key4)); 8 | 9 | var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1); 10 | var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1); 11 | console.log(key1.deriveSharedSecret(key2)); 12 | var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey); 13 | var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true); 14 | console.log(key3.deriveSharedSecret(key4)); 15 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; 4 | 5 | module.exports = function (str) { 6 | if (typeof str !== 'string') { 7 | throw new TypeError('Expected a string'); 8 | } 9 | 10 | return str.replace(matchOperatorsRe, '\\$&'); 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/escape-string-regexp/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/escape-string-regexp/readme.md: -------------------------------------------------------------------------------- 1 | # escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) 2 | 3 | > Escape RegExp special characters 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save escape-string-regexp 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const escapeStringRegexp = require('escape-string-regexp'); 17 | 18 | const escapedString = escapeStringRegexp('how much $ for a unicorn?'); 19 | //=> 'how much \$ for a unicorn\?' 20 | 21 | new RegExp(escapedString); 22 | ``` 23 | 24 | 25 | ## License 26 | 27 | MIT © [Sindre Sorhus](http://sindresorhus.com) 28 | -------------------------------------------------------------------------------- /node_modules/extend/.npmignore: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /node_modules/extend/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "iojs-v2.3" 4 | - "iojs-v2.2" 5 | - "iojs-v2.1" 6 | - "iojs-v2.0" 7 | - "iojs-v1.8" 8 | - "iojs-v1.7" 9 | - "iojs-v1.6" 10 | - "iojs-v1.5" 11 | - "iojs-v1.4" 12 | - "iojs-v1.3" 13 | - "iojs-v1.2" 14 | - "iojs-v1.1" 15 | - "iojs-v1.0" 16 | - "0.12" 17 | - "0.11" 18 | - "0.10" 19 | - "0.9" 20 | - "0.8" 21 | - "0.6" 22 | - "0.4" 23 | before_install: 24 | - '[ "${TRAVIS_NODE_VERSION}" = "0.6" ] || npm install -g npm@1.4.28 && npm install -g npm' 25 | sudo: false 26 | matrix: 27 | fast_finish: true 28 | allow_failures: 29 | - node_js: "iojs-v2.2" 30 | - node_js: "iojs-v2.1" 31 | - node_js: "iojs-v2.0" 32 | - node_js: "iojs-v1.7" 33 | - node_js: "iojs-v1.6" 34 | - node_js: "iojs-v1.5" 35 | - node_js: "iojs-v1.4" 36 | - node_js: "iojs-v1.3" 37 | - node_js: "iojs-v1.2" 38 | - node_js: "iojs-v1.1" 39 | - node_js: "iojs-v1.0" 40 | - node_js: "0.11" 41 | - node_js: "0.9" 42 | - node_js: "0.8" 43 | - node_js: "0.6" 44 | - node_js: "0.4" 45 | -------------------------------------------------------------------------------- /node_modules/extend/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Stefan Thomas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /node_modules/extend/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "extend", 3 | "author": "Stefan Thomas (http://www.justmoon.net)", 4 | "version": "3.0.0", 5 | "description": "Port of jQuery.extend for node.js and the browser.", 6 | "scripts": [ 7 | "index.js" 8 | ], 9 | "contributors": [ 10 | { 11 | "name": "Jordan Harband", 12 | "url": "https://github.com/ljharb" 13 | } 14 | ], 15 | "keywords": [ 16 | "extend", 17 | "clone", 18 | "merge" 19 | ], 20 | "repository" : { 21 | "type": "git", 22 | "url": "https://github.com/justmoon/node-extend.git" 23 | }, 24 | "dependencies": { 25 | }, 26 | "devDependencies": { 27 | "tape" : "~3.0.0", 28 | "covert": "~0.4.0", 29 | "jscs": "~1.6.2" 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /node_modules/extsprintf/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/jsstyle"] 2 | path = deps/jsstyle 3 | url = git://github.com/davepacheco/jsstyle 4 | [submodule "deps/javascriptlint"] 5 | path = deps/javascriptlint 6 | url = git://github.com/davepacheco/javascriptlint 7 | -------------------------------------------------------------------------------- /node_modules/extsprintf/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Joyent, Inc. 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 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/extsprintf/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2012, Joyent, Inc. All rights reserved. 3 | # 4 | # Makefile: top-level Makefile 5 | # 6 | # This Makefile contains only repo-specific logic and uses included makefiles 7 | # to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are 8 | # used by other repos as well. 9 | # 10 | 11 | # 12 | # Files 13 | # 14 | JS_FILES := $(shell find lib -name '*.js') 15 | JSL_FILES_NODE = $(JS_FILES) 16 | JSSTYLE_FILES = $(JS_FILES) 17 | JSL_CONF_NODE = jsl.node.conf 18 | 19 | # Default target is "check" 20 | check: 21 | 22 | include ./Makefile.deps 23 | include ./Makefile.targ 24 | -------------------------------------------------------------------------------- /node_modules/extsprintf/Makefile.deps: -------------------------------------------------------------------------------- 1 | # -*- mode: makefile -*- 2 | # 3 | # Copyright (c) 2012, Joyent, Inc. All rights reserved. 4 | # 5 | # Makefile.deps: Makefile for including common tools as dependencies 6 | # 7 | # NOTE: This makefile comes from the "eng" repo. It's designed to be dropped 8 | # into other repos as-is without requiring any modifications. If you find 9 | # yourself changing this file, you should instead update the original copy in 10 | # eng.git and then update your repo to use the new version. 11 | # 12 | # This file is separate from Makefile.targ so that teams can choose 13 | # independently whether to use the common targets in Makefile.targ and the 14 | # common tools here. 15 | # 16 | 17 | # 18 | # javascriptlint 19 | # 20 | JSL_EXEC ?= deps/javascriptlint/build/install/jsl 21 | JSL ?= python2.6 $(JSL_EXEC) 22 | 23 | $(JSL_EXEC): | deps/javascriptlint/.git 24 | cd deps/javascriptlint && make install 25 | 26 | # 27 | # jsstyle 28 | # 29 | JSSTYLE_EXEC ?= deps/jsstyle/jsstyle 30 | JSSTYLE ?= $(JSSTYLE_EXEC) 31 | 32 | $(JSSTYLE_EXEC): | deps/jsstyle/.git 33 | 34 | # 35 | # restdown 36 | # 37 | RESTDOWN_EXEC ?= deps/restdown/bin/restdown 38 | RESTDOWN ?= python2.6 $(RESTDOWN_EXEC) 39 | $(RESTDOWN_EXEC): | deps/restdown/.git 40 | -------------------------------------------------------------------------------- /node_modules/extsprintf/README.md: -------------------------------------------------------------------------------- 1 | # extsprintf: extended POSIX-style sprintf 2 | 3 | Stripped down version of s[n]printf(3c). We make a best effort to throw an 4 | exception when given a format string we don't understand, rather than ignoring 5 | it, so that we won't break existing programs if/when we go implement the rest 6 | of this. 7 | 8 | This implementation currently supports specifying 9 | 10 | * field alignment ('-' flag), 11 | * zero-pad ('0' flag) 12 | * always show numeric sign ('+' flag), 13 | * field width 14 | * conversions for strings, decimal integers, and floats (numbers). 15 | * argument size specifiers. These are all accepted but ignored, since 16 | Javascript has no notion of the physical size of an argument. 17 | 18 | Everything else is currently unsupported, most notably: precision, unsigned 19 | numbers, non-decimal numbers, and characters. 20 | 21 | Besides the usual POSIX conversions, this implementation supports: 22 | 23 | * `%j`: pretty-print a JSON object (using node's "inspect") 24 | * `%r`: pretty-print an Error object 25 | 26 | # Example 27 | 28 | First, install it: 29 | 30 | # npm install extsprintf 31 | 32 | Now, use it: 33 | 34 | var mod_extsprintf = require('extsprintf'); 35 | console.log(mod_extsprintf.sprintf('hello %25s', 'world')); 36 | 37 | outputs: 38 | 39 | hello world 40 | -------------------------------------------------------------------------------- /node_modules/extsprintf/examples/simple.js: -------------------------------------------------------------------------------- 1 | var mod_extsprintf = require('extsprintf'); 2 | console.log(mod_extsprintf.sprintf('hello %25s', 'world')); 3 | -------------------------------------------------------------------------------- /node_modules/forever-agent/README.md: -------------------------------------------------------------------------------- 1 | forever-agent 2 | ============= 3 | 4 | HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/form-data/License: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors 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/form-data/lib/browser.js: -------------------------------------------------------------------------------- 1 | /* eslint-env browser */ 2 | module.exports = typeof self == 'object' ? self.FormData : window.FormData; 3 | -------------------------------------------------------------------------------- /node_modules/form-data/lib/populate.js: -------------------------------------------------------------------------------- 1 | // populates missing values 2 | module.exports = function(dst, src) { 3 | 4 | Object.keys(src).forEach(function(prop) 5 | { 6 | dst[prop] = dst[prop] || src[prop]; 7 | }); 8 | 9 | return dst; 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/generate-function/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/generate-function/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /node_modules/generate-function/example.js: -------------------------------------------------------------------------------- 1 | var genfun = require('./') 2 | 3 | var multiply = function(a, b) { 4 | return a * b 5 | } 6 | 7 | var addAndMultiplyNumber = function(val) { 8 | var fn = genfun() 9 | ('function(n) {') 10 | ('if (typeof n !== "number") {') // ending a line with { will indent the source 11 | ('throw new Error("argument should be a number")') 12 | ('}') 13 | ('var result = multiply(%d, n+%d)', val, val) 14 | ('return result') 15 | ('}') 16 | 17 | // use fn.toString() if you want to see the generated source 18 | 19 | return fn.toFunction({ 20 | multiply: multiply 21 | }) 22 | } 23 | 24 | var addAndMultiply2 = addAndMultiplyNumber(2) 25 | 26 | console.log(addAndMultiply2.toString()) 27 | console.log('(3 + 2) * 2 =', addAndMultiply2(3)) -------------------------------------------------------------------------------- /node_modules/generate-function/test.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | var genfun = require('./') 3 | 4 | tape('generate add function', function(t) { 5 | var fn = genfun() 6 | ('function add(n) {') 7 | ('return n + %d', 42) 8 | ('}') 9 | 10 | t.same(fn.toString(), 'function add(n) {\n return n + 42\n}', 'code is indented') 11 | t.same(fn.toFunction()(10), 52, 'function works') 12 | t.end() 13 | }) 14 | 15 | tape('generate function + closed variables', function(t) { 16 | var fn = genfun() 17 | ('function add(n) {') 18 | ('return n + %d + number', 42) 19 | ('}') 20 | 21 | var notGood = fn.toFunction() 22 | var good = fn.toFunction({number:10}) 23 | 24 | try { 25 | notGood(10) 26 | t.ok(false, 'function should not work') 27 | } catch (err) { 28 | t.same(err.message, 'number is not defined', 'throws reference error') 29 | } 30 | 31 | t.same(good(11), 63, 'function with closed var works') 32 | t.end() 33 | }) -------------------------------------------------------------------------------- /node_modules/generate-object-property/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/generate-object-property/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /node_modules/generate-object-property/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Mathias Buus 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. -------------------------------------------------------------------------------- /node_modules/generate-object-property/README.md: -------------------------------------------------------------------------------- 1 | # generate-object-property 2 | 3 | Generate safe JS code that can used to reference a object property 4 | 5 | npm install generate-object-property 6 | 7 | [![build status](http://img.shields.io/travis/mafintosh/generate-object-property.svg?style=flat)](http://travis-ci.org/mafintosh/generate-object-property) 8 | 9 | ## Usage 10 | 11 | ``` js 12 | var gen = require('generate-object-property'); 13 | console.log(gen('a','b')); // prints a.b 14 | console.log(gen('a', 'foo-bar')); // prints a["foo-bar"] 15 | ``` 16 | 17 | ## License 18 | 19 | MIT -------------------------------------------------------------------------------- /node_modules/generate-object-property/index.js: -------------------------------------------------------------------------------- 1 | var isProperty = require('is-property') 2 | 3 | var gen = function(obj, prop) { 4 | return isProperty(prop) ? obj+'.'+prop : obj+'['+JSON.stringify(prop)+']' 5 | } 6 | 7 | gen.valid = isProperty 8 | gen.property = function (prop) { 9 | return isProperty(prop) ? prop : JSON.stringify(prop) 10 | } 11 | 12 | module.exports = gen 13 | -------------------------------------------------------------------------------- /node_modules/generate-object-property/test.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | var gen = require('./') 3 | 4 | tape('valid', function(t) { 5 | t.same(gen('a', 'b'), 'a.b') 6 | t.end() 7 | }) 8 | 9 | tape('invalid', function(t) { 10 | t.same(gen('a', '-b'), 'a["-b"]') 11 | t.end() 12 | }) -------------------------------------------------------------------------------- /node_modules/getpass/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools 8 | coverage 9 | -------------------------------------------------------------------------------- /node_modules/getpass/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "5.10" 4 | - "4.4" 5 | - "4.1" 6 | - "0.12" 7 | - "0.10" 8 | before_install: 9 | - "make check" 10 | -------------------------------------------------------------------------------- /node_modules/getpass/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. 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/getpass/README.md: -------------------------------------------------------------------------------- 1 | ## getpass 2 | 3 | Get a password from the terminal. Sounds simple? Sounds like the `readline` 4 | module should be able to do it? NOPE. 5 | 6 | ## Install and use it 7 | 8 | ```bash 9 | npm install --save getpass 10 | ``` 11 | 12 | ```javascript 13 | const mod_getpass = require('getpass'); 14 | ``` 15 | 16 | ## API 17 | 18 | ### `mod_getpass.getPass([options, ]callback)` 19 | 20 | Gets a password from the terminal. If available, this uses `/dev/tty` to avoid 21 | interfering with any data being piped in or out of stdio. 22 | 23 | This function prints a prompt (by default `Password:`) and then accepts input 24 | without echoing. 25 | 26 | Parameters: 27 | 28 | * `options`, an Object, with properties: 29 | * `prompt`, an optional String 30 | * `callback`, a `Func(error, password)`, with arguments: 31 | * `error`, either `null` (no error) or an `Error` instance 32 | * `password`, a String 33 | -------------------------------------------------------------------------------- /node_modules/getpass/node_modules/assert-plus/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Eddy 2 | Fred Kuo 3 | Lars-Magnus Skog 4 | Mark Cavage 5 | Patrick Mooney 6 | Rob Gulewich 7 | -------------------------------------------------------------------------------- /node_modules/getpass/node_modules/assert-plus/CHANGES.md: -------------------------------------------------------------------------------- 1 | # assert-plus Changelog 2 | 3 | ## 1.0.0 4 | 5 | - *BREAKING* assert.number (and derivatives) now accept Infinity as valid input 6 | - Add assert.finite check. Previous assert.number callers should use this if 7 | they expect Infinity inputs to throw. 8 | 9 | ## 0.2.0 10 | 11 | - Fix `assert.object(null)` so it throws 12 | - Fix optional/arrayOf exports for non-type-of asserts 13 | - Add optiona/arrayOf exports for Stream/Date/Regex/uuid 14 | - Add basic unit test coverage 15 | -------------------------------------------------------------------------------- /node_modules/graceful-readlink/.npmignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /node_modules/graceful-readlink/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "io.js" 6 | -------------------------------------------------------------------------------- /node_modules/graceful-readlink/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Zhiye Li 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 | 23 | -------------------------------------------------------------------------------- /node_modules/graceful-readlink/README.md: -------------------------------------------------------------------------------- 1 | # graceful-readlink 2 | [![NPM Version](http://img.shields.io/npm/v/graceful-readlink.svg?style=flat)](https://www.npmjs.org/package/graceful-readlink) 3 | [![NPM Downloads](https://img.shields.io/npm/dm/graceful-readlink.svg?style=flat)](https://www.npmjs.org/package/graceful-readlink) 4 | 5 | 6 | ## Usage 7 | 8 | ```js 9 | var readlinkSync = require('graceful-readlink').readlinkSync; 10 | console.log(readlinkSync(f)); 11 | // output 12 | // the file pointed to when `f` is a symbolic link 13 | // the `f` itself when `f` is not a symbolic link 14 | ``` 15 | ## Licence 16 | 17 | MIT License 18 | -------------------------------------------------------------------------------- /node_modules/graceful-readlink/index.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | , lstat = fs.lstatSync; 3 | 4 | exports.readlinkSync = function (p) { 5 | if (lstat(p).isSymbolicLink()) { 6 | return fs.readlinkSync(p); 7 | } else { 8 | return p; 9 | } 10 | }; 11 | 12 | 13 | -------------------------------------------------------------------------------- /node_modules/har-validator/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Ahmad Nassri 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 12 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/async.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var runner = require('./runner') 4 | var schemas = require('./schemas') 5 | 6 | module.exports = function (data, cb) { 7 | return runner(schemas.har, data, cb) 8 | } 9 | 10 | Object.keys(schemas).map(function (name) { 11 | module.exports[name] = function (data, cb) { 12 | return runner(schemas[name], data, cb) 13 | } 14 | }) 15 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/error.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | function ValidationError (errors) { 4 | this.name = 'ValidationError' 5 | this.errors = errors 6 | } 7 | 8 | ValidationError.prototype = Error.prototype 9 | 10 | module.exports = ValidationError 11 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var Promise = require('pinkie-promise') 4 | var runner = require('./runner') 5 | var schemas = require('./schemas') 6 | 7 | var promisify = function (schema) { 8 | return function (data) { 9 | return new Promise(function (resolve, reject) { 10 | runner(schema, data, function (err, valid) { 11 | return err === null ? resolve(data) : reject(err) 12 | }) 13 | }) 14 | } 15 | } 16 | 17 | module.exports = promisify(schemas.har) 18 | 19 | // utility methods for all parts of the schema 20 | Object.keys(schemas).map(function (name) { 21 | module.exports[name] = promisify(schemas[name]) 22 | }) 23 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/runner.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var schemas = require('./schemas') 4 | var ValidationError = require('./error') 5 | var validator = require('is-my-json-valid') 6 | 7 | module.exports = function (schema, data, cb) { 8 | // default value 9 | var valid = false 10 | 11 | // validator config 12 | var validate = validator(schema, { 13 | greedy: true, 14 | verbose: true, 15 | schemas: schemas 16 | }) 17 | 18 | // execute is-my-json-valid 19 | if (data !== undefined) { 20 | valid = validate(data) 21 | } 22 | 23 | // callback? 24 | if (typeof cb === 'function') { 25 | return cb(validate.errors ? new ValidationError(validate.errors) : null, valid) 26 | } 27 | 28 | return valid 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/cache.json: -------------------------------------------------------------------------------- 1 | { 2 | "properties": { 3 | "beforeRequest": { 4 | "$ref": "#cacheEntry" 5 | }, 6 | "afterRequest": { 7 | "$ref": "#cacheEntry" 8 | }, 9 | "comment": { 10 | "type": "string" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/cacheEntry.json: -------------------------------------------------------------------------------- 1 | { 2 | "oneOf": [{ 3 | "type": "object", 4 | "optional": true, 5 | "required": [ 6 | "lastAccess", 7 | "eTag", 8 | "hitCount" 9 | ], 10 | "properties": { 11 | "expires": { 12 | "type": "string" 13 | }, 14 | "lastAccess": { 15 | "type": "string" 16 | }, 17 | "eTag": { 18 | "type": "string" 19 | }, 20 | "hitCount": { 21 | "type": "integer" 22 | }, 23 | "comment": { 24 | "type": "string" 25 | } 26 | } 27 | }, { 28 | "type": null, 29 | "additionalProperties": false 30 | }] 31 | } 32 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/content.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "size", 5 | "mimeType" 6 | ], 7 | "properties": { 8 | "size": { 9 | "type": "integer" 10 | }, 11 | "compression": { 12 | "type": "integer" 13 | }, 14 | "mimeType": { 15 | "type": "string" 16 | }, 17 | "text": { 18 | "type": "string" 19 | }, 20 | "encoding": { 21 | "type": "string" 22 | }, 23 | "comment": { 24 | "type": "string" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/cookie.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "name", 5 | "value" 6 | ], 7 | "properties": { 8 | "name": { 9 | "type": "string" 10 | }, 11 | "value": { 12 | "type": "string" 13 | }, 14 | "path": { 15 | "type": "string" 16 | }, 17 | "domain": { 18 | "type": "string" 19 | }, 20 | "expires": { 21 | "type": ["string", "null"], 22 | "format": "date-time" 23 | }, 24 | "httpOnly": { 25 | "type": "boolean" 26 | }, 27 | "secure": { 28 | "type": "boolean" 29 | }, 30 | "comment": { 31 | "type": "string" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/creator.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "name", 5 | "version" 6 | ], 7 | "properties": { 8 | "name": { 9 | "type": "string" 10 | }, 11 | "version": { 12 | "type": "string" 13 | }, 14 | "comment": { 15 | "type": "string" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/entry.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "optional": true, 4 | "required": [ 5 | "startedDateTime", 6 | "time", 7 | "request", 8 | "response", 9 | "cache", 10 | "timings" 11 | ], 12 | "properties": { 13 | "pageref": { 14 | "type": "string" 15 | }, 16 | "startedDateTime": { 17 | "type": "string", 18 | "format": "date-time", 19 | "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))" 20 | }, 21 | "time": { 22 | "type": "number", 23 | "min": 0 24 | }, 25 | "request": { 26 | "$ref": "#request" 27 | }, 28 | "response": { 29 | "$ref": "#response" 30 | }, 31 | "cache": { 32 | "$ref": "#cache" 33 | }, 34 | "timings": { 35 | "$ref": "#timings" 36 | }, 37 | "serverIPAddress": { 38 | "type": "string", 39 | "oneOf": [ 40 | { "format": "ipv4" }, 41 | { "format": "ipv6" } 42 | ] 43 | }, 44 | "connection": { 45 | "type": "string" 46 | }, 47 | "comment": { 48 | "type": "string" 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/har.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "log" 5 | ], 6 | "properties": { 7 | "log": { 8 | "$ref": "#log" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/log.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "version", 5 | "creator", 6 | "entries" 7 | ], 8 | "properties": { 9 | "version": { 10 | "type": "string" 11 | }, 12 | "creator": { 13 | "$ref": "#creator" 14 | }, 15 | "browser": { 16 | "$ref": "#creator" 17 | }, 18 | "pages": { 19 | "type": "array", 20 | "items": { 21 | "$ref": "#page" 22 | } 23 | }, 24 | "entries": { 25 | "type": "array", 26 | "items": { 27 | "$ref": "#entry" 28 | } 29 | }, 30 | "comment": { 31 | "type": "string" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/page.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "optional": true, 4 | "required": [ 5 | "startedDateTime", 6 | "id", 7 | "title", 8 | "pageTimings" 9 | ], 10 | "properties": { 11 | "startedDateTime": { 12 | "type": "string", 13 | "format": "date-time", 14 | "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))" 15 | }, 16 | "id": { 17 | "type": "string", 18 | "unique": true 19 | }, 20 | "title": { 21 | "type": "string" 22 | }, 23 | "pageTimings": { 24 | "$ref": "#pageTimings" 25 | }, 26 | "comment": { 27 | "type": "string" 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/pageTimings.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "properties": { 4 | "onContentLoad": { 5 | "type": "number", 6 | "min": -1 7 | }, 8 | "onLoad": { 9 | "type": "number", 10 | "min": -1 11 | }, 12 | "comment": { 13 | "type": "string" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/postData.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "optional": true, 4 | "required": [ 5 | "mimeType" 6 | ], 7 | "properties": { 8 | "mimeType": { 9 | "type": "string" 10 | }, 11 | "text": { 12 | "type": "string" 13 | }, 14 | "params": { 15 | "type": "array", 16 | "required": [ 17 | "name" 18 | ], 19 | "properties": { 20 | "name": { 21 | "type": "string" 22 | }, 23 | "value": { 24 | "type": "string" 25 | }, 26 | "fileName": { 27 | "type": "string" 28 | }, 29 | "contentType": { 30 | "type": "string" 31 | }, 32 | "comment": { 33 | "type": "string" 34 | } 35 | } 36 | }, 37 | "comment": { 38 | "type": "string" 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/record.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "name", 5 | "value" 6 | ], 7 | "properties": { 8 | "name": { 9 | "type": "string" 10 | }, 11 | "value": { 12 | "type": "string" 13 | }, 14 | "comment": { 15 | "type": "string" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/request.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "method", 5 | "url", 6 | "httpVersion", 7 | "cookies", 8 | "headers", 9 | "queryString", 10 | "headersSize", 11 | "bodySize" 12 | ], 13 | "properties": { 14 | "method": { 15 | "type": "string" 16 | }, 17 | "url": { 18 | "type": "string", 19 | "format": "uri" 20 | }, 21 | "httpVersion": { 22 | "type": "string" 23 | }, 24 | "cookies": { 25 | "type": "array", 26 | "items": { 27 | "$ref": "#cookie" 28 | } 29 | }, 30 | "headers": { 31 | "type": "array", 32 | "items": { 33 | "$ref": "#record" 34 | } 35 | }, 36 | "queryString": { 37 | "type": "array", 38 | "items": { 39 | "$ref": "#record" 40 | } 41 | }, 42 | "postData": { 43 | "$ref": "#postData" 44 | }, 45 | "headersSize": { 46 | "type": "integer" 47 | }, 48 | "bodySize": { 49 | "type": "integer" 50 | }, 51 | "comment": { 52 | "type": "string" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/response.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "status", 5 | "statusText", 6 | "httpVersion", 7 | "cookies", 8 | "headers", 9 | "content", 10 | "redirectURL", 11 | "headersSize", 12 | "bodySize" 13 | ], 14 | "properties": { 15 | "status": { 16 | "type": "integer" 17 | }, 18 | "statusText": { 19 | "type": "string" 20 | }, 21 | "httpVersion": { 22 | "type": "string" 23 | }, 24 | "cookies": { 25 | "type": "array", 26 | "items": { 27 | "$ref": "#cookie" 28 | } 29 | }, 30 | "headers": { 31 | "type": "array", 32 | "items": { 33 | "$ref": "#record" 34 | } 35 | }, 36 | "content": { 37 | "$ref": "#content" 38 | }, 39 | "redirectURL": { 40 | "type": "string" 41 | }, 42 | "headersSize": { 43 | "type": "integer" 44 | }, 45 | "bodySize": { 46 | "type": "integer" 47 | }, 48 | "comment": { 49 | "type": "string" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /node_modules/har-validator/lib/schemas/timings.json: -------------------------------------------------------------------------------- 1 | { 2 | "required": [ 3 | "send", 4 | "wait", 5 | "receive" 6 | ], 7 | "properties": { 8 | "dns": { 9 | "type": "number", 10 | "min": -1 11 | }, 12 | "connect": { 13 | "type": "number", 14 | "min": -1 15 | }, 16 | "blocked": { 17 | "type": "number", 18 | "min": -1 19 | }, 20 | "send": { 21 | "type": "number", 22 | "min": -1 23 | }, 24 | "wait": { 25 | "type": "number", 26 | "min": -1 27 | }, 28 | "receive": { 29 | "type": "number", 30 | "min": -1 31 | }, 32 | "ssl": { 33 | "type": "number", 34 | "min": -1 35 | }, 36 | "comment": { 37 | "type": "string" 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/has-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex'); 3 | var re = new RegExp(ansiRegex().source); // remove the `g` flag 4 | module.exports = re.test.bind(re); 5 | -------------------------------------------------------------------------------- /node_modules/has-ansi/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/has-ansi/readme.md: -------------------------------------------------------------------------------- 1 | # has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi) 2 | 3 | > Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save has-ansi 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | var hasAnsi = require('has-ansi'); 17 | 18 | hasAnsi('\u001b[4mcake\u001b[0m'); 19 | //=> true 20 | 21 | hasAnsi('cake'); 22 | //=> false 23 | ``` 24 | 25 | 26 | ## Related 27 | 28 | - [has-ansi-cli](https://github.com/sindresorhus/has-ansi-cli) - CLI for this module 29 | - [strip-ansi](https://github.com/sindresorhus/strip-ansi) - Strip ANSI escape codes 30 | - [ansi-regex](https://github.com/sindresorhus/ansi-regex) - Regular expression for matching ANSI escape codes 31 | - [chalk](https://github.com/sindresorhus/chalk) - Terminal string styling done right 32 | 33 | 34 | ## License 35 | 36 | MIT © [Sindre Sorhus](http://sindresorhus.com) 37 | -------------------------------------------------------------------------------- /node_modules/hawk/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | components 7 | build 8 | results.tap 9 | results.xml 10 | npm-shrinkwrap.json 11 | config.json 12 | .DS_Store 13 | */.DS_Store 14 | */*/.DS_Store 15 | ._* 16 | */._* 17 | */*/._* 18 | coverage.* 19 | lib-cov 20 | 21 | -------------------------------------------------------------------------------- /node_modules/hawk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/hawk/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hawk", 3 | "main": "lib/browser.js", 4 | "license": "./LICENSE", 5 | "ignore": [ 6 | "!lib", 7 | "lib/*", 8 | "!lib/browser.js", 9 | "index.js" 10 | ], 11 | "keywords": [ 12 | "http", 13 | "authentication", 14 | "scheme", 15 | "hawk" 16 | ], 17 | "authors": [ 18 | "Eran Hammer " 19 | ], 20 | "repository": { 21 | "type": "git", 22 | "url": "git://github.com/hueniverse/hawk.git" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/hawk/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hawk", 3 | "repo": "hueniverse/hawk", 4 | "description": "HTTP Hawk Authentication Scheme", 5 | "version": "1.0.0", 6 | "keywords": [ 7 | "http", 8 | "authentication", 9 | "scheme", 10 | "hawk" 11 | ], 12 | "dependencies": {}, 13 | "development": {}, 14 | "license": "BSD", 15 | "main": "lib/browser.js", 16 | "scripts": [ 17 | "lib/browser.js" 18 | ] 19 | } -------------------------------------------------------------------------------- /node_modules/hawk/images/hawk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/hawk/images/hawk.png -------------------------------------------------------------------------------- /node_modules/hawk/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/hawk/images/logo.png -------------------------------------------------------------------------------- /node_modules/hawk/lib/index.js: -------------------------------------------------------------------------------- 1 | // Export sub-modules 2 | 3 | exports.error = exports.Error = require('boom'); 4 | exports.sntp = require('sntp'); 5 | 6 | exports.server = require('./server'); 7 | exports.client = require('./client'); 8 | exports.crypto = require('./crypto'); 9 | exports.utils = require('./utils'); 10 | 11 | exports.uri = { 12 | authenticate: exports.server.authenticateBewit, 13 | getBewit: exports.client.getBewit 14 | }; 15 | 16 | -------------------------------------------------------------------------------- /node_modules/hoek/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /node_modules/hoek/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | -------------------------------------------------------------------------------- /node_modules/hoek/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/hoek/images/hoek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/hoek/images/hoek.png -------------------------------------------------------------------------------- /node_modules/hoek/test/modules/ignore.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/hoek/test/modules/ignore.txt -------------------------------------------------------------------------------- /node_modules/hoek/test/modules/test1.js: -------------------------------------------------------------------------------- 1 | exports.x = 1; 2 | -------------------------------------------------------------------------------- /node_modules/hoek/test/modules/test2.js: -------------------------------------------------------------------------------- 1 | exports.y = 2; 2 | -------------------------------------------------------------------------------- /node_modules/hoek/test/modules/test3.js: -------------------------------------------------------------------------------- 1 | exports.z = 3; 2 | -------------------------------------------------------------------------------- /node_modules/http-signature/.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 8) 3 | (fill-column . 80))) 4 | (js-mode . ((js-indent-level . 2) 5 | (indent-tabs-mode . nil) 6 | ))) -------------------------------------------------------------------------------- /node_modules/http-signature/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools -------------------------------------------------------------------------------- /node_modules/http-signature/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. 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/http-signature/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Joyent, Inc. 2 | 3 | var parser = require('./parser'); 4 | var signer = require('./signer'); 5 | var verify = require('./verify'); 6 | var utils = require('./utils'); 7 | 8 | 9 | 10 | ///--- API 11 | 12 | module.exports = { 13 | 14 | parse: parser.parseRequest, 15 | parseRequest: parser.parseRequest, 16 | 17 | sign: signer.signRequest, 18 | signRequest: signer.signRequest, 19 | createSigner: signer.createSigner, 20 | isSigner: signer.isSigner, 21 | 22 | sshKeyToPEM: utils.sshKeyToPEM, 23 | sshKeyFingerprint: utils.fingerprint, 24 | pemToRsaSSHKey: utils.pemToRsaSSHKey, 25 | 26 | verify: verify.verifySignature, 27 | verifySignature: verify.verifySignature, 28 | verifyHMAC: verify.verifyHMAC 29 | }; 30 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | cosmicrealms.com 3 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Mathias Buus 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. -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/example.js: -------------------------------------------------------------------------------- 1 | var validator = require('./') 2 | 3 | var validate = validator({ 4 | type: 'object', 5 | properties: { 6 | hello: { 7 | required: true, 8 | type: 'string' 9 | } 10 | } 11 | }) 12 | 13 | console.log('should be valid', validate({hello: 'world'})) 14 | console.log('should not be valid', validate({})) 15 | 16 | // get the last error message by checking validate.error 17 | // the following will print "data.hello is required" 18 | console.log('the errors were:', validate.errors) 19 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/require.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | var path = require('path') 3 | var compile = require('./') 4 | 5 | delete require.cache[require.resolve(__filename)] 6 | 7 | module.exports = function(file, opts) { 8 | file = path.join(path.dirname(module.parent.filename), file) 9 | if (!fs.existsSync(file) && fs.existsSync(file+'.schema')) file += '.schema' 10 | if (!fs.existsSync(file) && fs.existsSync(file+'.json')) file += '.json' 11 | return compile(fs.readFileSync(file, 'utf-8'), opts) 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "valid definition", 4 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"}, 5 | "tests": [ 6 | { 7 | "description": "valid definition schema", 8 | "data": { 9 | "definitions": { 10 | "foo": {"type": "integer"} 11 | } 12 | }, 13 | "valid": true 14 | } 15 | ] 16 | }, 17 | { 18 | "description": "invalid definition", 19 | "schema": {"$ref": "http://json-schema.org/draft-04/schema#"}, 20 | "tests": [ 21 | { 22 | "description": "invalid definition schema", 23 | "data": { 24 | "definitions": { 25 | "foo": {"type": 1} 26 | } 27 | }, 28 | "valid": false 29 | } 30 | ] 31 | } 32 | ] 33 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/items.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "a schema given for items", 4 | "schema": { 5 | "items": {"type": "integer"} 6 | }, 7 | "tests": [ 8 | { 9 | "description": "valid items", 10 | "data": [ 1, 2, 3 ], 11 | "valid": true 12 | }, 13 | { 14 | "description": "wrong type of items", 15 | "data": [1, "x"], 16 | "valid": false 17 | }, 18 | { 19 | "description": "ignores non-arrays", 20 | "data": {"foo" : "bar"}, 21 | "valid": true 22 | } 23 | ] 24 | }, 25 | { 26 | "description": "an array of schemas for items", 27 | "schema": { 28 | "items": [ 29 | {"type": "integer"}, 30 | {"type": "string"} 31 | ] 32 | }, 33 | "tests": [ 34 | { 35 | "description": "correct types", 36 | "data": [ 1, "foo" ], 37 | "valid": true 38 | }, 39 | { 40 | "description": "wrong types", 41 | "data": [ "foo", 1 ], 42 | "valid": false 43 | } 44 | ] 45 | } 46 | ] 47 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxItems validation", 4 | "schema": {"maxItems": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": [1], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1, 2], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": [1, 2, 3], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxLength validation", 4 | "schema": {"maxLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": "f", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": "foo", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 100, 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maxProperties validation", 4 | "schema": {"maxProperties": 2}, 5 | "tests": [ 6 | { 7 | "description": "shorter is valid", 8 | "data": {"foo": 1}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1, "bar": 2}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too long is invalid", 18 | "data": {"foo": 1, "bar": 2, "baz": 3}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-objects", 23 | "data": "foobar", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "maximum validation", 4 | "schema": {"maximum": 3.0}, 5 | "tests": [ 6 | { 7 | "description": "below the maximum is valid", 8 | "data": 2.6, 9 | "valid": true 10 | }, 11 | { 12 | "description": "above the maximum is invalid", 13 | "data": 3.5, 14 | "valid": false 15 | }, 16 | { 17 | "description": "ignores non-numbers", 18 | "data": "x", 19 | "valid": true 20 | } 21 | ] 22 | }, 23 | { 24 | "description": "exclusiveMaximum validation", 25 | "schema": { 26 | "maximum": 3.0, 27 | "exclusiveMaximum": true 28 | }, 29 | "tests": [ 30 | { 31 | "description": "below the maximum is still valid", 32 | "data": 2.2, 33 | "valid": true 34 | }, 35 | { 36 | "description": "boundary point is invalid", 37 | "data": 3.0, 38 | "valid": false 39 | } 40 | ] 41 | } 42 | ] 43 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minItems validation", 4 | "schema": {"minItems": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": [1, 2], 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": [1], 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": [], 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-arrays", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minLength validation", 4 | "schema": {"minLength": 2}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": "foo", 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": "fo", 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": "f", 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-strings", 23 | "data": 1, 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minProperties validation", 4 | "schema": {"minProperties": 1}, 5 | "tests": [ 6 | { 7 | "description": "longer is valid", 8 | "data": {"foo": 1, "bar": 2}, 9 | "valid": true 10 | }, 11 | { 12 | "description": "exact length is valid", 13 | "data": {"foo": 1}, 14 | "valid": true 15 | }, 16 | { 17 | "description": "too short is invalid", 18 | "data": {}, 19 | "valid": false 20 | }, 21 | { 22 | "description": "ignores non-objects", 23 | "data": "", 24 | "valid": true 25 | } 26 | ] 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "minimum validation", 4 | "schema": {"minimum": 1.1}, 5 | "tests": [ 6 | { 7 | "description": "above the minimum is valid", 8 | "data": 2.6, 9 | "valid": true 10 | }, 11 | { 12 | "description": "below the minimum is invalid", 13 | "data": 0.6, 14 | "valid": false 15 | }, 16 | { 17 | "description": "ignores non-numbers", 18 | "data": "x", 19 | "valid": true 20 | } 21 | ] 22 | }, 23 | { 24 | "description": "exclusiveMinimum validation", 25 | "schema": { 26 | "minimum": 1.1, 27 | "exclusiveMinimum": true 28 | }, 29 | "tests": [ 30 | { 31 | "description": "above the minimum is still valid", 32 | "data": 1.2, 33 | "valid": true 34 | }, 35 | { 36 | "description": "boundary point is invalid", 37 | "data": 1.1, 38 | "valid": false 39 | } 40 | ] 41 | } 42 | ] 43 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "validation of null and format", 4 | "schema": {"type": ["null", "string"], "format": "date-time"}, 5 | "tests": [ 6 | { 7 | "description": "a valid date-time string", 8 | "data": "1963-06-19T08:30:06.283185Z", 9 | "valid": true 10 | }, 11 | { 12 | "description": "allow null", 13 | "data": null, 14 | "valid": true 15 | } 16 | ] 17 | } 18 | ] -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "multiple types of null and object containing properties", 4 | "schema": { 5 | "type": ["null", "object"], 6 | "properties": { 7 | "foo": {} 8 | } 9 | }, 10 | "tests": [ 11 | { 12 | "description": "null is valid", 13 | "data": null, 14 | "valid": true 15 | } 16 | ] 17 | } 18 | ] 19 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "pattern validation", 4 | "schema": {"pattern": "^a*$"}, 5 | "tests": [ 6 | { 7 | "description": "a matching pattern is valid", 8 | "data": "aaa", 9 | "valid": true 10 | }, 11 | { 12 | "description": "a non-matching pattern is invalid", 13 | "data": "abc", 14 | "valid": false 15 | }, 16 | { 17 | "description": "ignores non-strings", 18 | "data": true, 19 | "valid": true 20 | } 21 | ] 22 | } 23 | ] 24 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema-draft4/required.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "required validation", 4 | "schema": { 5 | "properties": { 6 | "foo": {}, 7 | "bar": {} 8 | }, 9 | "required": ["foo"] 10 | }, 11 | "tests": [ 12 | { 13 | "description": "present required property is valid", 14 | "data": {"foo": 1}, 15 | "valid": true 16 | }, 17 | { 18 | "description": "non-present required property is invalid", 19 | "data": {"bar": 1}, 20 | "valid": false 21 | } 22 | ] 23 | }, 24 | { 25 | "description": "required default validation", 26 | "schema": { 27 | "properties": { 28 | "foo": {} 29 | } 30 | }, 31 | "tests": [ 32 | { 33 | "description": "not required by default", 34 | "data": {}, 35 | "valid": true 36 | } 37 | ] 38 | } 39 | ] 40 | -------------------------------------------------------------------------------- /node_modules/is-my-json-valid/test/json-schema.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | var fs = require('fs') 3 | var validator = require('../') 4 | 5 | var files = fs.readdirSync(__dirname+'/json-schema-draft4') 6 | .map(function(file) { 7 | if (file === 'definitions.json') return null 8 | if (file === 'refRemote.json') return null 9 | return require('./json-schema-draft4/'+file) 10 | }) 11 | .filter(Boolean) 12 | 13 | files.forEach(function(file) { 14 | file.forEach(function(f) { 15 | tape('json-schema-test-suite '+f.description, function(t) { 16 | var validate = validator(f.schema) 17 | f.tests.forEach(function(test) { 18 | t.same(validate(test.data), test.valid, test.description) 19 | }) 20 | t.end() 21 | }) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /node_modules/is-property/.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 | *.DS_Store 17 | test/* -------------------------------------------------------------------------------- /node_modules/is-property/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2013 Mikola Lysenko 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/is-property/README.md: -------------------------------------------------------------------------------- 1 | is-property 2 | =========== 3 | Tests if a property of a JavaScript object can be accessed using the dot (.) notation or if it must be enclosed in brackets, (ie use x[" ... "]) 4 | 5 | Example 6 | ------- 7 | 8 | ```javascript 9 | var isProperty = require("is-property") 10 | 11 | console.log(isProperty("foo")) //Prints true 12 | console.log(isProperty("0")) //Prints false 13 | ``` 14 | 15 | Install 16 | ------- 17 | 18 | npm install is-property 19 | 20 | ### `require("is-property")(str)` 21 | Checks if str is a property 22 | 23 | * `str` is a string which we will test if it is a property or not 24 | 25 | **Returns** true or false depending if str is a property 26 | 27 | ## Credits 28 | (c) 2013 Mikola Lysenko. MIT License -------------------------------------------------------------------------------- /node_modules/is-typedarray/LICENSE.md: -------------------------------------------------------------------------------- 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/is-typedarray/README.md: -------------------------------------------------------------------------------- 1 | # is-typedarray [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) 2 | 3 | Detect whether or not an object is a 4 | [Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays). 5 | 6 | ## Usage 7 | 8 | [![NPM](https://nodei.co/npm/is-typedarray.png)](https://nodei.co/npm/is-typedarray/) 9 | 10 | ### isTypedArray(array) 11 | 12 | Returns `true` when array is a Typed Array, and `false` when it is not. 13 | 14 | ## License 15 | 16 | MIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details. 17 | -------------------------------------------------------------------------------- /node_modules/is-typedarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = isTypedArray 2 | isTypedArray.strict = isStrictTypedArray 3 | isTypedArray.loose = isLooseTypedArray 4 | 5 | var toString = Object.prototype.toString 6 | var names = { 7 | '[object Int8Array]': true 8 | , '[object Int16Array]': true 9 | , '[object Int32Array]': true 10 | , '[object Uint8Array]': true 11 | , '[object Uint8ClampedArray]': true 12 | , '[object Uint16Array]': true 13 | , '[object Uint32Array]': true 14 | , '[object Float32Array]': true 15 | , '[object Float64Array]': true 16 | } 17 | 18 | function isTypedArray(arr) { 19 | return ( 20 | isStrictTypedArray(arr) 21 | || isLooseTypedArray(arr) 22 | ) 23 | } 24 | 25 | function isStrictTypedArray(arr) { 26 | return ( 27 | arr instanceof Int8Array 28 | || arr instanceof Int16Array 29 | || arr instanceof Int32Array 30 | || arr instanceof Uint8Array 31 | || arr instanceof Uint8ClampedArray 32 | || arr instanceof Uint16Array 33 | || arr instanceof Uint32Array 34 | || arr instanceof Float32Array 35 | || arr instanceof Float64Array 36 | ) 37 | } 38 | 39 | function isLooseTypedArray(arr) { 40 | return names[toString.call(arr)] 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/is-typedarray/test.js: -------------------------------------------------------------------------------- 1 | var test = require('tape') 2 | var ista = require('./') 3 | 4 | test('strict', function(t) { 5 | t.ok(ista.strict(new Int8Array), 'Int8Array') 6 | t.ok(ista.strict(new Int16Array), 'Int16Array') 7 | t.ok(ista.strict(new Int32Array), 'Int32Array') 8 | t.ok(ista.strict(new Uint8Array), 'Uint8Array') 9 | t.ok(ista.strict(new Uint16Array), 'Uint16Array') 10 | t.ok(ista.strict(new Uint32Array), 'Uint32Array') 11 | t.ok(ista.strict(new Float32Array), 'Float32Array') 12 | t.ok(ista.strict(new Float64Array), 'Float64Array') 13 | 14 | t.ok(!ista.strict(new Array), 'Array') 15 | t.ok(!ista.strict([]), '[]') 16 | 17 | t.end() 18 | }) 19 | 20 | test('loose', function(t) { 21 | t.ok(ista.loose(new Int8Array), 'Int8Array') 22 | t.ok(ista.loose(new Int16Array), 'Int16Array') 23 | t.ok(ista.loose(new Int32Array), 'Int32Array') 24 | t.ok(ista.loose(new Uint8Array), 'Uint8Array') 25 | t.ok(ista.loose(new Uint16Array), 'Uint16Array') 26 | t.ok(ista.loose(new Uint32Array), 'Uint32Array') 27 | t.ok(ista.loose(new Float32Array), 'Float32Array') 28 | t.ok(ista.loose(new Float64Array), 'Float64Array') 29 | 30 | t.ok(!ista.loose(new Array), 'Array') 31 | t.ok(!ista.loose([]), '[]') 32 | 33 | t.end() 34 | }) 35 | -------------------------------------------------------------------------------- /node_modules/isstream/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "predef": [ ] 3 | , "bitwise": false 4 | , "camelcase": false 5 | , "curly": false 6 | , "eqeqeq": false 7 | , "forin": false 8 | , "immed": false 9 | , "latedef": false 10 | , "noarg": true 11 | , "noempty": true 12 | , "nonew": true 13 | , "plusplus": false 14 | , "quotmark": true 15 | , "regexp": false 16 | , "undef": true 17 | , "unused": true 18 | , "strict": false 19 | , "trailing": true 20 | , "maxlen": 120 21 | , "asi": true 22 | , "boss": true 23 | , "debug": true 24 | , "eqnull": true 25 | , "esnext": true 26 | , "evil": true 27 | , "expr": true 28 | , "funcscope": false 29 | , "globalstrict": false 30 | , "iterator": false 31 | , "lastsemic": true 32 | , "laxbreak": true 33 | , "laxcomma": true 34 | , "loopfunc": true 35 | , "multistr": false 36 | , "onecase": false 37 | , "proto": false 38 | , "regexdash": false 39 | , "scripturl": true 40 | , "smarttabs": false 41 | , "shadow": false 42 | , "sub": true 43 | , "supernew": false 44 | , "validthis": true 45 | , "browser": true 46 | , "couch": false 47 | , "devel": false 48 | , "dojo": false 49 | , "mootools": false 50 | , "node": true 51 | , "nonstandard": true 52 | , "prototypejs": false 53 | , "rhino": false 54 | , "worker": true 55 | , "wsh": false 56 | , "nomen": false 57 | , "onevar": false 58 | , "passfail": false 59 | } -------------------------------------------------------------------------------- /node_modules/isstream/.npmignore: -------------------------------------------------------------------------------- 1 | *.tgz 2 | -------------------------------------------------------------------------------- /node_modules/isstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | branches: 7 | only: 8 | - master 9 | notifications: 10 | email: 11 | - rod@vagg.org 12 | script: npm test 13 | -------------------------------------------------------------------------------- /node_modules/isstream/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | ===================== 3 | 4 | Copyright (c) 2015 Rod Vagg 5 | --------------------------- 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/isstream/isstream.js: -------------------------------------------------------------------------------- 1 | var stream = require('stream') 2 | 3 | 4 | function isStream (obj) { 5 | return obj instanceof stream.Stream 6 | } 7 | 8 | 9 | function isReadable (obj) { 10 | return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object' 11 | } 12 | 13 | 14 | function isWritable (obj) { 15 | return isStream(obj) && typeof obj._write == 'function' && typeof obj._writableState == 'object' 16 | } 17 | 18 | 19 | function isDuplex (obj) { 20 | return isReadable(obj) && isWritable(obj) 21 | } 22 | 23 | 24 | module.exports = isStream 25 | module.exports.isReadable = isReadable 26 | module.exports.isWritable = isWritable 27 | module.exports.isDuplex = isDuplex 28 | -------------------------------------------------------------------------------- /node_modules/jodid25519/.npmignore: -------------------------------------------------------------------------------- 1 | # Editor, IDE and dev environment stuff 2 | *~ 3 | .project 4 | .settings 5 | 6 | # Build files and directories 7 | /coverage 8 | /doc/api 9 | /build/ 10 | /test/ 11 | /jodid25519-*.tgz 12 | -------------------------------------------------------------------------------- /node_modules/jodid25519/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | branches: 6 | only: 7 | - master 8 | -------------------------------------------------------------------------------- /node_modules/jodid25519/AUTHORS.md: -------------------------------------------------------------------------------- 1 | * Michele Bini (original Curve25519 core code: curve25519.js) 2 | * Ron Garret (original Ed25519 code: fast-djbec.js) 3 | * Guy Kloss (package refactoring, unit testing) 4 | -------------------------------------------------------------------------------- /node_modules/jodid25519/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Ron Garret 4 | Copyright (c) 2007, 2013, 2014 Michele Bini 5 | Copyright (c) 2014 Mega Limited 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/jodid25519/almond.1: -------------------------------------------------------------------------------- 1 | if (typeof module === 'object' && module.exports) { 2 | // Restore CommonJS exports once our dependencies have all finished 3 | // loading. 4 | module = __oldModule; 5 | exports = __oldExports; 6 | } 7 | // The modules for your project will be inlined above 8 | // this snippet. Ask almond to synchronously require the 9 | // module value for 'main' here and return it as the 10 | // value to use for the public API for the built file. 11 | return require('jodid25519'); 12 | })); 13 | // See https://github.com/jrburke/almond#exporting-a-public-api 14 | -------------------------------------------------------------------------------- /node_modules/jodid25519/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | /* 4 | * Copyright (c) 2014 Mega Limited 5 | * under the MIT License. 6 | * 7 | * Authors: Guy K. Kloss 8 | * 9 | * You should have received a copy of the license along with this program. 10 | */ 11 | 12 | var dh = require('./lib/dh'); 13 | var eddsa = require('./lib/eddsa'); 14 | var curve255 = require('./lib/curve255'); 15 | var utils = require('./lib/utils'); 16 | 17 | /** 18 | * @exports jodid25519 19 | * Curve 25519-based cryptography collection. 20 | * 21 | * @description 22 | * EC Diffie-Hellman (ECDH) based on Curve25519 and digital signatures 23 | * (EdDSA) based on Ed25519. 24 | */ 25 | var ns = {}; 26 | 27 | /** Module version indicator as string (format: [major.minor.patch]). */ 28 | ns.VERSION = '0.7.1'; 29 | 30 | ns.dh = dh; 31 | ns.eddsa = eddsa; 32 | ns.curve255 = curve255; 33 | ns.utils = utils; 34 | 35 | module.exports = ns; 36 | -------------------------------------------------------------------------------- /node_modules/jodid25519/jsdoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "templates": { 3 | "applicationName": "jodid25519 Library", 4 | "disqus": "", 5 | "googleAnalytics": "", 6 | "openGraph": { 7 | "title": "jodid25519 Library", 8 | "type": "website", 9 | "image": "", 10 | "site_name": "", 11 | "url": "" 12 | }, 13 | "meta": { 14 | "title": "jodid25519 Library", 15 | "description": "", 16 | "keyword": "" 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/jsbn/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store -------------------------------------------------------------------------------- /node_modules/jsbn/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/jsbn/example.js: -------------------------------------------------------------------------------- 1 | var BigInteger = require('./'); 2 | var a = new BigInteger('91823918239182398123'); 3 | console.log(a.bitLength()); -------------------------------------------------------------------------------- /node_modules/json-schema/README.md: -------------------------------------------------------------------------------- 1 | JSON Schema is a repository for the JSON Schema specification, reference schemas and a CommonJS implementation of JSON Schema (not the only JavaScript implementation of JSON Schema, JSV is another excellent JavaScript validator). 2 | 3 | Code is licensed under the AFL or BSD license as part of the Persevere 4 | project which is administered under the Dojo foundation, 5 | and all contributions require a Dojo CLA. -------------------------------------------------------------------------------- /node_modules/json-schema/draft-00/json-ref: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-00/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-00/json-ref#", 4 | 5 | "items" : {"$ref" : "#"}, 6 | "additionalProperties" : {"$ref" : "#"}, 7 | 8 | "links" : [ 9 | { 10 | "href" : "{$ref}", 11 | "rel" : "full" 12 | }, 13 | 14 | { 15 | "href" : "{$schema}", 16 | "rel" : "describedby" 17 | }, 18 | 19 | { 20 | "href" : "{id}", 21 | "rel" : "self" 22 | } 23 | ], 24 | 25 | "fragmentResolution" : "dot-delimited" 26 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-00/links: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-00/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-00/links#", 4 | "type" : "object", 5 | 6 | "properties" : { 7 | "href" : { 8 | "type" : "string" 9 | }, 10 | 11 | "rel" : { 12 | "type" : "string" 13 | }, 14 | 15 | "method" : { 16 | "type" : "string", 17 | "default" : "GET", 18 | "optional" : true 19 | }, 20 | 21 | "enctype" : { 22 | "type" : "string", 23 | "requires" : "method", 24 | "optional" : true 25 | }, 26 | 27 | "properties" : { 28 | "type" : "object", 29 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-00/hyper-schema#"}, 30 | "optional" : true 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-01/json-ref: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-01/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-01/json-ref#", 4 | 5 | "items" : {"$ref" : "#"}, 6 | "additionalProperties" : {"$ref" : "#"}, 7 | 8 | "links" : [ 9 | { 10 | "href" : "{$ref}", 11 | "rel" : "full" 12 | }, 13 | 14 | { 15 | "href" : "{$schema}", 16 | "rel" : "describedby" 17 | }, 18 | 19 | { 20 | "href" : "{id}", 21 | "rel" : "self" 22 | } 23 | ], 24 | 25 | "fragmentResolution" : "dot-delimited" 26 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-01/links: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-01/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-01/links#", 4 | "type" : "object", 5 | 6 | "properties" : { 7 | "href" : { 8 | "type" : "string" 9 | }, 10 | 11 | "rel" : { 12 | "type" : "string" 13 | }, 14 | 15 | "method" : { 16 | "type" : "string", 17 | "default" : "GET", 18 | "optional" : true 19 | }, 20 | 21 | "enctype" : { 22 | "type" : "string", 23 | "requires" : "method", 24 | "optional" : true 25 | }, 26 | 27 | "properties" : { 28 | "type" : "object", 29 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-01/hyper-schema#"}, 30 | "optional" : true 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-02/json-ref: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-02/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-02/json-ref#", 4 | 5 | "items" : {"$ref" : "#"}, 6 | "additionalProperties" : {"$ref" : "#"}, 7 | 8 | "links" : [ 9 | { 10 | "href" : "{$ref}", 11 | "rel" : "full" 12 | }, 13 | 14 | { 15 | "href" : "{$schema}", 16 | "rel" : "describedby" 17 | }, 18 | 19 | { 20 | "href" : "{id}", 21 | "rel" : "self" 22 | } 23 | ], 24 | 25 | "fragmentResolution" : "dot-delimited" 26 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-02/links: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-02/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-02/links#", 4 | "type" : "object", 5 | 6 | "properties" : { 7 | "href" : { 8 | "type" : "string" 9 | }, 10 | 11 | "rel" : { 12 | "type" : "string" 13 | }, 14 | 15 | "targetSchema" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"}, 16 | 17 | "method" : { 18 | "type" : "string", 19 | "default" : "GET", 20 | "optional" : true 21 | }, 22 | 23 | "enctype" : { 24 | "type" : "string", 25 | "requires" : "method", 26 | "optional" : true 27 | }, 28 | 29 | "properties" : { 30 | "type" : "object", 31 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"}, 32 | "optional" : true 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/examples/address: -------------------------------------------------------------------------------- 1 | { 2 | "description" : "An Address following the convention of http://microformats.org/wiki/hcard", 3 | "type" : "object", 4 | "properties" : { 5 | "post-office-box" : { "type" : "string" }, 6 | "extended-address" : { "type" : "string" }, 7 | "street-address" : { "type":"string" }, 8 | "locality" : { "type" : "string", "required" : true }, 9 | "region" : { "type" : "string", "required" : true }, 10 | "postal-code" : { "type" : "string" }, 11 | "country-name" : { "type" : "string", "required" : true } 12 | }, 13 | "dependencies" : { 14 | "post-office-box" : "street-address", 15 | "extended-address" : "street-address", 16 | "street-address" : "region", 17 | "locality" : "region", 18 | "region" : "country-name" 19 | } 20 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/examples/calendar: -------------------------------------------------------------------------------- 1 | { 2 | "description" : "A representation of an event", 3 | "type" : "object", 4 | "properties" : { 5 | "dtstart" : { 6 | "format" : "date-time", 7 | "type" : "string", 8 | "description" : "Event starting time", 9 | "required":true 10 | }, 11 | "summary" : { 12 | "type":"string", 13 | "required":true 14 | }, 15 | "location" : { 16 | "type" : "string" 17 | }, 18 | "url" : { 19 | "type" : "string", 20 | "format" : "url" 21 | }, 22 | "dtend" : { 23 | "format" : "date-time", 24 | "type" : "string", 25 | "description" : "Event ending time" 26 | }, 27 | "duration" : { 28 | "format" : "date", 29 | "type" : "string", 30 | "description" : "Event duration" 31 | }, 32 | "rdate" : { 33 | "format" : "date-time", 34 | "type" : "string", 35 | "description" : "Recurrence date" 36 | }, 37 | "rrule" : { 38 | "type" : "string", 39 | "description" : "Recurrence rule" 40 | }, 41 | "category" : { 42 | "type" : "string" 43 | }, 44 | "description" : { 45 | "type" : "string" 46 | }, 47 | "geo" : { "$ref" : "http://json-schema.org/draft-03/geo" } 48 | } 49 | } 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/examples/geo: -------------------------------------------------------------------------------- 1 | { 2 | "description" : "A geographical coordinate", 3 | "type" : "object", 4 | "properties" : { 5 | "latitude" : { "type" : "number" }, 6 | "longitude" : { "type" : "number" } 7 | } 8 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/examples/interfaces: -------------------------------------------------------------------------------- 1 | { 2 | "extends":"http://json-schema.org/hyper-schema", 3 | "description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax", 4 | "properties":{ 5 | "methods":{ 6 | "type":"object", 7 | "description":"This defines the set of methods available to the class instances", 8 | "additionalProperties":{ 9 | "type":"object", 10 | "description":"The definition of the method", 11 | "properties":{ 12 | "parameters":{ 13 | "type":"array", 14 | "description":"The set of parameters that should be passed to the method when it is called", 15 | "items":{"$ref":"#"}, 16 | "required": true 17 | }, 18 | "returns":{"$ref":"#"} 19 | } 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/hyper-schema: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-03/hyper-schema#", 3 | "extends" : {"$ref" : "http://json-schema.org/draft-03/schema#"}, 4 | "id" : "http://json-schema.org/draft-03/hyper-schema#", 5 | 6 | "properties" : { 7 | "links" : { 8 | "type" : "array", 9 | "items" : {"$ref" : "http://json-schema.org/draft-03/links#"} 10 | }, 11 | 12 | "fragmentResolution" : { 13 | "type" : "string", 14 | "default" : "slash-delimited" 15 | }, 16 | 17 | "root" : { 18 | "type" : "boolean", 19 | "default" : false 20 | }, 21 | 22 | "readonly" : { 23 | "type" : "boolean", 24 | "default" : false 25 | }, 26 | 27 | "contentEncoding" : { 28 | "type" : "string" 29 | }, 30 | 31 | "pathStart" : { 32 | "type" : "string", 33 | "format" : "uri" 34 | }, 35 | 36 | "mediaType" : { 37 | "type" : "string", 38 | "format" : "media-type" 39 | } 40 | }, 41 | 42 | "links" : [ 43 | { 44 | "href" : "{id}", 45 | "rel" : "self" 46 | }, 47 | 48 | { 49 | "href" : "{$ref}", 50 | "rel" : "full" 51 | }, 52 | 53 | { 54 | "href" : "{$schema}", 55 | "rel" : "describedby" 56 | } 57 | ], 58 | 59 | "fragmentResolution" : "slash-delimited" 60 | } 61 | -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/json-ref: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-03/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-03/json-ref#", 4 | 5 | "additionalItems" : {"$ref" : "#"}, 6 | "additionalProperties" : {"$ref" : "#"}, 7 | 8 | "links" : [ 9 | { 10 | "href" : "{id}", 11 | "rel" : "self" 12 | }, 13 | 14 | { 15 | "href" : "{$ref}", 16 | "rel" : "full" 17 | }, 18 | 19 | { 20 | "href" : "{$schema}", 21 | "rel" : "describedby" 22 | } 23 | ], 24 | 25 | "fragmentResolution" : "dot-delimited" 26 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-03/links: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-03/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-03/links#", 4 | "type" : "object", 5 | 6 | "properties" : { 7 | "href" : { 8 | "type" : "string", 9 | "required" : true, 10 | "format" : "link-description-object-template" 11 | }, 12 | 13 | "rel" : { 14 | "type" : "string", 15 | "required" : true 16 | }, 17 | 18 | "targetSchema" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"}, 19 | 20 | "method" : { 21 | "type" : "string", 22 | "default" : "GET" 23 | }, 24 | 25 | "enctype" : { 26 | "type" : "string", 27 | "requires" : "method" 28 | }, 29 | 30 | "properties" : { 31 | "type" : "object", 32 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"} 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /node_modules/json-schema/draft-04/hyper-schema: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-04/hyper-schema#", 3 | "extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"}, 4 | "id" : "http://json-schema.org/draft-04/hyper-schema#", 5 | 6 | "properties" : { 7 | "links" : { 8 | "type" : "array", 9 | "items" : {"$ref" : "http://json-schema.org/draft-04/links#"} 10 | }, 11 | 12 | "fragmentResolution" : { 13 | "type" : "string", 14 | "default" : "json-pointer" 15 | }, 16 | 17 | "root" : { 18 | "type" : "boolean", 19 | "default" : false 20 | }, 21 | 22 | "readonly" : { 23 | "type" : "boolean", 24 | "default" : false 25 | }, 26 | 27 | "contentEncoding" : { 28 | "type" : "string" 29 | }, 30 | 31 | "pathStart" : { 32 | "type" : "string", 33 | "format" : "uri" 34 | }, 35 | 36 | "mediaType" : { 37 | "type" : "string", 38 | "format" : "media-type" 39 | } 40 | }, 41 | 42 | "links" : [ 43 | { 44 | "href" : "{id}", 45 | "rel" : "self" 46 | }, 47 | 48 | { 49 | "href" : "{$ref}", 50 | "rel" : "full" 51 | }, 52 | 53 | { 54 | "href" : "{$schema}", 55 | "rel" : "describedby" 56 | } 57 | ], 58 | 59 | "fragmentResolution" : "json-pointer" 60 | } 61 | -------------------------------------------------------------------------------- /node_modules/json-schema/draft-04/links: -------------------------------------------------------------------------------- 1 | { 2 | "$schema" : "http://json-schema.org/draft-04/hyper-schema#", 3 | "id" : "http://json-schema.org/draft-04/links#", 4 | "type" : "object", 5 | 6 | "properties" : { 7 | "rel" : { 8 | "type" : "string" 9 | }, 10 | 11 | "href" : { 12 | "type" : "string" 13 | }, 14 | 15 | "template" : { 16 | "type" : "string" 17 | }, 18 | 19 | "targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}, 20 | 21 | "method" : { 22 | "type" : "string", 23 | "default" : "GET" 24 | }, 25 | 26 | "enctype" : { 27 | "type" : "string" 28 | }, 29 | 30 | "properties" : { 31 | "type" : "object", 32 | "additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"} 33 | } 34 | }, 35 | 36 | "required" : ["rel", "href"], 37 | 38 | "dependencies" : { 39 | "enctype" : "method" 40 | } 41 | } -------------------------------------------------------------------------------- /node_modules/json-stringify-safe/.npmignore: -------------------------------------------------------------------------------- 1 | /*.tgz 2 | -------------------------------------------------------------------------------- /node_modules/json-stringify-safe/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## Unreleased 2 | - Fixes stringify to only take ancestors into account when checking 3 | circularity. 4 | It previously assumed every visited object was circular which led to [false 5 | positives][issue9]. 6 | Uses the tiny serializer I wrote for [Must.js][must] a year and a half ago. 7 | - Fixes calling the `replacer` function in the proper context (`thisArg`). 8 | - Fixes calling the `cycleReplacer` function in the proper context (`thisArg`). 9 | - Speeds serializing by a factor of 10 | Big-O(h-my-god-it-linearly-searched-every-object) it had ever seen. Searching 11 | only the ancestors for a circular references speeds up things considerably. 12 | 13 | [must]: https://github.com/moll/js-must 14 | [issue9]: https://github.com/isaacs/json-stringify-safe/issues/9 15 | -------------------------------------------------------------------------------- /node_modules/json-stringify-safe/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/json-stringify-safe/Makefile: -------------------------------------------------------------------------------- 1 | NODE_OPTS = 2 | TEST_OPTS = 3 | 4 | love: 5 | @echo "Feel like makin' love." 6 | 7 | test: 8 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS) 9 | 10 | spec: 11 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS) 12 | 13 | autotest: 14 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS) 15 | 16 | autospec: 17 | @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS) 18 | 19 | pack: 20 | @file=$$(npm pack); echo "$$file"; tar tf "$$file" 21 | 22 | publish: 23 | npm publish 24 | 25 | tag: 26 | git tag "v$$(node -e 'console.log(require("./package").version)')" 27 | 28 | clean: 29 | rm -f *.tgz 30 | npm prune --production 31 | 32 | .PHONY: love 33 | .PHONY: test spec autotest autospec 34 | .PHONY: pack publish tag 35 | .PHONY: clean 36 | -------------------------------------------------------------------------------- /node_modules/json-stringify-safe/stringify.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = stringify 2 | exports.getSerialize = serializer 3 | 4 | function stringify(obj, replacer, spaces, cycleReplacer) { 5 | return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces) 6 | } 7 | 8 | function serializer(replacer, cycleReplacer) { 9 | var stack = [], keys = [] 10 | 11 | if (cycleReplacer == null) cycleReplacer = function(key, value) { 12 | if (stack[0] === value) return "[Circular ~]" 13 | return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]" 14 | } 15 | 16 | return function(key, value) { 17 | if (stack.length > 0) { 18 | var thisPos = stack.indexOf(this) 19 | ~thisPos ? stack.splice(thisPos + 1) : stack.push(this) 20 | ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key) 21 | if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value) 22 | } 23 | else stack.push(value) 24 | 25 | return replacer == null ? value : replacer.call(this, key, value) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/json-stringify-safe/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --recursive 2 | --require must 3 | -------------------------------------------------------------------------------- /node_modules/jsonpointer/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2015 Jan Lehnardt & Marc Bachmann 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/jsonpointer/README.md: -------------------------------------------------------------------------------- 1 | # JSON Pointer for nodejs 2 | 3 | This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08). 4 | 5 | ## Usage 6 | ```javascript 7 | var jsonpointer = require('jsonpointer'); 8 | var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; 9 | 10 | jsonpointer.get(obj, '/foo'); // returns 1 11 | jsonpointer.get(obj, '/bar/baz'); // returns 2 12 | jsonpointer.get(obj, '/qux/0'); // returns 3 13 | jsonpointer.get(obj, '/qux/1'); // returns 4 14 | jsonpointer.get(obj, '/qux/2'); // returns 5 15 | jsonpointer.get(obj, '/quo'); // returns undefined 16 | 17 | jsonpointer.set(obj, '/foo', 6); // sets obj.foo = 6; 18 | jsonpointer.set(obj, '/qux/-', 6) // sets obj.qux = [3, 4, 5, 6] 19 | 20 | var pointer = jsonpointer.compile('/foo') 21 | pointer.get(obj) // returns 1 22 | pointer.set(obj, 1) // sets obj.foo = 1 23 | ``` 24 | 25 | ## Testing 26 | 27 | $ node test.js 28 | All tests pass. 29 | $ 30 | 31 | [![Build Status](https://travis-ci.org/janl/node-jsonpointer.png?branch=master)](https://travis-ci.org/janl/node-jsonpointer) 32 | 33 | ## Author 34 | 35 | (c) 2011-2015 Jan Lehnardt & Marc Bachmann 36 | 37 | ## License 38 | 39 | MIT License. 40 | -------------------------------------------------------------------------------- /node_modules/jsprim/CHANGES.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## not yet released 4 | 5 | None yet. 6 | 7 | ## v1.3.1 (2016-09-12) 8 | 9 | * #13 Incompatible with webpack 10 | 11 | ## v1.3.0 (2016-06-22) 12 | 13 | * #14 add safer version of hasOwnProperty() 14 | * #15 forEachKey() should ignore inherited properties 15 | 16 | ## v1.2.2 (2015-10-15) 17 | 18 | * #11 NPM package shouldn't include any code that does `require('JSV')` 19 | * #12 jsl.node.conf missing definition for "module" 20 | 21 | ## v1.2.1 (2015-10-14) 22 | 23 | * #8 odd date parsing behaviour 24 | 25 | ## v1.2.0 (2015-10-13) 26 | 27 | * #9 want function for returning RFC1123 dates 28 | 29 | ## v1.1.0 (2015-09-02) 30 | 31 | * #6 a new suite of hrtime manipulation routines: `hrtimeAdd()`, 32 | `hrtimeAccum()`, `hrtimeNanosec()`, `hrtimeMicrosec()` and 33 | `hrtimeMillisec()`. 34 | 35 | ## v1.0.0 (2015-09-01) 36 | 37 | First tracked release. Includes everything in previous releases, plus: 38 | 39 | * #4 want function for merging objects 40 | -------------------------------------------------------------------------------- /node_modules/jsprim/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Joyent, Inc. 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 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/mime-db/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | 4 | Copyright (c) 2014 Jonathan Ong me@jongleberry.com 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = require('./db.json') 12 | -------------------------------------------------------------------------------- /node_modules/mime-types/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Jonathan Ong 4 | Copyright (c) 2015 Douglas Christopher Wilson 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining 7 | a copy of this software and associated documentation files (the 8 | 'Software'), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /node_modules/mime/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/mime/.npmignore -------------------------------------------------------------------------------- /node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 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/mime/build/build.js: -------------------------------------------------------------------------------- 1 | var db = require('mime-db'); 2 | 3 | var mapByType = {}; 4 | Object.keys(db).forEach(function(key) { 5 | var extensions = db[key].extensions; 6 | if (extensions) { 7 | mapByType[key] = extensions; 8 | } 9 | }); 10 | 11 | console.log(JSON.stringify(mapByType)); 12 | -------------------------------------------------------------------------------- /node_modules/mime/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mime = require('./mime.js'); 4 | var file = process.argv[2]; 5 | var type = mime.lookup(file); 6 | 7 | process.stdout.write(type + '\n'); 8 | 9 | -------------------------------------------------------------------------------- /node_modules/oauth-sign/README.md: -------------------------------------------------------------------------------- 1 | oauth-sign 2 | ========== 3 | 4 | OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/pinkie-promise/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = typeof Promise === 'function' ? Promise : require('pinkie'); 4 | -------------------------------------------------------------------------------- /node_modules/pinkie-promise/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) 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/pinkie-promise/readme.md: -------------------------------------------------------------------------------- 1 | # pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie-promise) 2 | 3 | > [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) ponyfill 4 | 5 | Module exports global Promise object (if available) or [`pinkie`](http://github.com/floatdrop/pinkie) Promise polyfill. 6 | 7 | ## Install 8 | 9 | ``` 10 | $ npm install --save pinkie-promise 11 | ``` 12 | 13 | ## Usage 14 | 15 | ```js 16 | var Promise = require('pinkie-promise'); 17 | 18 | new Promise(function (resolve) { resolve('unicorns'); }); 19 | //=> Promise { 'unicorns' } 20 | ``` 21 | 22 | ## Related 23 | 24 | - [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function 25 | 26 | ## License 27 | 28 | MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop) 29 | -------------------------------------------------------------------------------- /node_modules/pinkie/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Vsevolod Strukchinsky (github.com/floatdrop) 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/punycode/LICENSE-MIT.txt: -------------------------------------------------------------------------------- 1 | Copyright Mathias Bynens 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a 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 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /node_modules/qs/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "complexity": [2, 25], 8 | "consistent-return": [1], 9 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], 10 | "indent": [2, 4], 11 | "max-params": [2, 11], 12 | "max-statements": [2, 42], 13 | "no-extra-parens": [1], 14 | "no-continue": [1], 15 | "no-magic-numbers": 0, 16 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], 17 | "operator-linebreak": 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | module.exports = { 7 | 'default': 'RFC3986', 8 | formatters: { 9 | RFC1738: function (value) { 10 | return replace.call(value, percentTwenties, '+'); 11 | }, 12 | RFC3986: function (value) { 13 | return value; 14 | } 15 | }, 16 | RFC1738: 'RFC1738', 17 | RFC3986: 'RFC3986' 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/qs/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "max-lines": 0, 4 | "max-nested-callbacks": [2, 3], 5 | "max-statements": 0, 6 | "no-extend-native": 0, 7 | "sort-keys": 1 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/qs/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./parse'); 4 | 5 | require('./stringify'); 6 | 7 | require('./utils'); 8 | -------------------------------------------------------------------------------- /node_modules/qs/test/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var utils = require('../lib/utils'); 5 | 6 | test('merge()', function (t) { 7 | t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); 8 | 9 | var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } }); 10 | t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array'); 11 | 12 | var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } }); 13 | t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array'); 14 | 15 | var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' }); 16 | t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array'); 17 | 18 | var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] }); 19 | t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] }); 20 | 21 | t.end(); 22 | }); 23 | -------------------------------------------------------------------------------- /node_modules/request/lib/cookies.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var tough = require('tough-cookie') 4 | 5 | var Cookie = tough.Cookie 6 | , CookieJar = tough.CookieJar 7 | 8 | 9 | exports.parse = function(str) { 10 | if (str && str.uri) { 11 | str = str.uri 12 | } 13 | if (typeof str !== 'string') { 14 | throw new Error('The cookie function only accepts STRING as param') 15 | } 16 | return Cookie.parse(str, {loose: true}) 17 | } 18 | 19 | // Adapt the sometimes-Async api of tough.CookieJar to our requirements 20 | function RequestJar(store) { 21 | var self = this 22 | self._jar = new CookieJar(store, {looseMode: true}) 23 | } 24 | RequestJar.prototype.setCookie = function(cookieOrStr, uri, options) { 25 | var self = this 26 | return self._jar.setCookieSync(cookieOrStr, uri, options || {}) 27 | } 28 | RequestJar.prototype.getCookieString = function(uri) { 29 | var self = this 30 | return self._jar.getCookieStringSync(uri) 31 | } 32 | RequestJar.prototype.getCookies = function(uri) { 33 | var self = this 34 | return self._jar.getCookiesSync(uri) 35 | } 36 | 37 | exports.jar = function(store) { 38 | return new RequestJar(store) 39 | } 40 | -------------------------------------------------------------------------------- /node_modules/sntp/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /node_modules/sntp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /node_modules/sntp/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -t 100 -m 3000 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | 8 | .PHONY: test test-cov test-cov-html 9 | 10 | -------------------------------------------------------------------------------- /node_modules/sntp/examples/offset.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // Request offset once 4 | 5 | Sntp.offset(function (err, offset) { 6 | 7 | console.log(offset); // New (served fresh) 8 | 9 | // Request offset again 10 | 11 | Sntp.offset(function (err, offset) { 12 | 13 | console.log(offset); // Identical (served from cache) 14 | }); 15 | }); 16 | 17 | -------------------------------------------------------------------------------- /node_modules/sntp/examples/time.js: -------------------------------------------------------------------------------- 1 | var Sntp = require('../lib'); 2 | 3 | // All options are optional 4 | 5 | var options = { 6 | host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org 7 | port: 123, // Defaults to 123 (NTP) 8 | resolveReference: true, // Default to false (not resolving) 9 | timeout: 1000 // Defaults to zero (no timeout) 10 | }; 11 | 12 | // Request server time 13 | 14 | Sntp.time(options, function (err, time) { 15 | 16 | if (err) { 17 | console.log('Failed: ' + err.message); 18 | process.exit(1); 19 | } 20 | 21 | console.log(time); 22 | console.log('Local clock is off by: ' + time.t + ' milliseconds'); 23 | process.exit(0); 24 | }); 25 | 26 | -------------------------------------------------------------------------------- /node_modules/sntp/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /node_modules/sshpk/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools 8 | coverage 9 | man/src 10 | -------------------------------------------------------------------------------- /node_modules/sshpk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "5.10" 4 | - "4.4" 5 | - "4.1" 6 | - "0.12" 7 | - "0.10" 8 | before_install: 9 | - "make check" 10 | after_success: 11 | - '[ "${TRAVIS_NODE_VERSION}" = "4.4" ] && make codecovio' 12 | -------------------------------------------------------------------------------- /node_modules/sshpk/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright Joyent, Inc. 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/sshpk/lib/index.js: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Joyent, Inc. 2 | 3 | var Key = require('./key'); 4 | var Fingerprint = require('./fingerprint'); 5 | var Signature = require('./signature'); 6 | var PrivateKey = require('./private-key'); 7 | var Certificate = require('./certificate'); 8 | var Identity = require('./identity'); 9 | var errs = require('./errors'); 10 | 11 | module.exports = { 12 | /* top-level classes */ 13 | Key: Key, 14 | parseKey: Key.parse, 15 | Fingerprint: Fingerprint, 16 | parseFingerprint: Fingerprint.parse, 17 | Signature: Signature, 18 | parseSignature: Signature.parse, 19 | PrivateKey: PrivateKey, 20 | parsePrivateKey: PrivateKey.parse, 21 | Certificate: Certificate, 22 | parseCertificate: Certificate.parse, 23 | createSelfSignedCertificate: Certificate.createSelfSigned, 24 | createCertificate: Certificate.create, 25 | Identity: Identity, 26 | identityFromDN: Identity.parseDN, 27 | identityForHost: Identity.forHost, 28 | identityForUser: Identity.forUser, 29 | identityForEmail: Identity.forEmail, 30 | 31 | /* errors */ 32 | FingerprintFormatError: errs.FingerprintFormatError, 33 | InvalidAlgorithmError: errs.InvalidAlgorithmError, 34 | KeyParseError: errs.KeyParseError, 35 | SignatureParseError: errs.SignatureParseError, 36 | KeyEncryptedError: errs.KeyEncryptedError, 37 | CertificateParseError: errs.CertificateParseError 38 | }; 39 | -------------------------------------------------------------------------------- /node_modules/sshpk/node_modules/assert-plus/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Eddy 2 | Fred Kuo 3 | Lars-Magnus Skog 4 | Mark Cavage 5 | Patrick Mooney 6 | Rob Gulewich 7 | -------------------------------------------------------------------------------- /node_modules/sshpk/node_modules/assert-plus/CHANGES.md: -------------------------------------------------------------------------------- 1 | # assert-plus Changelog 2 | 3 | ## 1.0.0 4 | 5 | - *BREAKING* assert.number (and derivatives) now accept Infinity as valid input 6 | - Add assert.finite check. Previous assert.number callers should use this if 7 | they expect Infinity inputs to throw. 8 | 9 | ## 0.2.0 10 | 11 | - Fix `assert.object(null)` so it throws 12 | - Fix optional/arrayOf exports for non-type-of asserts 13 | - Add optiona/arrayOf exports for Stream/Date/Regex/uuid 14 | - Add basic unit test coverage 15 | -------------------------------------------------------------------------------- /node_modules/stringstream/.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 | node_modules 15 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/stringstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/stringstream/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Michael Hart (michael.hart.au@gmail.com) 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/stringstream/README.md: -------------------------------------------------------------------------------- 1 | # Decode streams into strings The Right Way(tm) 2 | 3 | ```javascript 4 | var fs = require('fs') 5 | var zlib = require('zlib') 6 | var strs = require('stringstream') 7 | 8 | var utf8Stream = fs.createReadStream('massiveLogFile.gz') 9 | .pipe(zlib.createGunzip()) 10 | .pipe(strs('utf8')) 11 | ``` 12 | 13 | No need to deal with `setEncoding()` weirdness, just compose streams 14 | like they were supposed to be! 15 | 16 | Handles input and output encoding: 17 | 18 | ```javascript 19 | // Stream from utf8 to hex to base64... Why not, ay. 20 | var hex64Stream = fs.createReadStream('myFile') 21 | .pipe(strs('utf8', 'hex')) 22 | .pipe(strs('hex', 'base64')) 23 | ``` 24 | 25 | Also deals with `base64` output correctly by aligning each emitted data 26 | chunk so that there are no dangling `=` characters: 27 | 28 | ```javascript 29 | var stream = fs.createReadStream('myFile').pipe(strs('base64')) 30 | 31 | var base64Str = '' 32 | 33 | stream.on('data', function(data) { base64Str += data }) 34 | stream.on('end', function() { 35 | console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding() 36 | console.log('Original file is: ' + new Buffer(base64Str, 'base64')) 37 | }) 38 | ``` 39 | -------------------------------------------------------------------------------- /node_modules/stringstream/example.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | var zlib = require('zlib') 3 | var strs = require('stringstream') 4 | 5 | var utf8Stream = fs.createReadStream('massiveLogFile.gz') 6 | .pipe(zlib.createGunzip()) 7 | .pipe(strs('utf8')) 8 | 9 | utf8Stream.pipe(process.stdout) 10 | 11 | // Stream from utf8 to hex to base64... Why not, ay. 12 | var hex64Stream = fs.createReadStream('myFile') 13 | .pipe(strs('utf8', 'hex')) 14 | .pipe(strs('hex', 'base64')) 15 | 16 | hex64Stream.pipe(process.stdout) 17 | 18 | // Deals with base64 correctly by aligning chunks 19 | var stream = fs.createReadStream('myFile').pipe(strs('base64')) 20 | 21 | var base64Str = '' 22 | 23 | stream.on('data', function(data) { base64Str += data }) 24 | stream.on('end', function() { 25 | console.log('My base64 encoded file is: ' + base64Str) // Wouldn't work with setEncoding() 26 | console.log('Original file is: ' + new Buffer(base64Str, 'base64')) 27 | }) 28 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex')(); 3 | 4 | module.exports = function (str) { 5 | return typeof str === 'string' ? str.replace(ansiRegex, '') : str; 6 | }; 7 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/strip-ansi/readme.md: -------------------------------------------------------------------------------- 1 | # strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi) 2 | 3 | > Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save strip-ansi 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | var stripAnsi = require('strip-ansi'); 17 | 18 | stripAnsi('\u001b[4mcake\u001b[0m'); 19 | //=> 'cake' 20 | ``` 21 | 22 | 23 | ## Related 24 | 25 | - [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module 26 | - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes 27 | - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes 28 | - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right 29 | 30 | 31 | ## License 32 | 33 | MIT © [Sindre Sorhus](http://sindresorhus.com) 34 | -------------------------------------------------------------------------------- /node_modules/supports-color/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var argv = process.argv; 3 | 4 | var terminator = argv.indexOf('--'); 5 | var hasFlag = function (flag) { 6 | flag = '--' + flag; 7 | var pos = argv.indexOf(flag); 8 | return pos !== -1 && (terminator !== -1 ? pos < terminator : true); 9 | }; 10 | 11 | module.exports = (function () { 12 | if ('FORCE_COLOR' in process.env) { 13 | return true; 14 | } 15 | 16 | if (hasFlag('no-color') || 17 | hasFlag('no-colors') || 18 | hasFlag('color=false')) { 19 | return false; 20 | } 21 | 22 | if (hasFlag('color') || 23 | hasFlag('colors') || 24 | hasFlag('color=true') || 25 | hasFlag('color=always')) { 26 | return true; 27 | } 28 | 29 | if (process.stdout && !process.stdout.isTTY) { 30 | return false; 31 | } 32 | 33 | if (process.platform === 'win32') { 34 | return true; 35 | } 36 | 37 | if ('COLORTERM' in process.env) { 38 | return true; 39 | } 40 | 41 | if (process.env.TERM === 'dumb') { 42 | return false; 43 | } 44 | 45 | if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { 46 | return true; 47 | } 48 | 49 | return false; 50 | })(); 51 | -------------------------------------------------------------------------------- /node_modules/supports-color/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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/supports-color/readme.md: -------------------------------------------------------------------------------- 1 | # supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) 2 | 3 | > Detect whether a terminal supports color 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save supports-color 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | var supportsColor = require('supports-color'); 17 | 18 | if (supportsColor) { 19 | console.log('Terminal supports color'); 20 | } 21 | ``` 22 | 23 | It obeys the `--color` and `--no-color` CLI flags. 24 | 25 | For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`. 26 | 27 | 28 | ## Related 29 | 30 | - [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module 31 | - [chalk](https://github.com/chalk/chalk) - Terminal string styling done right 32 | 33 | 34 | ## License 35 | 36 | MIT © [Sindre Sorhus](http://sindresorhus.com) 37 | -------------------------------------------------------------------------------- /node_modules/tunnel-agent/README.md: -------------------------------------------------------------------------------- 1 | tunnel-agent 2 | ============ 3 | 4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /node_modules/tweetnacl/.npmignore: -------------------------------------------------------------------------------- 1 | .eslintrc 2 | .travis.yml 3 | bower.json 4 | test 5 | -------------------------------------------------------------------------------- /node_modules/tweetnacl/AUTHORS.md: -------------------------------------------------------------------------------- 1 | List of TweetNaCl.js authors 2 | ============================ 3 | 4 | Alphabetical order by first name. 5 | Format: Name (GitHub username or URL) 6 | 7 | * AndSDev (@AndSDev) 8 | * Devi Mandiri (@devi) 9 | * Dmitry Chestnykh (@dchest) 10 | 11 | List of authors of third-party public domain code from which TweetNaCl.js code was derived 12 | ========================================================================================== 13 | 14 | [TweetNaCl](http://tweetnacl.cr.yp.to/) 15 | -------------------------------------- 16 | 17 | * Bernard van Gastel 18 | * Daniel J. Bernstein 19 | * Peter Schwabe 20 | * Sjaak Smetsers 21 | * Tanja Lange 22 | * Wesley Janssen 23 | 24 | 25 | [Poly1305-donna](https://github.com/floodyberry/poly1305-donna) 26 | -------------------------------------------------------------- 27 | 28 | * Andrew Moon (@floodyberry) 29 | -------------------------------------------------------------------------------- /node_modules/tweetnacl/LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Important! 2 | 3 | If your contribution is not trivial (not a typo fix, etc.), we can only accept 4 | it if you dedicate your copyright for the contribution to the public domain. 5 | Make sure you understand what it means (see http://unlicense.org/)! If you 6 | agree, please add yourself to AUTHORS.md file, and include the following text 7 | to your pull request description or a comment in it: 8 | 9 | ------------------------------------------------------------------------------ 10 | 11 | I dedicate any and all copyright interest in this software to the 12 | public domain. I make this dedication for the benefit of the public at 13 | large and to the detriment of my heirs and successors. I intend this 14 | dedication to be an overt act of relinquishment in perpetuity of all 15 | present and future rights to this software under copyright law. 16 | 17 | Anyone is free to copy, modify, publish, use, compile, sell, or 18 | distribute this software, either in source code form or as a compiled 19 | binary, for any purpose, commercial or non-commercial, and by any 20 | means. 21 | -------------------------------------------------------------------------------- /node_modules/twit/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | config*.js 3 | test.js -------------------------------------------------------------------------------- /node_modules/twit/lib/endpoints.js: -------------------------------------------------------------------------------- 1 | // Twitter Endpoints 2 | module.exports = { 3 | API_HOST : 'https://api.twitter.com/' 4 | , REST_ROOT : 'https://api.twitter.com/1.1/' 5 | , PUB_STREAM : 'https://stream.twitter.com/1.1/' 6 | , USER_STREAM : 'https://userstream.twitter.com/1.1/' 7 | , SITE_STREAM : 'https://sitestream.twitter.com/1.1/' 8 | , MEDIA_UPLOAD : 'https://upload.twitter.com/1.1/' 9 | , OA_REQ : 'https://api.twitter.com/oauth/request_token' 10 | , OA_ACCESS : 'https://api.twitter.com/oauth/access_token' 11 | } -------------------------------------------------------------------------------- /node_modules/twit/lib/settings.js: -------------------------------------------------------------------------------- 1 | // set of status codes where we don't attempt reconnecting to Twitter 2 | exports.STATUS_CODES_TO_ABORT_ON = [ 400, 401, 403, 404, 406, 410, 422 ]; -------------------------------------------------------------------------------- /node_modules/twit/tests/helpers.js: -------------------------------------------------------------------------------- 1 | var EventEmitter = require('events').EventEmitter; 2 | var stream = require('stream'); 3 | var util = require('util'); 4 | 5 | // Used to stub out calls to `request`. 6 | exports.FakeRequest = function () { 7 | EventEmitter.call(this) 8 | } 9 | util.inherits(exports.FakeRequest, EventEmitter) 10 | exports.FakeRequest.prototype.destroy = function () { 11 | 12 | } 13 | 14 | // Used to stub out the http.IncomingMessage object emitted by the "response" event on `request`. 15 | exports.FakeResponse = function (statusCode, body) { 16 | if (!body) { 17 | body = ''; 18 | } 19 | this.statusCode = statusCode; 20 | stream.Readable.call(this); 21 | this.push(body); 22 | this.push(null); 23 | } 24 | util.inherits(exports.FakeResponse, stream.Readable); 25 | 26 | exports.FakeResponse.prototype._read = function () { 27 | 28 | } 29 | exports.FakeResponse.prototype.destroy = function () { 30 | 31 | } 32 | 33 | exports.generateRandomString = function generateRandomString (length) { 34 | var length = length || 10 35 | var ret = '' 36 | var alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789' 37 | for (var i = 0; i < length; i++) { 38 | // use an easy set of unicode as an alphabet - twitter won't reformat them 39 | // which makes testing easier 40 | ret += alphabet[Math.floor(Math.random()*alphabet.length)] 41 | } 42 | 43 | ret = encodeURI(ret) 44 | 45 | return ret 46 | } 47 | -------------------------------------------------------------------------------- /node_modules/twit/tests/img/bigbird.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/twit/tests/img/bigbird.jpg -------------------------------------------------------------------------------- /node_modules/twit/tests/img/cutebird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/twit/tests/img/cutebird.png -------------------------------------------------------------------------------- /node_modules/twit/tests/img/snoopy-animated.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/twit/tests/img/snoopy-animated.gif -------------------------------------------------------------------------------- /node_modules/twit/tests/img/twitterbird.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/twit/tests/img/twitterbird.gif -------------------------------------------------------------------------------- /node_modules/twit/tests/test_helpers.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert') 2 | var helpers = require('../lib/helpers') 3 | 4 | describe('makeQueryString', function () { 5 | it('correctly encodes Objects with String values', function () { 6 | assert.equal(helpers.makeQueryString({a: 'Ladies + Gentlemen'}), 'a=Ladies%20%2B%20Gentlemen'); 7 | assert.equal(helpers.makeQueryString({a: 'An encoded string!'}), 'a=An%20encoded%20string%21'); 8 | assert.equal(helpers.makeQueryString({a: 'Dogs, Cats & Mice'}), 'a=Dogs%2C%20Cats%20%26%20Mice') 9 | assert.equal(helpers.makeQueryString({a: '☃'}), 'a=%E2%98%83') 10 | assert.equal(helpers.makeQueryString({a: '#haiku #poetry'}), 'a=%23haiku%20%23poetry') 11 | assert.equal(helpers.makeQueryString({a: '"happy hour" :)'}), 'a=%22happy%20hour%22%20%3A%29') 12 | }) 13 | }) -------------------------------------------------------------------------------- /node_modules/twit/tests/user_stream.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert') 2 | var Twit = require('../lib/twitter') 3 | var config1 = require('../config1') 4 | var streaming = require('./streaming') 5 | 6 | //verify `friendsMsg` is a twitter 'friends' message object 7 | function checkFriendsMsg (friendsMsg) { 8 | var friendIds = friendsMsg.friends 9 | 10 | assert(friendIds) 11 | assert(Array.isArray(friendIds)) 12 | assert(friendIds[0]) 13 | } 14 | 15 | describe('user events', function () { 16 | it('friends', function (done) { 17 | var twit = new Twit(config1); 18 | var stream = twit.stream('user'); 19 | 20 | //make sure we're connected to the right endpoint 21 | assert.equal(stream.reqOpts.url, 'https://userstream.twitter.com/1.1/user.json') 22 | 23 | stream.on('friends', function (friendsMsg) { 24 | checkFriendsMsg(friendsMsg) 25 | 26 | stream.stop() 27 | done() 28 | }) 29 | 30 | stream.on('connect', function () { 31 | console.log('\nuser stream connecting..') 32 | }) 33 | 34 | stream.on('connected', function () { 35 | console.log('user stream connected.') 36 | }) 37 | }) 38 | }) -------------------------------------------------------------------------------- /node_modules/twit/tests/video/station.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/twit/tests/video/station.mp4 -------------------------------------------------------------------------------- /node_modules/uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | 4 | # VIM temp files 5 | *.sw* 6 | 7 | # Mac desktop services store 8 | .DS_Store 9 | -------------------------------------------------------------------------------- /node_modules/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.12" 4 | - "4" 5 | - "6" 6 | -------------------------------------------------------------------------------- /node_modules/uuid/AUTHORS: -------------------------------------------------------------------------------- 1 | Robert Kieffer 2 | Christoph Tavan 3 | AJ ONeal 4 | Vincent Voyer 5 | Roman Shtylman 6 | -------------------------------------------------------------------------------- /node_modules/uuid/HISTORY.md: -------------------------------------------------------------------------------- 1 | # 3.0.1 (2016-11-28) 2 | 3 | * split uuid versions into separate files 4 | 5 | # 3.0.0 (2016-11-17) 6 | 7 | * remove .parse and .unparse 8 | 9 | # 2.0.0 10 | 11 | * Removed uuid.BufferClass 12 | 13 | # 1.4.0 14 | 15 | * Improved module context detection 16 | * Removed public RNG functions 17 | 18 | # 1.3.2 19 | 20 | * Improve tests and handling of v1() options (Issue #24) 21 | * Expose RNG option to allow for perf testing with different generators 22 | 23 | # 1.3.0 24 | 25 | * Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)! 26 | * Support for node.js crypto API 27 | * De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code 28 | 29 | -------------------------------------------------------------------------------- /node_modules/uuid/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2010-2016 Robert Kieffer and other contributors 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 | -------------------------------------------------------------------------------- /node_modules/uuid/bin/uuid: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var path = require('path'); 4 | var uuid = require(path.join(__dirname, '..')); 5 | 6 | var arg = process.argv[2]; 7 | 8 | if ('--help' === arg) { 9 | console.log('\n USAGE: uuid [version] [options]\n\n'); 10 | console.log(' options:\n'); 11 | console.log(' --help Display this message and exit\n'); 12 | process.exit(0); 13 | } 14 | 15 | if (null == arg) { 16 | console.log(uuid()); 17 | process.exit(0); 18 | } 19 | 20 | if ('v1' !== arg && 'v4' !== arg) { 21 | console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"'); 22 | process.exit(1); 23 | } 24 | 25 | console.log(uuid[arg]()); 26 | process.exit(0); 27 | -------------------------------------------------------------------------------- /node_modules/uuid/index.js: -------------------------------------------------------------------------------- 1 | var v1 = require('./v1'); 2 | var v4 = require('./v4'); 3 | 4 | var uuid = v4; 5 | uuid.v1 = v1; 6 | uuid.v4 = v4; 7 | 8 | module.exports = uuid; 9 | -------------------------------------------------------------------------------- /node_modules/uuid/lib/bytesToUuid.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Convert array of 16 byte values to UUID string format of the form: 3 | * XXXXXXXX-XXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX 4 | */ 5 | var byteToHex = []; 6 | for (var i = 0; i < 256; ++i) { 7 | byteToHex[i] = (i + 0x100).toString(16).substr(1); 8 | } 9 | 10 | function bytesToUuid(buf, offset) { 11 | var i = offset || 0; 12 | var bth = byteToHex; 13 | return bth[buf[i++]] + bth[buf[i++]] + 14 | bth[buf[i++]] + bth[buf[i++]] + '-' + 15 | bth[buf[i++]] + bth[buf[i++]] + '-' + 16 | bth[buf[i++]] + bth[buf[i++]] + '-' + 17 | bth[buf[i++]] + bth[buf[i++]] + '-' + 18 | bth[buf[i++]] + bth[buf[i++]] + 19 | bth[buf[i++]] + bth[buf[i++]] + 20 | bth[buf[i++]] + bth[buf[i++]]; 21 | } 22 | 23 | module.exports = bytesToUuid; 24 | -------------------------------------------------------------------------------- /node_modules/uuid/lib/rng-browser.js: -------------------------------------------------------------------------------- 1 | // Unique ID creation requires a high quality random # generator. In the 2 | // browser this is a little complicated due to unknown quality of Math.random() 3 | // and inconsistent support for the `crypto` API. We do the best we can via 4 | // feature-detection 5 | var rng; 6 | 7 | var crypto = global.crypto || global.msCrypto; // for IE 11 8 | if (crypto && crypto.getRandomValues) { 9 | // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto 10 | var rnds8 = new Uint8Array(16); 11 | rng = function whatwgRNG() { 12 | crypto.getRandomValues(rnds8); 13 | return rnds8; 14 | }; 15 | } 16 | 17 | if (!rng) { 18 | // Math.random()-based (RNG) 19 | // 20 | // If all else fails, use Math.random(). It's fast, but is of unspecified 21 | // quality. 22 | var rnds = new Array(16); 23 | rng = function() { 24 | for (var i = 0, r; i < 16; i++) { 25 | if ((i & 0x03) === 0) r = Math.random() * 0x100000000; 26 | rnds[i] = r >>> ((i & 0x03) << 3) & 0xff; 27 | } 28 | 29 | return rnds; 30 | }; 31 | } 32 | 33 | module.exports = rng; 34 | -------------------------------------------------------------------------------- /node_modules/uuid/lib/rng.js: -------------------------------------------------------------------------------- 1 | // Unique ID creation requires a high quality random # generator. In node.js 2 | // this is prett straight-forward - we use the crypto API. 3 | 4 | var rb = require('crypto').randomBytes; 5 | 6 | function rng() { 7 | return rb(16); 8 | }; 9 | 10 | module.exports = rng; 11 | -------------------------------------------------------------------------------- /node_modules/uuid/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui qunit 2 | --reporter spec 3 | --check-leaks 4 | -------------------------------------------------------------------------------- /node_modules/uuid/v4.js: -------------------------------------------------------------------------------- 1 | var rng = require('./lib/rng'); 2 | var bytesToUuid = require('./lib/bytesToUuid'); 3 | 4 | function v4(options, buf, offset) { 5 | var i = buf && offset || 0; 6 | 7 | if (typeof(options) == 'string') { 8 | buf = options == 'binary' ? new Array(16) : null; 9 | options = null; 10 | } 11 | options = options || {}; 12 | 13 | var rnds = options.random || (options.rng || rng)(); 14 | 15 | // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` 16 | rnds[6] = (rnds[6] & 0x0f) | 0x40; 17 | rnds[8] = (rnds[8] & 0x3f) | 0x80; 18 | 19 | // Copy bytes to buffer, if provided 20 | if (buf) { 21 | for (var ii = 0; ii < 16; ++ii) { 22 | buf[i + ii] = rnds[ii]; 23 | } 24 | } 25 | 26 | return buf || bytesToUuid(rnds); 27 | } 28 | 29 | module.exports = v4; 30 | -------------------------------------------------------------------------------- /node_modules/verror/.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepakmehra10/TwitterAPIExample/9e1b18c970993d9a5c10203e10f5326c8c509ede/node_modules/verror/.gitmodules -------------------------------------------------------------------------------- /node_modules/verror/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/verror/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Joyent, Inc. 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 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/verror/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2012, Joyent, Inc. All rights reserved. 3 | # 4 | # Makefile: top-level Makefile 5 | # 6 | # This Makefile contains only repo-specific logic and uses included makefiles 7 | # to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are 8 | # used by other repos as well. 9 | # 10 | 11 | # 12 | # Tools 13 | # 14 | NPM = npm 15 | 16 | # 17 | # Files 18 | # 19 | JS_FILES := $(shell find lib examples tests -name '*.js') 20 | JSL_FILES_NODE = $(JS_FILES) 21 | JSSTYLE_FILES = $(JS_FILES) 22 | JSL_CONF_NODE = jsl.node.conf 23 | 24 | .PHONY: all 25 | all: 26 | $(NPM) install 27 | 28 | .PHONY: test 29 | test: 30 | node tests/tst.inherit.js 31 | node tests/tst.verror.js 32 | node tests/tst.werror.js 33 | @echo all tests passed 34 | 35 | include ./Makefile.targ 36 | -------------------------------------------------------------------------------- /node_modules/verror/examples/levels-verror.js: -------------------------------------------------------------------------------- 1 | var extsprintf = require('extsprintf'); 2 | var fs = require('fs'); 3 | var verror = require('../lib/verror'); 4 | 5 | function checkFile(filename, callback) { 6 | fs.stat(filename, function (err) { 7 | if (err) 8 | /* Annotate the "stat" error with what we were doing. */ 9 | return (callback(new verror.VError(err, 10 | 'failed to check "%s"', filename))); 11 | 12 | /* ... */ 13 | return (callback()); 14 | }); 15 | } 16 | 17 | function handleRequest(filename, callback) { 18 | checkFile('/nonexistent', function (err) { 19 | if (err) 20 | /* Annotate the "checkFile" error. */ 21 | return (callback(new verror.VError( 22 | err, 'request failed'))); 23 | 24 | /* ... */ 25 | return (callback()); 26 | }); 27 | } 28 | 29 | handleRequest('/nonexistent', function (err) { 30 | if (err) { 31 | console.log(err.message); 32 | console.log(extsprintf.sprintf('%r', err)); 33 | } 34 | 35 | /* ... */ 36 | }); 37 | -------------------------------------------------------------------------------- /node_modules/verror/examples/levels-werror.js: -------------------------------------------------------------------------------- 1 | var extsprintf = require('extsprintf'); 2 | var fs = require('fs'); 3 | var verror = require('../lib/verror'); 4 | 5 | function checkFile(filename, callback) { 6 | fs.stat(filename, function (err) { 7 | if (err) 8 | /* Annotate the "stat" error with what we were doing. */ 9 | return (callback(new verror.VError(err, 10 | 'failed to check "%s"', filename))); 11 | 12 | /* ... */ 13 | return (callback()); 14 | }); 15 | } 16 | 17 | function handleRequest(filename, callback) { 18 | checkFile('/nonexistent', function (err) { 19 | if (err) 20 | /* Wrap the "checkFile" error. */ 21 | return (callback(new verror.WError( 22 | err, 'request failed'))); 23 | 24 | /* ... */ 25 | return (callback()); 26 | }); 27 | } 28 | 29 | handleRequest('/nonexistent', function (err) { 30 | if (err) { 31 | console.log(err.message); 32 | console.log(err.toString()); 33 | } 34 | }); 35 | -------------------------------------------------------------------------------- /node_modules/verror/examples/varargs.js: -------------------------------------------------------------------------------- 1 | var verror = require('../lib/verror'); 2 | 3 | var opname = 'read'; 4 | var err = new verror.VError('"%s" operation failed', opname); 5 | console.log(err.message); 6 | console.log(err.stack); 7 | -------------------------------------------------------------------------------- /node_modules/verror/examples/verror.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_verror = require('../lib/verror'); 3 | 4 | var filename = '/nonexistent'; 5 | 6 | mod_fs.stat(filename, function (err1) { 7 | var err2 = new mod_verror.VError(err1, 'failed to stat "%s"', filename); 8 | 9 | /* The following would normally be higher up the stack. */ 10 | var err3 = new mod_verror.VError(err2, 'failed to handle request'); 11 | console.log(err3.message); 12 | console.log(err3.stack); 13 | }); 14 | -------------------------------------------------------------------------------- /node_modules/verror/examples/werror.js: -------------------------------------------------------------------------------- 1 | var mod_fs = require('fs'); 2 | var mod_verror = require('../lib/verror'); 3 | 4 | var filename = '/nonexistent'; 5 | 6 | mod_fs.stat(filename, function (err1) { 7 | var err2 = new mod_verror.WError(err1, 'failed to stat "%s"', filename); 8 | 9 | /* The following would normally be higher up the stack. */ 10 | var err3 = new mod_verror.WError(err2, 'failed to handle request'); 11 | console.log(err3.message); 12 | console.log(err3.toString()); 13 | console.log(err3.stack); 14 | }); 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "twitter-example", 3 | "version": "1.0.0", 4 | "description": "This is my first twitter example", 5 | "main": "index.js", 6 | "scripts": { 7 | "start" : "node twitter-example.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "deepak mehra", 11 | "license": "ISC", 12 | "dependencies": { 13 | "twit": "^2.2.5" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /post-tweet.js: -------------------------------------------------------------------------------- 1 | console.log("Example is up now..") 2 | var Twit = require('twit'); 3 | var config = require('./config') 4 | var T = new Twit(config); 5 | var tweet = { 6 | status: 'hello world!!' } 7 | 8 | T.post('statuses/update', tweet, tweeted) 9 | 10 | function tweeted(err, data, response) { 11 | if(err){ 12 | console.log("Something went wrong!"); 13 | } 14 | else{ 15 | console.log("Voila It worked!"); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /schedule-tweet.js: -------------------------------------------------------------------------------- 1 | console.log("Example is up now..") 2 | var Twit = require('twit'); 3 | var config = require('./config') 4 | var T = new Twit(config); 5 | 6 | 7 | setInterval(tweetScheduler,1000*20); 8 | tweetScheduler(); 9 | function tweetScheduler(){ 10 | var randomNumber = Math.floor(Math.random()*1000); 11 | var tweet = { 12 | status: randomNumber+'#hiii!!' } 13 | 14 | T.post('statuses/update', tweet, tweeted) 15 | 16 | function tweeted(err, data, response) { 17 | if(err){ 18 | console.log("Something went wrong!"); 19 | } 20 | else{ 21 | console.log("Voila It worked!"); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /search.js: -------------------------------------------------------------------------------- 1 | console.log("Example is up now..") 2 | var Twit = require('twit'); 3 | var config = require('./config') 4 | var T = new Twit(config); 5 | var params = { 6 | q: 'akshay', 7 | count: 100 8 | } 9 | 10 | T.get('search/tweets', params,searchedData); 11 | 12 | function searchedData(err, data, response) { 13 | console.log(data); 14 | } 15 | -------------------------------------------------------------------------------- /stream.js: -------------------------------------------------------------------------------- 1 | console.log("Example is up now..") 2 | var Twit = require('twit'); 3 | var config = require('./config') 4 | var T = new Twit(config); 5 | 6 | var stream = T.stream('user'); 7 | stream.on('follow',followed); 8 | 9 | function followed(eventMsg){ 10 | console.log('FOllow event'); 11 | var name = eventMsg.source.name; 12 | var screenName = eventMsg.source.screen_name; 13 | tweetMessage('@'+screenName+"Thank you for following me!") 14 | } 15 | 16 | function tweetMessage(txt){ 17 | 18 | var tweet = { 19 | status: txt } 20 | 21 | T.post('statuses/update', tweet, tweeted) 22 | 23 | function tweeted(err, data, response) { 24 | if(err){ 25 | console.log("Something went wrong!"); 26 | } 27 | else{ 28 | console.log("Voila It worked!"); 29 | } 30 | } 31 | } 32 | --------------------------------------------------------------------------------