{"name":"requires-port","version":"0.0.0","description":"Check if a protocol requires a certain port number to be added to an URL.","main":"index.js","scripts":{"test":"mocha --reporter spec --ui bdd test.js","watch":"mocha --watch --reporter spec --ui bdd test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- --reporter spec --ui bdd test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --ui bdd test.js"},"repository":{"type":"git","url":"https://github.com/unshiftio/requries-port"},"keywords":["port","require","http","https","ws","wss","gopher","file","ftp","requires","requried","portnumber","url","parsing","validation","cows"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/unshiftio/requries-port/issues"},"homepage":"https://github.com/unshiftio/requries-port","devDependencies":{"assume":"0.0.x","istanbul":"0.3.x","mocha":"1.21.x","pre-commit":"0.0.x"},"gitHead":"cdd88d620507e79c4b5d57c3b353d5da8ac66988","_id":"requires-port@0.0.0","_shasum":"d9914dce124d3d5e75ceda38ca5434069f7132b3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"d9914dce124d3d5e75ceda38ca5434069f7132b3","tarball":"http://registry-npm.ywwl.com/requires-port/download/requires-port-0.0.0.tgz","integrity":"sha512-m/J1HWP0nf6c1wekYXTaUT3LGPjWLlwfVySp2EQr8MoPQIRQdIA9NOKgaWThzvu6CaoxB5bkfTEWD6nfo+9rEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDL+97HvQhKUGDA8J6GP2LzdUu8GdH7TrFWOVd+z0ewzAIgNeko6gcpRaG4nSXaffb6O6+ow9JYRMrpQZYmBANzb8k="}],"size":2104,"noattachment":false,"key":"/requires-port/-/requires-port-0.0.0.tgz"},"directories":{},"readme":"# requires-port\n\n[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/requires-port.svg?style=flat-square)](http://browsenpm.org/package/requires-port)[![Build Status](http://img.shields.io/travis/unshiftio/requires-port/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/requires-port)[![Dependencies](https://img.shields.io/david/unshiftio/requires-port.svg?style=flat-square)](https://david-dm.org/unshiftio/requires-port)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/requires-port/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/requires-port?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift)\n\nThe module name says it all, check if a protocol requires a given port.\n\n## Installation\n\nThis module is intended to be used with browserify or Node.js and is distributed\nin the public npm registry. To install it simply run the following command from\nyour CLI:\n\n```j\nnpm install --save requires-port\n```\n\n## Usage\n\nThe module exports it self as function and requires 2 arguments:\n\n1. The port number, can be a string or number.\n2. Protocol, can be `http`, `http:` or even `https://yomoma.com`. We just split\n   it at `:` and use the first result. We currently accept the following\n   protocols:\n   - `http`\n   - `https`\n   - `ws`\n   - `wss`\n   - `ftp`\n   - `gopher`\n   - `file`\n\nIt returns a boolean that indicates if protocol requires this port to be added\nto your URL.\n\n```js\n'use strict';\n\nvar required = require('requires-port');\n\nconsole.log(required('8080', 'http')) // true\nconsole.log(required('80', 'http'))   // false\n```\n\n# License\n\nMIT\n","publish_time":1415358197791,"_cnpm_publish_time":1415358197791,"dist-tags":{"latest":"1.0.0"}}