Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/requires-port.json

raw
1 {
2 "_id": "requires-port",
3 "_rev": "13-164915816c888506fc15ef5b22dddce0",
4 "name": "requires-port",
5 "description": "Check if a protocol requires a certain port number to be added to an URL.",
6 "dist-tags": {
7 "latest": "1.0.0"
8 },
9 "versions": {
10 "0.0.0": {
11 "name": "requires-port",
12 "version": "0.0.0",
13 "description": "Check if a protocol requires a certain port number to be added to an URL.",
14 "main": "index.js",
15 "scripts": {
16 "test": "mocha --reporter spec --ui bdd test.js",
17 "watch": "mocha --watch --reporter spec --ui bdd test.js",
18 "coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter spec --ui bdd test.js",
19 "test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --reporter spec --ui bdd test.js"
20 },
21 "repository": {
22 "type": "git",
23 "url": "https://github.com/unshiftio/requries-port"
24 },
25 "keywords": [
26 "port",
27 "require",
28 "http",
29 "https",
30 "ws",
31 "wss",
32 "gopher",
33 "file",
34 "ftp",
35 "requires",
36 "requried",
37 "portnumber",
38 "url",
39 "parsing",
40 "validation",
41 "cows"
42 ],
43 "author": {
44 "name": "Arnout Kazemier"
45 },
46 "license": "MIT",
47 "bugs": {
48 "url": "https://github.com/unshiftio/requries-port/issues"
49 },
50 "homepage": "https://github.com/unshiftio/requries-port",
51 "devDependencies": {
52 "assume": "0.0.x",
53 "istanbul": "0.3.x",
54 "mocha": "1.21.x",
55 "pre-commit": "0.0.x"
56 },
57 "gitHead": "cdd88d620507e79c4b5d57c3b353d5da8ac66988",
58 "_id": "[email protected]",
59 "_shasum": "d9914dce124d3d5e75ceda38ca5434069f7132b3",
60 "_from": ".",
61 "_npmVersion": "1.4.28",
62 "_npmUser": {
63 "name": "V1",
64 "email": "[email protected]"
65 },
66 "maintainers": [
67 {
68 "name": "V1",
69 "email": "[email protected]"
70 }
71 ],
72 "dist": {
73 "shasum": "d9914dce124d3d5e75ceda38ca5434069f7132b3",
74 "tarball": "https://registry.npmjs.org/requires-port/-/requires-port-0.0.0.tgz"
75 },
76 "directories": {}
77 },
78 "0.0.1": {
79 "name": "requires-port",
80 "version": "0.0.1",
81 "description": "Check if a protocol requires a certain port number to be added to an URL.",
82 "main": "index.js",
83 "scripts": {
84 "100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
85 "test": "mocha test.js",
86 "watch": "mocha --watch test.js",
87 "coverage": "istanbul cover ./node_modules/.bin/_mocha -- test.js",
88 "test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"
89 },
90 "repository": {
91 "type": "git",
92 "url": "git+https://github.com/unshiftio/requires-port.git"
93 },
94 "keywords": [
95 "port",
96 "require",
97 "http",
98 "https",
99 "ws",
100 "wss",
101 "gopher",
102 "file",
103 "ftp",
104 "requires",
105 "requried",
106 "portnumber",
107 "url",
108 "parsing",
109 "validation",
110 "cows"
111 ],
112 "author": {
113 "name": "Arnout Kazemier"
114 },
115 "license": "MIT",
116 "bugs": {
117 "url": "https://github.com/unshiftio/requires-port/issues"
118 },
119 "homepage": "https://github.com/unshiftio/requires-port",
120 "devDependencies": {
121 "assume": "1.1.x",
122 "istanbul": "0.3.x",
123 "mocha": "2.1.x",
124 "pre-commit": "1.0.x"
125 },
126 "gitHead": "d6235df7aa7e8d08e9ac72c842e1e2c6c366376f",
127 "_id": "[email protected]",
128 "_shasum": "4b4414411d9df7c855995dd899a8c78a2951c16d",
129 "_from": ".",
130 "_npmVersion": "2.9.1",
131 "_nodeVersion": "0.12.3",
132 "_npmUser": {
133 "name": "3rdeden",
134 "email": "[email protected]"
135 },
136 "maintainers": [
137 {
138 "name": "v1",
139 "email": "[email protected]"
140 },
141 {
142 "name": "3rdeden",
143 "email": "[email protected]"
144 }
145 ],
146 "dist": {
147 "shasum": "4b4414411d9df7c855995dd899a8c78a2951c16d",
148 "tarball": "https://registry.npmjs.org/requires-port/-/requires-port-0.0.1.tgz"
149 },
150 "directories": {}
151 },
152 "1.0.0": {
153 "name": "requires-port",
154 "version": "1.0.0",
155 "description": "Check if a protocol requires a certain port number to be added to an URL.",
156 "main": "index.js",
157 "scripts": {
158 "100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
159 "test-travis": "istanbul cover _mocha --report lcovonly -- test.js",
160 "coverage": "istanbul cover _mocha -- test.js",
161 "watch": "mocha --watch test.js",
162 "test": "mocha test.js"
163 },
164 "repository": {
165 "type": "git",
166 "url": "git+https://github.com/unshiftio/requires-port.git"
167 },
168 "keywords": [
169 "port",
170 "require",
171 "http",
172 "https",
173 "ws",
174 "wss",
175 "gopher",
176 "file",
177 "ftp",
178 "requires",
179 "requried",
180 "portnumber",
181 "url",
182 "parsing",
183 "validation",
184 "cows"
185 ],
186 "author": {
187 "name": "Arnout Kazemier"
188 },
189 "license": "MIT",
190 "bugs": {
191 "url": "https://github.com/unshiftio/requires-port/issues"
192 },
193 "homepage": "https://github.com/unshiftio/requires-port",
194 "devDependencies": {
195 "assume": "1.3.x",
196 "istanbul": "0.4.x",
197 "mocha": "2.3.x",
198 "pre-commit": "1.1.x"
199 },
200 "gitHead": "3a552b935dd2ddba8f2ddf9096932f0f2024edfd",
201 "_id": "[email protected]",
202 "_shasum": "925d2601d39ac485e091cf0da5c6e694dc3dcaff",
203 "_from": ".",
204 "_npmVersion": "2.14.3",
205 "_nodeVersion": "0.12.3",
206 "_npmUser": {
207 "name": "3rdeden",
208 "email": "[email protected]"
209 },
210 "maintainers": [
211 {
212 "name": "v1",
213 "email": "[email protected]"
214 },
215 {
216 "name": "3rdeden",
217 "email": "[email protected]"
218 }
219 ],
220 "dist": {
221 "shasum": "925d2601d39ac485e091cf0da5c6e694dc3dcaff",
222 "tarball": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz"
223 },
224 "directories": {}
225 }
226 },
227 "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",
228 "maintainers": [
229 {
230 "email": "[email protected]",
231 "name": "v1"
232 },
233 {
234 "email": "[email protected]",
235 "name": "3rdeden"
236 }
237 ],
238 "time": {
239 "modified": "2019-01-29T03:01:28.972Z",
240 "created": "2014-11-07T11:03:17.791Z",
241 "0.0.0": "2014-11-07T11:03:17.791Z",
242 "0.0.1": "2015-05-26T09:31:22.078Z",
243 "1.0.0": "2015-10-30T14:42:33.794Z"
244 },
245 "homepage": "https://github.com/unshiftio/requires-port",
246 "keywords": [
247 "port",
248 "require",
249 "http",
250 "https",
251 "ws",
252 "wss",
253 "gopher",
254 "file",
255 "ftp",
256 "requires",
257 "requried",
258 "portnumber",
259 "url",
260 "parsing",
261 "validation",
262 "cows"
263 ],
264 "repository": {
265 "type": "git",
266 "url": "git+https://github.com/unshiftio/requires-port.git"
267 },
268 "author": {
269 "name": "Arnout Kazemier"
270 },
271 "bugs": {
272 "url": "https://github.com/unshiftio/requires-port/issues"
273 },
274 "license": "MIT",
275 "readmeFilename": "README.md",
276 "users": {
277 "mojaray2k": true,
278 "staydan": true,
279 "papasavva": true
280 }
281 }