UNPKG

17.9 kBHTMLView Raw
1<!DOCTYPE html>
2
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width">
7 <title>Documentation Namespace: internet</title>
8
9 <!--[if lt IE 9]>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11 <![endif]-->
12 <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
13
14 <link type="text/css" rel="stylesheet" href="styles/site.simplex.css">
15
16</head>
17
18<body>
19
20<div class="navbar navbar-default navbar-fixed-top ">
21<div class="container">
22 <div class="navbar-header">
23 <a class="navbar-brand" href="index.html">Documentation</a>
24 <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25 <span class="icon-bar"></span>
26 <span class="icon-bar"></span>
27 <span class="icon-bar"></span>
28 </button>
29 </div>
30 <div class="navbar-collapse collapse" id="topNavigation">
31 <ul class="nav navbar-nav">
32
33 <li class="dropdown">
34 <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
35 <ul class="dropdown-menu ">
36 <li><a href="faker.html">faker</a></li><li><a href="faker.address.html">faker.address</a></li><li><a href="faker.commerce.html">faker.commerce</a></li><li><a href="faker.company.html">faker.company</a></li><li><a href="faker.date.html">faker.date</a></li><li><a href="faker.finance.html">faker.finance</a></li><li><a href="faker.hacker.html">faker.hacker</a></li><li><a href="faker.helpers.html">faker.helpers</a></li><li><a href="faker.image.html">faker.image</a></li><li><a href="faker.internet.html">faker.internet</a></li><li><a href="faker.lorem.html">faker.lorem</a></li><li><a href="faker.name.html">faker.name</a></li><li><a href="faker.phone.html">faker.phone</a></li><li><a href="faker.random.html">faker.random</a></li><li><a href="faker.system.html">faker.system</a></li>
37 </ul>
38 </li>
39
40 </ul>
41 <div class="col-sm-3 col-md-3">
42 <form class="navbar-form" role="search">
43 <div class="input-group">
44 <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
45 <div class="input-group-btn">
46 <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
47 </div>
48 </div>
49 </form>
50 </div>
51 </div>
52
53</div>
54</div>
55
56
57<div class="container" id="toc-content">
58<div class="row">
59
60
61 <div class="col-md-8">
62
63 <div id="main">
64
65
66 <h1 class="page-title">Namespace: internet</h1>
67<section>
68
69<header>
70
71 <h2>
72 <span class="ancestors"><a href="faker.html">faker</a>.</span>
73
74 internet
75 </h2>
76
77
78</header>
79
80
81<article>
82 <div class="container-overview">
83
84
85
86
87<dl class="details">
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123</dl>
124
125
126
127
128 </div>
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143 <h3 class="subsection-title">Methods</h3>
144
145 <dl>
146
147<hr>
148<dt>
149 <h4 class="name" id=".avatar"><span class="type-signature">&lt;static> </span>avatar()</h4>
150
151
152</dt>
153<dd>
154
155
156 <div class="description">
157 <p>avatar</p>
158 </div>
159
160
161
162
163
164
165
166
167
168
169<dl class="details">
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205</dl>
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221</dd>
222
223
224
225<hr>
226<dt>
227 <h4 class="name" id=".color"><span class="type-signature">&lt;static> </span>color(baseRed255, baseGreen255, baseBlue255)</h4>
228
229
230</dt>
231<dd>
232
233
234 <div class="description">
235 <p>color</p>
236 </div>
237
238
239
240
241
242
243
244
245 <h5>Parameters:</h5>
246
247
248<table class="params table table-striped">
249 <thead>
250 <tr>
251
252 <th>Name</th>
253
254
255 <th>Type</th>
256
257
258
259
260
261 <th class="last">Description</th>
262 </tr>
263 </thead>
264
265 <tbody>
266
267
268 <tr>
269
270 <td class="name"><code>baseRed255</code></td>
271
272
273 <td class="type">
274
275
276<span class="param-type">number</span>
277
278
279
280
281 </td>
282
283
284
285
286
287 <td class="description last"></td>
288 </tr>
289
290
291
292 <tr>
293
294 <td class="name"><code>baseGreen255</code></td>
295
296
297 <td class="type">
298
299
300<span class="param-type">number</span>
301
302
303
304
305 </td>
306
307
308
309
310
311 <td class="description last"></td>
312 </tr>
313
314
315
316 <tr>
317
318 <td class="name"><code>baseBlue255</code></td>
319
320
321 <td class="type">
322
323
324<span class="param-type">number</span>
325
326
327
328
329 </td>
330
331
332
333
334
335 <td class="description last"></td>
336 </tr>
337
338
339 </tbody>
340</table>
341
342
343
344
345<dl class="details">
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381</dl>
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397</dd>
398
399
400
401<hr>
402<dt>
403 <h4 class="name" id=".domainName"><span class="type-signature">&lt;static> </span>domainName()</h4>
404
405
406</dt>
407<dd>
408
409
410 <div class="description">
411 <p>domainName</p>
412 </div>
413
414
415
416
417
418
419
420
421
422
423<dl class="details">
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459</dl>
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475</dd>
476
477
478
479<hr>
480<dt>
481 <h4 class="name" id=".domainSuffix"><span class="type-signature">&lt;static> </span>domainSuffix()</h4>
482
483
484</dt>
485<dd>
486
487
488 <div class="description">
489 <p>domainSuffix</p>
490 </div>
491
492
493
494
495
496
497
498
499
500
501<dl class="details">
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537</dl>
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553</dd>
554
555
556
557<hr>
558<dt>
559 <h4 class="name" id=".domainWord"><span class="type-signature">&lt;static> </span>domainWord()</h4>
560
561
562</dt>
563<dd>
564
565
566 <div class="description">
567 <p>domainWord</p>
568 </div>
569
570
571
572
573
574
575
576
577
578
579<dl class="details">
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615</dl>
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631</dd>
632
633
634
635<hr>
636<dt>
637 <h4 class="name" id=".email"><span class="type-signature">&lt;static> </span>email(firstName, lastName, provider)</h4>
638
639
640</dt>
641<dd>
642
643
644 <div class="description">
645 <p>email</p>
646 </div>
647
648
649
650
651
652
653
654
655 <h5>Parameters:</h5>
656
657
658<table class="params table table-striped">
659 <thead>
660 <tr>
661
662 <th>Name</th>
663
664
665 <th>Type</th>
666
667
668
669
670
671 <th class="last">Description</th>
672 </tr>
673 </thead>
674
675 <tbody>
676
677
678 <tr>
679
680 <td class="name"><code>firstName</code></td>
681
682
683 <td class="type">
684
685
686<span class="param-type">string</span>
687
688
689
690
691 </td>
692
693
694
695
696
697 <td class="description last"></td>
698 </tr>
699
700
701
702 <tr>
703
704 <td class="name"><code>lastName</code></td>
705
706
707 <td class="type">
708
709
710<span class="param-type">string</span>
711
712
713
714
715 </td>
716
717
718
719
720
721 <td class="description last"></td>
722 </tr>
723
724
725
726 <tr>
727
728 <td class="name"><code>provider</code></td>
729
730
731 <td class="type">
732
733
734<span class="param-type">string</span>
735
736
737
738
739 </td>
740
741
742
743
744
745 <td class="description last"></td>
746 </tr>
747
748
749 </tbody>
750</table>
751
752
753
754
755<dl class="details">
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791</dl>
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807</dd>
808
809
810
811<hr>
812<dt>
813 <h4 class="name" id=".exampleEmail"><span class="type-signature">&lt;static> </span>exampleEmail(firstName, lastName)</h4>
814
815
816</dt>
817<dd>
818
819
820 <div class="description">
821 <p>exampleEmail</p>
822 </div>
823
824
825
826
827
828
829
830
831 <h5>Parameters:</h5>
832
833
834<table class="params table table-striped">
835 <thead>
836 <tr>
837
838 <th>Name</th>
839
840
841 <th>Type</th>
842
843
844
845
846
847 <th class="last">Description</th>
848 </tr>
849 </thead>
850
851 <tbody>
852
853
854 <tr>
855
856 <td class="name"><code>firstName</code></td>
857
858
859 <td class="type">
860
861
862<span class="param-type">string</span>
863
864
865
866
867 </td>
868
869
870
871
872
873 <td class="description last"></td>
874 </tr>
875
876
877
878 <tr>
879
880 <td class="name"><code>lastName</code></td>
881
882
883 <td class="type">
884
885
886<span class="param-type">string</span>
887
888
889
890
891 </td>
892
893
894
895
896
897 <td class="description last"></td>
898 </tr>
899
900
901 </tbody>
902</table>
903
904
905
906
907<dl class="details">
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943</dl>
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959</dd>
960
961
962
963<hr>
964<dt>
965 <h4 class="name" id=".ip"><span class="type-signature">&lt;static> </span>ip()</h4>
966
967
968</dt>
969<dd>
970
971
972 <div class="description">
973 <p>ip</p>
974 </div>
975
976
977
978
979
980
981
982
983
984
985<dl class="details">
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021</dl>
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037</dd>
1038
1039
1040
1041<hr>
1042<dt>
1043 <h4 class="name" id=".mac"><span class="type-signature">&lt;static> </span>mac()</h4>
1044
1045
1046</dt>
1047<dd>
1048
1049
1050 <div class="description">
1051 <p>mac</p>
1052 </div>
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063<dl class="details">
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099</dl>
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115</dd>
1116
1117
1118
1119<hr>
1120<dt>
1121 <h4 class="name" id=".password"><span class="type-signature">&lt;static> </span>password(len, memorable, pattern, prefix)</h4>
1122
1123
1124</dt>
1125<dd>
1126
1127
1128 <div class="description">
1129 <p>password</p>
1130 </div>
1131
1132
1133
1134
1135
1136
1137
1138
1139 <h5>Parameters:</h5>
1140
1141
1142<table class="params table table-striped">
1143 <thead>
1144 <tr>
1145
1146 <th>Name</th>
1147
1148
1149 <th>Type</th>
1150
1151
1152
1153
1154
1155 <th class="last">Description</th>
1156 </tr>
1157 </thead>
1158
1159 <tbody>
1160
1161
1162 <tr>
1163
1164 <td class="name"><code>len</code></td>
1165
1166
1167 <td class="type">
1168
1169
1170<span class="param-type">number</span>
1171
1172
1173
1174
1175 </td>
1176
1177
1178
1179
1180
1181 <td class="description last"></td>
1182 </tr>
1183
1184
1185
1186 <tr>
1187
1188 <td class="name"><code>memorable</code></td>
1189
1190
1191 <td class="type">
1192
1193
1194<span class="param-type">boolean</span>
1195
1196
1197
1198
1199 </td>
1200
1201
1202
1203
1204
1205 <td class="description last"></td>
1206 </tr>
1207
1208
1209
1210 <tr>
1211
1212 <td class="name"><code>pattern</code></td>
1213
1214
1215 <td class="type">
1216
1217
1218<span class="param-type">string</span>
1219
1220
1221
1222
1223 </td>
1224
1225
1226
1227
1228
1229 <td class="description last"></td>
1230 </tr>
1231
1232
1233
1234 <tr>
1235
1236 <td class="name"><code>prefix</code></td>
1237
1238
1239 <td class="type">
1240
1241
1242<span class="param-type">string</span>
1243
1244
1245
1246
1247 </td>
1248
1249
1250
1251
1252
1253 <td class="description last"></td>
1254 </tr>
1255
1256
1257 </tbody>
1258</table>
1259
1260
1261
1262
1263<dl class="details">
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299</dl>
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315</dd>
1316
1317
1318
1319<hr>
1320<dt>
1321 <h4 class="name" id=".protocol"><span class="type-signature">&lt;static> </span>protocol()</h4>
1322
1323
1324</dt>
1325<dd>
1326
1327
1328 <div class="description">
1329 <p>protocol</p>
1330 </div>
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341<dl class="details">
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377</dl>
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393</dd>
1394
1395
1396
1397<hr>
1398<dt>
1399 <h4 class="name" id=".url"><span class="type-signature">&lt;static> </span>url()</h4>
1400
1401
1402</dt>
1403<dd>
1404
1405
1406 <div class="description">
1407 <p>url</p>
1408 </div>
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419<dl class="details">
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455</dl>
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471</dd>
1472
1473
1474
1475<hr>
1476<dt>
1477 <h4 class="name" id=".userAgent"><span class="type-signature">&lt;static> </span>userAgent()</h4>
1478
1479
1480</dt>
1481<dd>
1482
1483
1484 <div class="description">
1485 <p>userAgent</p>
1486 </div>
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497<dl class="details">
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533</dl>
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549</dd>
1550
1551
1552
1553<hr>
1554<dt>
1555 <h4 class="name" id=".userName"><span class="type-signature">&lt;static> </span>userName(firstName, lastName)</h4>
1556
1557
1558</dt>
1559<dd>
1560
1561
1562 <div class="description">
1563 <p>userName</p>
1564 </div>
1565
1566
1567
1568
1569
1570
1571
1572
1573 <h5>Parameters:</h5>
1574
1575
1576<table class="params table table-striped">
1577 <thead>
1578 <tr>
1579
1580 <th>Name</th>
1581
1582
1583 <th>Type</th>
1584
1585
1586
1587
1588
1589 <th class="last">Description</th>
1590 </tr>
1591 </thead>
1592
1593 <tbody>
1594
1595
1596 <tr>
1597
1598 <td class="name"><code>firstName</code></td>
1599
1600
1601 <td class="type">
1602
1603
1604<span class="param-type">string</span>
1605
1606
1607
1608
1609 </td>
1610
1611
1612
1613
1614
1615 <td class="description last"></td>
1616 </tr>
1617
1618
1619
1620 <tr>
1621
1622 <td class="name"><code>lastName</code></td>
1623
1624
1625 <td class="type">
1626
1627
1628<span class="param-type">string</span>
1629
1630
1631
1632
1633 </td>
1634
1635
1636
1637
1638
1639 <td class="description last"></td>
1640 </tr>
1641
1642
1643 </tbody>
1644</table>
1645
1646
1647
1648
1649<dl class="details">
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685</dl>
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701</dd>
1702
1703 </dl>
1704
1705
1706
1707
1708
1709</article>
1710
1711</section>
1712
1713
1714
1715
1716 </div>
1717 </div>
1718
1719 <div class="clearfix"></div>
1720
1721
1722 <div class="col-md-3">
1723 <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
1724 </div>
1725
1726
1727</div>
1728</div>
1729
1730<div class="modal fade" id="searchResults">
1731 <div class="modal-dialog">
1732 <div class="modal-content">
1733 <div class="modal-header">
1734 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1735 <h4 class="modal-title">Search results</h4>
1736 </div>
1737 <div class="modal-body"></div>
1738 <div class="modal-footer">
1739 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
1740 </div>
1741 </div><!-- /.modal-content -->
1742 </div><!-- /.modal-dialog -->
1743</div>
1744
1745<footer>
1746
1747
1748<span class="jsdoc-message">
1749 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a>
1750
1751 on 2016-03-19T23:15:39-04:00
1752
1753 using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
1754</span>
1755</footer>
1756
1757<script src="scripts/docstrap.lib.js"></script>
1758<script src="scripts/toc.js"></script>
1759<script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
1760
1761<script>
1762$( function () {
1763 $( "[id*='$']" ).each( function () {
1764 var $this = $( this );
1765
1766 $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
1767 } );
1768
1769 $( ".tutorial-section pre, .readme-section pre" ).each( function () {
1770 var $this = $( this );
1771
1772 var example = $this.find( "code" );
1773 exampleText = example.html();
1774 var lang = /{@lang (.*?)}/.exec( exampleText );
1775 if ( lang && lang[1] ) {
1776 exampleText = exampleText.replace( lang[0], "" );
1777 example.html( exampleText );
1778 lang = lang[1];
1779 } else {
1780 var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
1781 lang = langClassMatch ? langClassMatch[1] : "javascript";
1782 }
1783
1784 if ( lang ) {
1785
1786 $this
1787 .addClass( "sunlight-highlight-" + lang )
1788 .addClass( "linenums" )
1789 .html( example.html() );
1790
1791 }
1792 } );
1793
1794 Sunlight.highlightAll( {
1795 lineNumbers : false,
1796 showMenu : true,
1797 enableDoclinks : true
1798 } );
1799
1800 $.catchAnchorLinks( {
1801 navbarOffset: 10
1802 } );
1803 $( "#toc" ).toc( {
1804 anchorName : function ( i, heading, prefix ) {
1805 var id = $( heading ).attr( "id" );
1806 return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i );
1807 },
1808 selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
1809 showAndHide : false,
1810 smoothScrolling: true
1811 } );
1812
1813 $( "#main span[id^='toc']" ).addClass( "toc-shim" );
1814 $( '.dropdown-toggle' ).dropdown();
1815
1816 $( "table" ).each( function () {
1817 var $this = $( this );
1818 $this.addClass('table');
1819 } );
1820
1821} );
1822</script>
1823
1824
1825
1826<!--Navigation and Symbol Display-->
1827
1828
1829<!--Google Analytics-->
1830
1831
1832<script type="text/javascript">
1833 $(document).ready(function() {
1834 SearcherDisplay.init();
1835 });
1836</script>
1837
1838</body>
1839</html>
\No newline at end of file