forked from bombastictranz/bombastictranz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommander - npm.html
921 lines (871 loc) · 231 KB
/
commander - npm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
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
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
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
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
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
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
<!DOCTYPE html>
<!-- saved from url=(0039)https://www.npmjs.com/package/commander -->
<html lang="en" data-bybit-channel-name="Yjj_DOlztcTpuX-ghNr2B"><script type="text/javascript">window["_gaUserPrefs"] = { ioo : function() { return true; } }</script><div id="in-page-channel-node-id" data-channel-name="in_page_channel_NI1144"></div><script async="false" src="chrome-extension://cpmkedoipcpimgecpmgpldfpohjplkpp/window-provider.js"></script><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="./commander - npm_files/styles.8c5a07d0df4b584aab7e.css">
<title>commander - npm</title>
<meta data-react-helmet="true" http-equiv="cleartype" content="on"><meta data-react-helmet="true" name="apple-mobile-web-app-capable" content="yes"><meta data-react-helmet="true" name="viewport" content="width=device-width,minimum-scale=1.0,initial-scale=1,user-scalable=yes"><meta data-react-helmet="true" property="og:image" content="https://static-production.npmjs.com/338e4905a2684ca96e08c7780fc68412.png"><meta data-react-helmet="true" name="msapplication-TileColor" content="#cb3837"><meta data-react-helmet="true" name="msapplication-TileImage" content="https://static-production.npmjs.com/7a7ffabbd910fc60161bc04f2cee4160.png"><meta data-react-helmet="true" name="msapplication-config" content="https://static-production.npmjs.com/668aac888e52ae13cac9cfd71fabd31f.xml"><meta data-react-helmet="true" name="theme-color" content="#cb3837">
<link data-react-helmet="true" href="https://static-production.npmjs.com/osd.xml" rel="search" title="npm package search" type="application/opensearchdescription+xml"><link data-react-helmet="true" rel="apple-touch-icon" sizes="120x120" href="https://static-production.npmjs.com/58a19602036db1daee0d7863c94673a4.png"><link data-react-helmet="true" rel="apple-touch-icon" sizes="144x144" href="https://static-production.npmjs.com/7a7ffabbd910fc60161bc04f2cee4160.png"><link data-react-helmet="true" rel="apple-touch-icon" sizes="152x152" href="https://static-production.npmjs.com/34110fd7686e2c90a487ca98e7336e99.png"><link data-react-helmet="true" rel="apple-touch-icon" sizes="180x180" href="https://static-production.npmjs.com/3dc95981de4241b35cd55fe126ab6b2c.png"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/b0f1a8318363185cc2ea6a40ac23eeb2.png" sizes="32x32"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/1996fcfdf7ca81ea795f67f093d7f449.png" sizes="230x230"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/f1786e9b7cba9753ca7b9c40e8b98f67.png" sizes="96x96"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/5f6e93af5bf0f5dcdd1eecdac99f51ee.png" sizes="192x192"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/c426a1116301d1fd178c51522484127a.png" sizes="228x228"><link data-react-helmet="true" rel="icon" type="image/png" href="https://static-production.npmjs.com/da3ab40fb0861d15c83854c29f5f2962.png" sizes="16x16">
<style data-styled="active" data-styled-version="5.3.5"></style><link type="text/css" rel="stylesheet" href="./commander - npm_files/css2"><meta name="description" content="the complete solution for node.js command-line programs. Latest version: 12.0.0, last published: 24 days ago. Start using commander in your project by running `npm i commander`. There are 79427 other projects in the npm registry using commander." data-react-helmet="true"><meta property="og:description" content="the complete solution for node.js command-line programs. Latest version: 12.0.0, last published: 24 days ago. Start using commander in your project by running `npm i commander`. There are 79427 other projects in the npm registry using commander." data-react-helmet="true"><meta property="og:title" content="commander" data-react-helmet="true"><meta property="og:url" content="https://www.npmjs.com/package/commander" data-react-helmet="true"><meta property="og:site_name" content="npm" data-react-helmet="true"><meta name="keywords" content="commander,command,option,parser,cli,argument,args,argv" data-react-helmet="true"><meta name="twitter:card" content="summary" data-react-helmet="true"><meta name="twitter:url" content="https://www.npmjs.com/package/commander" data-react-helmet="true"><meta name="twitter:title" content="npm: commander" data-react-helmet="true"><meta name="twitter:description" content="the complete solution for node.js command-line programs. Latest version: 12.0.0, last published: 24 days ago. Start using commander in your project by running `npm i commander`. There are 79427 other projects in the npm registry using commander." data-react-helmet="true"></head>
<body>
<div id="app"><div class="_452c3ec4 d68c66a8"><div class="cf325dbd list ma0 pa0 tr z-999"><div class="c746cc21 list ma0 pa0 tr z-999"></div></div><div class="flex flex-column vh-100"><header class="_755f5b0f bg-white z-2 bb b--black-20"><div></div><div class="e7070742 pv3-ns ph1-ns bg-white"><div id="header" class="bbefbfcc">skip to:<a aria-label="skip to content" class="d6d0dbcf" href="https://www.npmjs.com/package/commander#main">content</a><a aria-label="skip to package search" class="d6d0dbcf" href="https://www.npmjs.com/package/commander#search">package search</a></div><div class="ef7c6e62 center mw9 border-box ph4-ns ph3 flex items-center"><span class="_0edb515f pr3 dn dib-ns link lh-title dim b--white-30">❤</span><button tabindex="-1" class="_79c95847 _99e3854f f6 fw4 link dn dib-ns tl dim mr4 nowrap">NuGet Package Manager</button><nav class="_4a5f2a79 db w-100 w-auto-ns truncate" aria-label="Product Navigation"><ul id="main-menu" class="list pl0" role="menu" aria-label="Nav Menu"><li role="none" class="dib"><a href="https://www.npmjs.com/products/pro" role="menuitem" class="c6c55db4 no-underline f6-ns f7 fw5 dim pr2 pl2" id="nav-pro-link">Pro</a></li><li role="none"><a href="https://www.npmjs.com/products/teams" role="menuitem" class="c6c55db4 no-underline f6-ns f7 fw5 dim pr2 pl2" id="nav-teams-link">Teams</a></li><li role="none" class="dib"><a href="https://www.npmjs.com/products" role="menuitem" class="c6c55db4 no-underline f6-ns f7 fw5 dim pr2 pl2" id="nav-pricing-link">Pricing</a></li><li role="none" class="dib"><a href="https://docs.npmjs.com/" role="menuitem" class="c6c55db4 no-underline f6-ns f7 fw5 dim pr2 pl2" id="nav-docs-link">Documentation</a></li></ul></nav></div></div><div class="_4ea0e50d bt b--black-10"><div class="c5b9953b center mw9 flex flex-wrap ph4-ns border-box"><span class="_657f443d">npm</span><div class="af43375d mt3 db mr4-ns pb3 pb0-ns flex-auto 2-ns ph3 ph0-ns"><a href="https://www.npmjs.com/" aria-label="Npm"><svg viewBox="0 0 780 250" aria-hidden="true"><path fill="#231F20" d="M240,250h100v-50h100V0H240V250z M340,50h50v100h-50V50z M480,0v200h100V50h50v150h50V50h50v150h50V0H480z M0,200h100V50h50v150h50V0H0V200z"></path></svg></a></div><div id="search" class="_581ebd89 relative flex-auto w-100 w-50-ns pv2-ns order-1-ns order-2"><form id="search" method="GET" action="https://www.npmjs.com/search" class="_13c93d41 relative flex bg-transparent ph3 ph2 pv2 ph0-ns pv0-ns bt b--black-10 bn-ns"><div class="e82b10fd relative dde91b96"><div class="_2f299eeb nowrap flex"><span class="_705cdf4f db fl pl3 pr1"><svg width="15px" height="15px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" aria-hidden="true"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g stroke="#777777" stroke-width="1.3"><g><path d="M13.4044,7.0274 C13.4044,10.5494 10.5494,13.4044 7.0274,13.4044 C3.5054,13.4044 0.6504,10.5494 0.6504,7.0274 C0.6504,3.5054 3.5054,0.6504 7.0274,0.6504 C10.5494,0.6504 13.4044,3.5054 13.4044,7.0274 Z"></path><path d="M11.4913,11.4913 L17.8683,17.8683"></path></g></g></g></svg></span><input type="search" role="combobox" name="q" hotkeys="[object Object]" placeholder="Search packages" aria-label="Search packages" aria-controls="typeahead-list-540190" aria-expanded="false" aria-activedescendant="" inputref="[object Object]" autocomplete="off" class="_390acbc5 f5 fw3 black relative" value="" element="input"></div></div><button type="submit" class="_0da775bb bn pv2 ph4 f6 white pointer bn pv2 ph4 f6 white pointer" aria-label="Search">Search</button><input type="hidden" aria-hidden="true" name="csrftoken" value="9BoY-0m-YTuvDvVayrdbCimWS9DRdqRT0Ef0LGy2ZhF"></form></div><div class="_6f31c82b ml3 mt2 mt0-ns pv2-ns flex-auto tr nowrap relative pointer fw6 order-1 order-2-ns"><nav><button class="f66d27e1 flex bg-white items-center self-center pt1-ns pt2 pointer" aria-label="Profile menu" aria-expanded="false"><span class="_657f443d">Menu</span><img alt="avatar" class="a3eb5146 flex-none br-100" src="./commander - npm_files/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdmF0YXJVUkwiOiJodHRwczovL3MuZ3JhdmF0YXIuY29tL2F2YXRhci9lYzU1NWY3YzNkODRjOWI3MWQxNTMzOWE3ZDRkYTgwNj9zaXplPTUwJmRlZmF1bHQ9cmV0cm8.UPQBRzXl1pLdMPIfp1-P3gmDwQbPjNoAUN0K7iDpPzk" aria-hidden="true"><div class="pl1" aria-hidden="true"><svg viewBox="0 0 11.64 5.82" height="6px" fill="#666" aria-hidden="true"><g id="6a308a62-c62e-4b78-87b6-759dd1ef54e5"><polygon points="10 0 5 5 0 0 10 0"></polygon></g></svg></div></button><span><div class="_59b94eb6 pa2 list absolute black-90 ma0 pa0 z-5 tl bg-white" hidden=""><h2 class="d70fa54a lh-copy pa2 flex"><span class="_0b9b6c57 mr2"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path></svg> <!-- -->roseteromeo56</span></h2><ul class="list ph0 ma0 mt2"><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/~roseteromeo56"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path></svg> Profile</a></li><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/settings/roseteromeo56/packages"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cubes" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"></path></svg> Packages</a></li><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/settings/roseteromeo56/profile"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cog" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"></path></svg> Account</a></li><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/settings/roseteromeo56/billing"><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="credit-card" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M527.9 32H48.1C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48.1 48h479.8c26.6 0 48.1-21.5 48.1-48V80c0-26.5-21.5-48-48.1-48zM54.1 80h467.8c3.3 0 6 2.7 6 6v42H48.1V86c0-3.3 2.7-6 6-6zm467.8 352H54.1c-3.3 0-6-2.7-6-6V256h479.8v170c0 3.3-2.7 6-6 6zM192 332v40c0 6.6-5.4 12-12 12h-72c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12zm192 0v40c0 6.6-5.4 12-12 12H236c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12z"></path></svg> Billing Info</a></li><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/settings/roseteromeo56/tokens"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="coins" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"></path></svg> Access Tokens</a></li><li class="_9e2bd439 undefined"><a class="_07ec5156 pa2 pt3 link mt2" href="https://www.npmjs.com/org/create"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 11" aria-hidden="true"><path fill-rule="evenodd" d="M4.9 6.376H.78V4.444H4.9V.097h2v4.347h4.117v1.932H6.9v4.347h-2"></path></svg> Add Organization</a></li><li class="_9e2bd439"><a class="_506dfb65 pa2 link db fw6 black" href="https://www.npmjs.com/logout"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="sign-out-alt" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"></path></svg> Sign Out</a></li></ul></div></span></nav></div></div></div></header><main id="main"> <div class="_36ae70e9 flex flex-row flex-wrap pb5 ph3-l mw-100 mt4-ns mt1 center-ns mh1" id="top"><div class="w-100 ph0-l ph3 ph4-m"><h1 class="cd6ce1fd flex flex-row justify-start items-center w-100 fw6 mt3 black dib ma0 tracked-tight no-underline hover-black f3-ns"><span class="_50685029 truncate">commander</span><div data-nosnippet="true"><img src="./commander - npm_files/255a118f56f5346b97e56325a1217a16.svg" height="20px" title="This package contains built-in TypeScript declarations" alt="TypeScript icon, indicating that this package has built-in type declarations" class="aa30d277 pl3" data-nosnippet="true"></div></h1><span class="_76473bea f6 dib ph0 pv2 mb2-ns black-80 nowrap f5 fw4 lh-copy">12.0.0 • </span><span class="_813b53b2 _76473bea f6 dib ph0 pv2 mb2-ns black-80 nowrap f5 fw4 lh-copy">Public</span><span class="_76473bea f6 dib ph0 pv2 mb2-ns black-80 nowrap f5 fw4 lh-copy"> • Published <time datetime="2024-02-03T09:44:33.948Z" title="2/3/2024, 4:44:33 AM">24 days ago</time></span></div><ul class="cfb2a888 flex flex-column flex-row-l w-100 ma0 pa0 mr2 mr0-l list" role="tablist" aria-owns="package-tab-readme package-tab-code package-tab-dependencies package-tab-dependents package-tab-versions"><li class="_8055e658 f5 fw5 tc pointer d9f99065 ac5f7ef8 f4 fw6 black-50" role="presentation"><a class="_38ce9a85 link db ph4 fw6" href="https://www.npmjs.com/package/commander?activeTab=readme" aria-selected="true" role="tab" aria-controls="tabpanel-readme" id="package-tab-readme" tabindex="0"><span><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="file-alt" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"></path></svg> Readme</span></a></li><li class="_8055e658 f5 fw5 tc pointer _7aa1ee94" role="presentation"><a class="_38ce9a85 link db ph4 fw6" href="https://www.npmjs.com/package/commander?activeTab=code" aria-selected="false" role="tab" aria-controls="tabpanel-code" id="package-tab-code" tabindex="-1"><span><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="file-archive" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zM128.4 336c-17.9 0-32.4 12.1-32.4 27 0 15 14.6 27 32.5 27s32.4-12.1 32.4-27-14.6-27-32.5-27zM224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6z"></path></svg>Code <span class="a17280e0"><span class="Label-sc-1t3ykp0-0 hGLrKA _22665c13">Beta</span></span></span></a></li><li class="_8055e658 f5 fw5 tc pointer c1f85151" role="presentation"><a class="_38ce9a85 link db ph4 fw6" href="https://www.npmjs.com/package/commander?activeTab=dependencies" aria-selected="false" role="tab" aria-controls="tabpanel-dependencies" id="package-tab-dependencies" tabindex="-1"><span><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cube" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"></path></svg>0 Dependencies</span></a></li><li class="_8055e658 f5 fw5 tc pointer _7cec0316" role="presentation"><a class="_38ce9a85 link db ph4 fw6" href="https://www.npmjs.com/package/commander?activeTab=dependents" aria-selected="false" role="tab" aria-controls="tabpanel-dependents" id="package-tab-dependents" tabindex="-1"><span><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="cubes" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"></path></svg>79,427 Dependents</span></a></li><li class="_8055e658 f5 fw5 tc pointer b4fcfd19" role="presentation"><a class="_38ce9a85 link db ph4 fw6" href="https://www.npmjs.com/package/commander?activeTab=versions" aria-selected="false" role="tab" aria-controls="tabpanel-versions" id="package-tab-versions" tabindex="-1"><span><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="tags" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"></path></svg>114 Versions</span></a></li></ul><div class="_6620a4fd mw8-l mw-100 w-100 w-two-thirds-l ph3-m pt2 pl0-ns pl2"><span><section class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-readme" aria-labelledby="package-tab-readme" role="tabpanel" data-attribute=""><div class=""><article><div id="readme" class="_704c034e _6d9832ac pr4-ns pl0-ns ph1-m pr3-m pr2"><h1><a id="user-content-commanderjs" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#commanderjs"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Commander.js</h1>
<p><a href="https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22"><img src="./commander - npm_files/badge.svg" alt="Build Status" style="max-width: 100%;"></a>
<a href="https://www.npmjs.org/package/commander" rel="nofollow"><img src="./commander - npm_files/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f762f636f6d6d616e6465722e7376673f7374796c653d666c6174" alt="NPM Version" data-canonical-src="http://img.shields.io/npm/v/commander.svg?style=flat" style="max-width: 100%;"></a>
<a href="https://npmcharts.com/compare/commander?minimal=true" rel="nofollow"><img src="./commander - npm_files/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f636f6d6d616e6465722e7376673f7374796c653d666c6174" alt="NPM Downloads" data-canonical-src="https://img.shields.io/npm/dm/commander.svg?style=flat" style="max-width: 100%;"></a>
<a href="https://packagephobia.now.sh/result?p=commander" rel="nofollow"><img src="./commander - npm_files/68747470733a2f2f7061636b61676570686f6269612e6e6f772e73682f62616467653f703d636f6d6d616e646572" alt="Install Size" data-canonical-src="https://packagephobia.now.sh/badge?p=commander" style="max-width: 100%;"></a></p>
<p>The complete solution for <a href="http://nodejs.org/" rel="nofollow">node.js</a> command-line interfaces.</p>
<p>Read this in other languages: English | <a href="https://github.com/tj/commander.js/blob/HEAD/Readme_zh-CN.md">简体中文</a></p>
<ul>
<li>
<a href="https://www.npmjs.com/package/commander#commanderjs">Commander.js</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#installation">Installation</a></li>
<li><a href="https://www.npmjs.com/package/commander#quick-start">Quick Start</a></li>
<li><a href="https://www.npmjs.com/package/commander#declaring-program-variable">Declaring <em>program</em> variable</a></li>
<li>
<a href="https://www.npmjs.com/package/commander#options">Options</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#common-option-types-boolean-and-value">Common option types, boolean and value</a></li>
<li><a href="https://www.npmjs.com/package/commander#default-option-value">Default option value</a></li>
<li><a href="https://www.npmjs.com/package/commander#other-option-types-negatable-boolean-and-booleanvalue">Other option types, negatable boolean and boolean|value</a></li>
<li><a href="https://www.npmjs.com/package/commander#required-option">Required option</a></li>
<li><a href="https://www.npmjs.com/package/commander#variadic-option">Variadic option</a></li>
<li><a href="https://www.npmjs.com/package/commander#version-option">Version option</a></li>
<li><a href="https://www.npmjs.com/package/commander#more-configuration">More configuration</a></li>
<li><a href="https://www.npmjs.com/package/commander#custom-option-processing">Custom option processing</a></li>
</ul>
</li>
<li>
<a href="https://www.npmjs.com/package/commander#commands">Commands</a>
<ul>
<li>
<a href="https://www.npmjs.com/package/commander#command-arguments">Command-arguments</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#more-configuration-1">More configuration</a></li>
<li><a href="https://www.npmjs.com/package/commander#custom-argument-processing">Custom argument processing</a></li>
</ul>
</li>
<li><a href="https://www.npmjs.com/package/commander#action-handler">Action handler</a></li>
<li><a href="https://www.npmjs.com/package/commander#stand-alone-executable-subcommands">Stand-alone executable (sub)commands</a></li>
<li><a href="https://www.npmjs.com/package/commander#life-cycle-hooks">Life cycle hooks</a></li>
</ul>
</li>
<li>
<a href="https://www.npmjs.com/package/commander#automated-help">Automated help</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#custom-help">Custom help</a></li>
<li><a href="https://www.npmjs.com/package/commander#display-help-after-errors">Display help after errors</a></li>
<li><a href="https://www.npmjs.com/package/commander#display-help-from-code">Display help from code</a></li>
<li><a href="https://www.npmjs.com/package/commander#name">.name</a></li>
<li><a href="https://www.npmjs.com/package/commander#usage">.usage</a></li>
<li><a href="https://www.npmjs.com/package/commander#description-and-summary">.description and .summary</a></li>
<li><a href="https://www.npmjs.com/package/commander#helpoptionflags-description">.helpOption(flags, description)</a></li>
<li><a href="https://www.npmjs.com/package/commander#helpcommand">.helpCommand()</a></li>
<li><a href="https://www.npmjs.com/package/commander#more-configuration-2">More configuration</a></li>
</ul>
</li>
<li><a href="https://www.npmjs.com/package/commander#custom-event-listeners">Custom event listeners</a></li>
<li>
<a href="https://www.npmjs.com/package/commander#bits-and-pieces">Bits and pieces</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#parse-and-parseasync">.parse() and .parseAsync()</a></li>
<li><a href="https://www.npmjs.com/package/commander#parsing-configuration">Parsing Configuration</a></li>
<li><a href="https://www.npmjs.com/package/commander#legacy-options-as-properties">Legacy options as properties</a></li>
<li><a href="https://www.npmjs.com/package/commander#typescript">TypeScript</a></li>
<li><a href="https://www.npmjs.com/package/commander#createcommand">createCommand()</a></li>
<li><a href="https://www.npmjs.com/package/commander#node-options-such-as---harmony">Node options such as <code>--harmony</code></a></li>
<li><a href="https://www.npmjs.com/package/commander#debugging-stand-alone-executable-subcommands">Debugging stand-alone executable subcommands</a></li>
<li><a href="https://www.npmjs.com/package/commander#npm-run-script">npm run-script</a></li>
<li><a href="https://www.npmjs.com/package/commander#display-error">Display error</a></li>
<li><a href="https://www.npmjs.com/package/commander#override-exit-and-output-handling">Override exit and output handling</a></li>
<li><a href="https://www.npmjs.com/package/commander#additional-documentation">Additional documentation</a></li>
</ul>
</li>
<li>
<a href="https://www.npmjs.com/package/commander#support">Support</a>
<ul>
<li><a href="https://www.npmjs.com/package/commander#commander-for-enterprise">Commander for enterprise</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>For information about terms used in this document see: <a href="https://github.com/tj/commander.js/blob/HEAD/docs/terminology.md">terminology</a></p>
<h2><a id="user-content-installation" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#installation"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Installation</h2>
<div class="highlight highlight-source-shell"><pre tabindex="0">npm install commander</pre></div>
<h2><a id="user-content-quick-start" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#quick-start"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Quick Start</h2>
<p>You write code to describe your command line interface.
Commander looks after parsing the arguments into options and command-arguments,
displays usage errors for problems, and implements a help system.</p>
<p>Commander is strict and displays an error for unrecognised options.
The two most used option types are a boolean option, and an option which takes its value from the following argument.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/split.js">split.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">const</span> <span class="pl-kos">{</span> program <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'commander'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'--first'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-s, --separator <char>'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">limit</span> <span class="pl-c1">=</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">first</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">split</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">separator</span><span class="pl-kos">,</span> <span class="pl-s1">limit</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">node split.js -s / --fits a/b/c</span>
<span class="pl-c1">error: unknown option '--fits'</span>
<span class="pl-c1">(Did you mean --first?)</span>
$ <span class="pl-s1">node split.js -s / --first a/b/c</span>
<span class="pl-c1">[ 'a' ]</span></pre></div>
<p>Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands).</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/string-util.js">string-util.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">const</span> <span class="pl-kos">{</span> Command <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'commander'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">program</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Command</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-s">'string-util'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">description</span><span class="pl-kos">(</span><span class="pl-s">'CLI to some JavaScript string utilities'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.8.0'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'split'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">description</span><span class="pl-kos">(</span><span class="pl-s">'Split a string into substrings and display as an array'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<string>'</span><span class="pl-kos">,</span> <span class="pl-s">'string to split'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'--first'</span><span class="pl-kos">,</span> <span class="pl-s">'display just the first substring'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-s, --separator <char>'</span><span class="pl-kos">,</span> <span class="pl-s">'separator character'</span><span class="pl-kos">,</span> <span class="pl-s">','</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">limit</span> <span class="pl-c1">=</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">first</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">split</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">separator</span><span class="pl-kos">,</span> <span class="pl-s1">limit</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">node string-util.js <span class="pl-c1">help</span> split</span>
<span class="pl-c1">Usage: string-util split [options] <string></span>
<span class="pl-c1">Split a string into substrings and display as an array.</span>
<span class="pl-c1">Arguments:</span>
<span class="pl-c1"> string string to split</span>
<span class="pl-c1">Options:</span>
<span class="pl-c1"> --first display just the first substring</span>
<span class="pl-c1"> -s, --separator <char> separator character (default: ",")</span>
<span class="pl-c1"> -h, --help display help for command</span>
$ <span class="pl-s1">node string-util.js split --separator=/ a/b/c</span>
<span class="pl-c1">[ 'a', 'b', 'c' ]</span></pre></div>
<p>More samples can be found in the <a href="https://github.com/tj/commander.js/tree/master/examples">examples</a> directory.</p>
<h2><a id="user-content-declaring-program-variable" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#declaring-program-variable"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Declaring <em>program</em> variable</h2>
<p>Commander exports a global object which is convenient for quick programs.
This is used in the examples in this README for brevity.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-c">// CommonJS (.cjs)</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> program <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'commander'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-c">// CommonJS (.cjs)</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> Command <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'commander'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">program</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Command</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-c">// ECMAScript (.mjs)</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Command</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'commander'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">program</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Command</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-ts"><pre tabindex="0"><span class="pl-c">// TypeScript (.ts)</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Command</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'commander'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">program</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Command</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2><a id="user-content-options" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#options"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Options</h2>
<p>Options are defined with the <code>.option()</code> method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|').</p>
<p>The parsed options can be accessed by calling <code>.opts()</code> on a <code>Command</code> object, and are passed to the action handler.</p>
<p>Multi-word options such as "--template-engine" are camel-cased, becoming <code>program.opts().templateEngine</code> etc.</p>
<p>An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an <code>=</code> for a long option.</p>
<div class="highlight highlight-source-shell"><pre tabindex="0">serve -p 80
serve -p80
serve --port 80
serve --port=80</pre></div>
<p>You can use <code>--</code> to indicate the end of the options, and any remaining arguments will be used without being interpreted.</p>
<p>By default, options on the command line are not positional, and can be specified before or after other arguments.</p>
<p>There are additional related routines for when <code>.opts()</code> is not enough:</p>
<ul>
<li>
<code>.optsWithGlobals()</code> returns merged local and global option values</li>
<li>
<code>.getOptionValue()</code> and <code>.setOptionValue()</code> work with a single option value</li>
<li>
<code>.getOptionValueSource()</code> and <code>.setOptionValueWithSource()</code> include where the option value came from</li>
</ul>
<h3><a id="user-content-common-option-types-boolean-and-value" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#common-option-types-boolean-and-value"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Common option types, boolean and value</h3>
<p>The two most used option types are a boolean option, and an option which takes its value
from the following argument (declared with angle brackets like <code>--expect <value></code>). Both are <code>undefined</code> unless specified on command line.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-common.js">options-common.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-d, --debug'</span><span class="pl-kos">,</span> <span class="pl-s">'output extra debugging'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-s, --small'</span><span class="pl-kos">,</span> <span class="pl-s">'small pizza size'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-p, --pizza-type <type>'</span><span class="pl-kos">,</span> <span class="pl-s">'flavour of pizza'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">debug</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'pizza details:'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">small</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'- small pizza size'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">pizzaType</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`- <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">pizzaType</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza-options -p</span>
<span class="pl-c1">error: option '-p, --pizza-type <type>' argument missing</span>
$ <span class="pl-s1">pizza-options -d -s -p vegetarian</span>
<span class="pl-c1">{ debug: true, small: true, pizzaType: 'vegetarian' }</span>
<span class="pl-c1">pizza details:</span>
<span class="pl-c1">- small pizza size</span>
<span class="pl-c1">- vegetarian</span>
$ <span class="pl-s1">pizza-options --pizza-type=cheese</span>
<span class="pl-c1">pizza details:</span>
<span class="pl-c1">- cheese</span></pre></div>
<p>Multiple boolean short options may be combined following the dash, and may be followed by a single short option taking a value.
For example <code>-d -s -p cheese</code> may be written as <code>-ds -p cheese</code> or even <code>-dsp cheese</code>.</p>
<p>Options with an expected option-argument are greedy and will consume the following argument whatever the value.
So <code>--id -xyz</code> reads <code>-xyz</code> as the option-argument.</p>
<p><code>program.parse(arguments)</code> processes the arguments, leaving any args not consumed by the program options in the <code>program.args</code> array. The parameter is optional and defaults to <code>process.argv</code>.</p>
<h3><a id="user-content-default-option-value" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#default-option-value"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Default option value</h3>
<p>You can specify a default value for an option.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-defaults.js">options-defaults.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-c, --cheese <type>'</span><span class="pl-kos">,</span> <span class="pl-s">'add the specified type of cheese'</span><span class="pl-kos">,</span> <span class="pl-s">'blue'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`cheese: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza-options</span>
<span class="pl-c1">cheese: blue</span>
$ <span class="pl-s1">pizza-options --cheese stilton</span>
<span class="pl-c1">cheese: stilton</span></pre></div>
<h3><a id="user-content-other-option-types-negatable-boolean-and-booleanvalue" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#other-option-types-negatable-boolean-and-booleanvalue"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Other option types, negatable boolean and boolean|value</h3>
<p>You can define a boolean option long name with a leading <code>no-</code> to set the option value to false when used.
Defined alone this also makes the option true by default.</p>
<p>If you define <code>--foo</code> first, adding <code>--no-foo</code> does not change the default value from what it would
otherwise be.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-negatable.js">options-negatable.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'--no-sauce'</span><span class="pl-kos">,</span> <span class="pl-s">'Remove sauce'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'--cheese <flavour>'</span><span class="pl-kos">,</span> <span class="pl-s">'cheese flavour'</span><span class="pl-kos">,</span> <span class="pl-s">'mozzarella'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'--no-cheese'</span><span class="pl-kos">,</span> <span class="pl-s">'plain with no cheese'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">sauceStr</span> <span class="pl-c1">=</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">sauce</span> ? <span class="pl-s">'sauce'</span> : <span class="pl-s">'no sauce'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">cheeseStr</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> ? <span class="pl-s">'no cheese'</span> : <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span><span class="pl-kos">}</span></span> cheese`</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`You ordered a pizza with <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">sauceStr</span><span class="pl-kos">}</span></span> and <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">cheeseStr</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza-options</span>
<span class="pl-c1">You ordered a pizza with sauce and mozzarella cheese</span>
$ <span class="pl-s1">pizza-options --sauce</span>
<span class="pl-c1">error: unknown option '--sauce'</span>
$ <span class="pl-s1">pizza-options --cheese=blue</span>
<span class="pl-c1">You ordered a pizza with sauce and blue cheese</span>
$ <span class="pl-s1">pizza-options --no-sauce --no-cheese</span>
<span class="pl-c1">You ordered a pizza with no sauce and no cheese</span></pre></div>
<p>You can specify an option which may be used as a boolean option but may optionally take an option-argument
(declared with square brackets like <code>--optional [value]</code>).</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-boolean-or-value.js">options-boolean-or-value.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-c, --cheese [type]'</span><span class="pl-kos">,</span> <span class="pl-s">'Add cheese with optional type'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'no cheese'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span> <span class="pl-c1">===</span> <span class="pl-c1">true</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'add cheese'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">else</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`add cheese type <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">cheese</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza-options</span>
<span class="pl-c1">no cheese</span>
$ <span class="pl-s1">pizza-options --cheese</span>
<span class="pl-c1">add cheese</span>
$ <span class="pl-s1">pizza-options --cheese mozzarella</span>
<span class="pl-c1">add cheese type mozzarella</span></pre></div>
<p>Options with an optional option-argument are not greedy and will ignore arguments starting with a dash.
So <code>id</code> behaves as a boolean option for <code>--id -5</code>, but you can use a combined form if needed like <code>--id=-5</code>.</p>
<p>For information about possible ambiguous cases, see <a href="https://github.com/tj/commander.js/blob/HEAD/docs/options-in-depth.md">options taking varying arguments</a>.</p>
<h3><a id="user-content-required-option" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#required-option"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Required option</h3>
<p>You may specify a required (mandatory) option using <code>.requiredOption()</code>. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as <code>.option()</code> in format, taking flags and description, and optional default value or custom processing.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-required.js">options-required.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">requiredOption</span><span class="pl-kos">(</span><span class="pl-s">'-c, --cheese <type>'</span><span class="pl-kos">,</span> <span class="pl-s">'pizza must have cheese'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza</span>
<span class="pl-c1">error: required option '-c, --cheese <type>' not specified</span></pre></div>
<h3><a id="user-content-variadic-option" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#variadic-option"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Variadic option</h3>
<p>You may make an option variadic by appending <code>...</code> to the value placeholder when declaring the option. On the command line you
can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments
are read until the first argument starting with a dash. The special argument <code>--</code> stops option processing entirely. If a value
is specified in the same argument as the option then no further values are read.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-variadic.js">options-variadic.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-n, --number <numbers...>'</span><span class="pl-kos">,</span> <span class="pl-s">'specify numbers'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-l, --letter [letters...]'</span><span class="pl-kos">,</span> <span class="pl-s">'specify letters'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Options: '</span><span class="pl-kos">,</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Remaining arguments: '</span><span class="pl-kos">,</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">collect -n 1 2 3 --letter a b c</span>
<span class="pl-c1">Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] }</span>
<span class="pl-c1">Remaining arguments: []</span>
$ <span class="pl-s1">collect --letter=A -n80 operand</span>
<span class="pl-c1">Options: { number: [ '80' ], letter: [ 'A' ] }</span>
<span class="pl-c1">Remaining arguments: [ 'operand' ]</span>
$ <span class="pl-s1">collect --letter -n 1 -n 2 3 -- operand</span>
<span class="pl-c1">Options: { number: [ '1', '2', '3' ], letter: true }</span>
<span class="pl-c1">Remaining arguments: [ 'operand' ]</span></pre></div>
<p>For information about possible ambiguous cases, see <a href="https://github.com/tj/commander.js/blob/HEAD/docs/options-in-depth.md">options taking varying arguments</a>.</p>
<h3><a id="user-content-version-option" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#version-option"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Version option</h3>
<p>The optional <code>version</code> method adds handling for displaying the command version. The default option flags are <code>-V</code> and <code>--version</code>, and when present the command prints the version number and exits.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.0.1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">./examples/pizza -V</span>
<span class="pl-c1">0.0.1</span></pre></div>
<p>You may change the flags and description by passing additional parameters to the <code>version</code> method, using
the same syntax for flags as the <code>option</code> method.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.0.1'</span><span class="pl-kos">,</span> <span class="pl-s">'-v, --vers'</span><span class="pl-kos">,</span> <span class="pl-s">'output the current version'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-more-configuration" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#more-configuration"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>More configuration</h3>
<p>You can add most options using the <code>.option()</code> method, but there are some additional features available
by constructing an <code>Option</code> explicitly for less common cases.</p>
<p>Example files: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-extra.js">options-extra.js</a>, <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-env.js">options-env.js</a>, <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-conflicts.js">options-conflicts.js</a>, <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-implies.js">options-implies.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'-s, --secret'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">hideHelp</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'-t, --timeout <delay>'</span><span class="pl-kos">,</span> <span class="pl-s">'timeout in seconds'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-c1">60</span><span class="pl-kos">,</span> <span class="pl-s">'one minute'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'-d, --drink <size>'</span><span class="pl-kos">,</span> <span class="pl-s">'drink size'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">choices</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'small'</span><span class="pl-kos">,</span> <span class="pl-s">'medium'</span><span class="pl-kos">,</span> <span class="pl-s">'large'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'-p, --port <number>'</span><span class="pl-kos">,</span> <span class="pl-s">'port number'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">env</span><span class="pl-kos">(</span><span class="pl-s">'PORT'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'--donate [amount]'</span><span class="pl-kos">,</span> <span class="pl-s">'optional donation in dollars'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">preset</span><span class="pl-kos">(</span><span class="pl-s">'20'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">argParser</span><span class="pl-kos">(</span><span class="pl-s1">parseFloat</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'--disable-server'</span><span class="pl-kos">,</span> <span class="pl-s">'disables the server'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">conflicts</span><span class="pl-kos">(</span><span class="pl-s">'port'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addOption</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Option</span><span class="pl-kos">(</span><span class="pl-s">'--free-drink'</span><span class="pl-kos">,</span> <span class="pl-s">'small drink included free '</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">implies</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">drink</span>: <span class="pl-s">'small'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">extra --help</span>
<span class="pl-c1">Usage: help [options]</span>
<span class="pl-c1">Options:</span>
<span class="pl-c1"> -t, --timeout <delay> timeout in seconds (default: one minute)</span>
<span class="pl-c1"> -d, --drink <size> drink cup size (choices: "small", "medium", "large")</span>
<span class="pl-c1"> -p, --port <number> port number (env: PORT)</span>
<span class="pl-c1"> --donate [amount] optional donation in dollars (preset: "20")</span>
<span class="pl-c1"> --disable-server disables the server</span>
<span class="pl-c1"> --free-drink small drink included free</span>
<span class="pl-c1"> -h, --help display help for command</span>
$ <span class="pl-s1">extra --drink huge</span>
<span class="pl-c1">error: option '-d, --drink <size>' argument 'huge' is invalid. Allowed choices are small, medium, large.</span>
$ <span class="pl-s1">PORT=80 extra --donate --free-drink</span>
<span class="pl-c1">Options: { timeout: 60, donate: 20, port: '80', freeDrink: true, drink: 'small' }</span>
$ <span class="pl-s1">extra --disable-server --port 8000</span>
<span class="pl-c1">error: option '--disable-server' cannot be used with option '-p, --port <number>'</span></pre></div>
<p>Specify a required (mandatory) option using the <code>Option</code> method <code>.makeOptionMandatory()</code>. This matches the <code>Command</code> method <a href="https://www.npmjs.com/package/commander#required-option">.requiredOption()</a>.</p>
<h3><a id="user-content-custom-option-processing" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#custom-option-processing"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Custom option processing</h3>
<p>You may specify a function to do custom processing of option-arguments. The callback function receives two parameters,
the user specified option-argument and the previous value for the option. It returns the new value for the option.</p>
<p>This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing.</p>
<p>You can optionally specify the default/starting value for the option after the function parameter.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/options-custom-processing.js">options-custom-processing.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">function</span> <span class="pl-en">myParseInt</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">dummyPrevious</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// parseInt takes a string and a radix</span>
<span class="pl-k">const</span> <span class="pl-s1">parsedValue</span> <span class="pl-c1">=</span> <span class="pl-en">parseInt</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-c1">10</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isNaN</span><span class="pl-kos">(</span><span class="pl-s1">parsedValue</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-s1">commander</span><span class="pl-kos">.</span><span class="pl-c1">InvalidArgumentError</span><span class="pl-kos">(</span><span class="pl-s">'Not a number.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">parsedValue</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">increaseVerbosity</span><span class="pl-kos">(</span><span class="pl-s1">dummyValue</span><span class="pl-kos">,</span> <span class="pl-s1">previous</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">previous</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">collect</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">previous</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">previous</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">value</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">commaSeparatedList</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">dummyPrevious</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-en">split</span><span class="pl-kos">(</span><span class="pl-s">','</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-f, --float <number>'</span><span class="pl-kos">,</span> <span class="pl-s">'float argument'</span><span class="pl-kos">,</span> <span class="pl-s1">parseFloat</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-i, --integer <number>'</span><span class="pl-kos">,</span> <span class="pl-s">'integer argument'</span><span class="pl-kos">,</span> <span class="pl-s1">myParseInt</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-v, --verbose'</span><span class="pl-kos">,</span> <span class="pl-s">'verbosity that can be increased'</span><span class="pl-kos">,</span> <span class="pl-s1">increaseVerbosity</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-c, --collect <value>'</span><span class="pl-kos">,</span> <span class="pl-s">'repeatable value'</span><span class="pl-kos">,</span> <span class="pl-s1">collect</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-l, --list <items>'</span><span class="pl-kos">,</span> <span class="pl-s">'comma separated list'</span><span class="pl-kos">,</span> <span class="pl-s1">commaSeparatedList</span><span class="pl-kos">)</span>
<span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">float</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`float: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">float</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">integer</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`integer: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">integer</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">verbose</span> <span class="pl-c1">></span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`verbosity: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">verbose</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">collect</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">></span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">collect</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">list</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">list</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">custom -f 1e2</span>
<span class="pl-c1">float: 100</span>
$ <span class="pl-s1">custom --integer 2</span>
<span class="pl-c1">integer: 2</span>
$ <span class="pl-s1">custom -v -v -v</span>
<span class="pl-c1">verbose: 3</span>
$ <span class="pl-s1">custom -c a -c b -c c</span>
<span class="pl-c1">[ 'a', 'b', 'c' ]</span>
$ <span class="pl-s1">custom --list x,y,z</span>
<span class="pl-c1">[ 'x', 'y', 'z' ]</span></pre></div>
<h2><a id="user-content-commands" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#commands"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Commands</h2>
<p>You can specify (sub)commands using <code>.command()</code> or <code>.addCommand()</code>. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested (<a href="https://github.com/tj/commander.js/blob/HEAD/examples/nestedCommands.js">example</a>).</p>
<p>In the first parameter to <code>.command()</code> you specify the command name. You may append the command-arguments after the command name, or specify them separately using <code>.argument()</code>. The arguments may be <code><required></code> or <code>[optional]</code>, and the last argument may also be <code>variadic...</code>.</p>
<p>You can use <code>.addCommand()</code> to add an already configured subcommand to the program.</p>
<p>For example:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-c">// Command implemented using action handler (description is supplied separately to `.command`)</span>
<span class="pl-c">// Returns new command for configuring.</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'clone <source> [destination]'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">description</span><span class="pl-kos">(</span><span class="pl-s">'clone a repository into a newly created directory'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">,</span> <span class="pl-s1">destination</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'clone command called'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// Command implemented using stand-alone executable file, indicated by adding description as second parameter to `.command`.</span>
<span class="pl-c">// Returns `this` for adding more commands.</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'start <service>'</span><span class="pl-kos">,</span> <span class="pl-s">'start named service'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'stop [service]'</span><span class="pl-kos">,</span> <span class="pl-s">'stop named service, or all if no name supplied'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// Command prepared separately.</span>
<span class="pl-c">// Returns `this` for adding more commands.</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">addCommand</span><span class="pl-kos">(</span><span class="pl-s1">build</span><span class="pl-kos">.</span><span class="pl-en">makeBuildCommand</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>Configuration options can be passed with the call to <code>.command()</code> and <code>.addCommand()</code>. Specifying <code>hidden: true</code> will
remove the command from the generated help output. Specifying <code>isDefault: true</code> will run the subcommand if no other
subcommand is specified (<a href="https://github.com/tj/commander.js/blob/HEAD/examples/defaultCommand.js">example</a>).</p>
<p>You can add alternative names for a command with <code>.alias()</code>. (<a href="https://github.com/tj/commander.js/blob/HEAD/examples/alias.js">example</a>)</p>
<p><code>.command()</code> automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation, any later setting changes to the parent are not inherited.</p>
<p>For safety, <code>.addCommand()</code> does not automatically copy the inherited settings from the parent command. There is a helper routine <code>.copyInheritedSettings()</code> for copying the settings when they are wanted.</p>
<h3><a id="user-content-command-arguments" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#command-arguments"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Command-arguments</h3>
<p>For subcommands, you can specify the argument syntax in the call to <code>.command()</code> (as shown above). This
is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands
you can instead use the following method.</p>
<p>To configure a command, you can use <code>.argument()</code> to specify each expected command-argument.
You supply the argument name and an optional description. The argument may be <code><required></code> or <code>[optional]</code>.
You can specify a default value for an optional command-argument.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/argument.js">argument.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.1.0'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<username>'</span><span class="pl-kos">,</span> <span class="pl-s">'user to login'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'[password]'</span><span class="pl-kos">,</span> <span class="pl-s">'password for user, if required'</span><span class="pl-kos">,</span> <span class="pl-s">'no password given'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">username</span><span class="pl-kos">,</span> <span class="pl-s1">password</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'username:'</span><span class="pl-kos">,</span> <span class="pl-s1">username</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'password:'</span><span class="pl-kos">,</span> <span class="pl-s1">password</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>The last argument of a command can be variadic, and only the last argument. To make an argument variadic you
append <code>...</code> to the argument name. A variadic argument is passed to the action handler as an array. For example:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.1.0'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'rmdir'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<dirs...>'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">dirs</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">dirs</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">dir</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'rmdir %s'</span><span class="pl-kos">,</span> <span class="pl-s1">dir</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>There is a convenience method to add multiple arguments at once, but without descriptions:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">arguments</span><span class="pl-kos">(</span><span class="pl-s">'<username> <password>'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4><a id="user-content-more-configuration-1" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#more-configuration-1"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>More configuration</h4>
<p>There are some additional features available by constructing an <code>Argument</code> explicitly for less common cases.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/arguments-extra.js">arguments-extra.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">addArgument</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-s1">commander</span><span class="pl-kos">.</span><span class="pl-c1">Argument</span><span class="pl-kos">(</span><span class="pl-s">'<drink-size>'</span><span class="pl-kos">,</span> <span class="pl-s">'drink cup size'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">choices</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'small'</span><span class="pl-kos">,</span> <span class="pl-s">'medium'</span><span class="pl-kos">,</span> <span class="pl-s">'large'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">addArgument</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-s1">commander</span><span class="pl-kos">.</span><span class="pl-c1">Argument</span><span class="pl-kos">(</span><span class="pl-s">'[timeout]'</span><span class="pl-kos">,</span> <span class="pl-s">'timeout in seconds'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">default</span><span class="pl-kos">(</span><span class="pl-c1">60</span><span class="pl-kos">,</span> <span class="pl-s">'one minute'</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div>
<h4><a id="user-content-custom-argument-processing" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#custom-argument-processing"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Custom argument processing</h4>
<p>You may specify a function to do custom processing of command-arguments (like for option-arguments).
The callback function receives two parameters, the user specified command-argument and the previous value for the argument.
It returns the new value for the argument.</p>
<p>The processed argument values are passed to the action handler, and saved as <code>.processedArgs</code>.</p>
<p>You can optionally specify the default/starting value for the argument after the function parameter.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/arguments-custom-processing.js">arguments-custom-processing.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'add'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<first>'</span><span class="pl-kos">,</span> <span class="pl-s">'integer argument'</span><span class="pl-kos">,</span> <span class="pl-s1">myParseInt</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'[second]'</span><span class="pl-kos">,</span> <span class="pl-s">'integer argument'</span><span class="pl-kos">,</span> <span class="pl-s1">myParseInt</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">first</span><span class="pl-kos">,</span> <span class="pl-s1">second</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">first</span><span class="pl-kos">}</span></span> + <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">second</span><span class="pl-kos">}</span></span> = <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">first</span> <span class="pl-c1">+</span> <span class="pl-s1">second</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-action-handler" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#action-handler"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Action handler</h3>
<p>The action handler gets passed a parameter for each command-argument you declared, and two additional parameters
which are the parsed options and the command object itself.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/thank.js">thank.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<name>'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-t, --title <honorific>'</span><span class="pl-kos">,</span> <span class="pl-s">'title to use before name'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-d, --debug'</span><span class="pl-kos">,</span> <span class="pl-s">'display some debugging'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">,</span> <span class="pl-s1">command</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">debug</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">'Called %s with options %o'</span><span class="pl-kos">,</span> <span class="pl-s1">command</span><span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">title</span> <span class="pl-c1">=</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">title</span> ? <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">}</span></span> `</span> : <span class="pl-s">''</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Thank-you <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">title</span><span class="pl-kos">}</span></span><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">name</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. The <code>this</code> keyword is set to the running command and can be used from a function expression (but not from an arrow function).</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/action-this.js">action-this.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'serve'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s">'<script>'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-p, --port <number>'</span><span class="pl-kos">,</span> <span class="pl-s">'port number'</span><span class="pl-kos">,</span> <span class="pl-c1">80</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">'Run script %s on port %s'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">port</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>You may supply an <code>async</code> action handler, in which case you call <code>.parseAsync</code> rather than <code>.parse</code>.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* code goes here */</span> <span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'run'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-s1">run</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parseAsync</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p>A command's options and arguments on the command line are validated when the command is used. Any unknown options or missing arguments will be reported as an error. You can suppress the unknown option checks with <code>.allowUnknownOption()</code>. By default, it is not an error to
pass more arguments than declared, but you can make this an error with <code>.allowExcessArguments(false)</code>.</p>
<h3><a id="user-content-stand-alone-executable-subcommands" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#stand-alone-executable-subcommands"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Stand-alone executable (sub)commands</h3>
<p>When <code>.command()</code> is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands.
Commander will search the files in the directory of the entry script for a file with the name combination <code>command-subcommand</code>, like <code>pm-install</code> or <code>pm-search</code> in the example below. The search includes trying common file extensions, like <code>.js</code>.
You may specify a custom name (and path) with the <code>executableFile</code> configuration option.
You may specify a custom search directory for subcommands with <code>.executableDir()</code>.</p>
<p>You handle the options for an executable (sub)command in the executable, and don't declare them at the top-level.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/pm">pm</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-s">'pm'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">version</span><span class="pl-kos">(</span><span class="pl-s">'0.1.0'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'install [name]'</span><span class="pl-kos">,</span> <span class="pl-s">'install one or more packages'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'search [query]'</span><span class="pl-kos">,</span> <span class="pl-s">'search with optional query'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'update'</span><span class="pl-kos">,</span> <span class="pl-s">'update installed packages'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">executableFile</span>: <span class="pl-s">'myUpdateSubCommand'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">'list'</span><span class="pl-kos">,</span> <span class="pl-s">'list packages installed'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">isDefault</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>If the program is designed to be installed globally, make sure the executables have proper modes, like <code>755</code>.</p>
<h3><a id="user-content-life-cycle-hooks" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#life-cycle-hooks"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Life cycle hooks</h3>
<p>You can add callback hooks to a command for life cycle events.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/hook.js">hook.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-t, --trace'</span><span class="pl-kos">,</span> <span class="pl-s">'display trace statements for commands'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">hook</span><span class="pl-kos">(</span><span class="pl-s">'preAction'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">thisCommand</span><span class="pl-kos">,</span> <span class="pl-s1">actionCommand</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">thisCommand</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">trace</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`About to call action handler for subcommand: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">actionCommand</span><span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'arguments: %O'</span><span class="pl-kos">,</span> <span class="pl-s1">actionCommand</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'options: %o'</span><span class="pl-kos">,</span> <span class="pl-s1">actionCommand</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>The callback hook can be <code>async</code>, in which case you call <code>.parseAsync</code> rather than <code>.parse</code>. You can add multiple hooks per event.</p>
<p>The supported events are:</p>
<table>
<thead>
<tr>
<th align="left">event name</th>
<th align="left">when hook called</th>
<th align="left">callback parameters</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">
<code>preAction</code>, <code>postAction</code>
</td>
<td align="left">before/after action handler for this command and its nested subcommands</td>
<td align="left"><code>(thisCommand, actionCommand)</code></td>
</tr>
<tr>
<td align="left"><code>preSubcommand</code></td>
<td align="left">before parsing direct subcommand</td>
<td align="left"><code>(thisCommand, subcommand)</code></td>
</tr>
</tbody>
</table>
<p>For an overview of the life cycle events see <a href="https://github.com/tj/commander.js/blob/HEAD/docs/parsing-and-hooks.md">parsing life cycle and hooks</a>.</p>
<h2><a id="user-content-automated-help" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#automated-help"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Automated help</h2>
<p>The help information is auto-generated based on the information commander already knows about your program. The default
help option is <code>-h,--help</code>.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/pizza">pizza</a></p>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">node ./examples/pizza --help</span>
<span class="pl-c1">Usage: pizza [options]</span>
<span class="pl-c1">An application for pizza ordering</span>
<span class="pl-c1">Options:</span>
<span class="pl-c1"> -p, --peppers Add peppers</span>
<span class="pl-c1"> -c, --cheese <type> Add the specified type of cheese (default: "marble")</span>
<span class="pl-c1"> -C, --no-cheese You do not want any cheese</span>
<span class="pl-c1"> -h, --help display help for command</span></pre></div>
<p>A <code>help</code> command is added by default if your command has subcommands. It can be used alone, or with a subcommand name to show
further help for the subcommand. These are effectively the same if the <code>shell</code> program has implicit help:</p>
<div class="highlight highlight-source-shell"><pre tabindex="0">shell <span class="pl-c1">help</span>
shell --help
shell <span class="pl-c1">help</span> spawn
shell spawn --help</pre></div>
<p>Long descriptions are wrapped to fit the available width. (However, a description that includes a line-break followed by whitespace is assumed to be pre-formatted and not wrapped.)</p>
<h3><a id="user-content-custom-help" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#custom-help"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Custom help</h3>
<p>You can add extra text to be displayed along with the built-in help.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/custom-help">custom-help</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-f, --foo'</span><span class="pl-kos">,</span> <span class="pl-s">'enable some foo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">addHelpText</span><span class="pl-kos">(</span><span class="pl-s">'after'</span><span class="pl-kos">,</span> <span class="pl-s">`</span>
<span class="pl-s"></span>
<span class="pl-s">Example call:</span>
<span class="pl-s"> $ custom-help --help`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>Yields the following help output:</p>
<pre lang="Text" tabindex="0"><code>Usage: custom-help [options]
Options:
-f, --foo enable some foo
-h, --help display help for command
Example call:
$ custom-help --help
</code></pre>
<p>The positions in order displayed are:</p>
<ul>
<li>
<code>beforeAll</code>: add to the program for a global banner or header</li>
<li>
<code>before</code>: display extra information before built-in help</li>
<li>
<code>after</code>: display extra information after built-in help</li>
<li>
<code>afterAll</code>: add to the program for a global footer (epilog)</li>
</ul>
<p>The positions "beforeAll" and "afterAll" apply to the command and all its subcommands.</p>
<p>The second parameter can be a string, or a function returning a string. The function is passed a context object for your convenience. The properties are:</p>
<ul>
<li>error: a boolean for whether the help is being displayed due to a usage error</li>
<li>command: the Command which is displaying the help</li>
</ul>
<h3><a id="user-content-display-help-after-errors" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#display-help-after-errors"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Display help after errors</h3>
<p>The default behaviour for usage errors is to just display a short error message.
You can change the behaviour to show the full help or a custom help message after an error.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">showHelpAfterError</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// or</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">showHelpAfterError</span><span class="pl-kos">(</span><span class="pl-s">'(add --help for additional information)'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza --unknown</span>
<span class="pl-c1">error: unknown option '--unknown'</span>
<span class="pl-c1">(add --help for additional information)</span></pre></div>
<p>The default behaviour is to suggest correct spelling after an error for an unknown command or option. You
can disable this.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">showSuggestionAfterError</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-text-shell-session"><pre tabindex="0">$ <span class="pl-s1">pizza --hepl</span>
<span class="pl-c1">error: unknown option '--hepl'</span>
<span class="pl-c1">(Did you mean --help?)</span></pre></div>
<h3><a id="user-content-display-help-from-code" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#display-help-from-code"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Display help from code</h3>
<p><code>.help()</code>: display help information and exit immediately. You can optionally pass <code>{ error: true }</code> to display on stderr and exit with an error status.</p>
<p><code>.outputHelp()</code>: output help information without exiting. You can optionally pass <code>{ error: true }</code> to display on stderr.</p>
<p><code>.helpInformation()</code>: get the built-in command help information as a string for processing or displaying yourself.</p>
<h3><a id="user-content-name" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#name"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.name</h3>
<p>The command name appears in the help, and is also used for locating stand-alone executable subcommands.</p>
<p>You may specify the program name using <code>.name()</code> or in the Command constructor. For the program, Commander will
fall back to using the script name from the full arguments passed into <code>.parse()</code>. However, the script name varies
depending on how your program is launched, so you may wish to specify it explicitly.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-s">'pizza'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">pm</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Command</span><span class="pl-kos">(</span><span class="pl-s">'pm'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>Subcommands get a name when specified using <code>.command()</code>. If you create the subcommand yourself to use with <code>.addCommand()</code>,
then set the name using <code>.name()</code> or in the Command constructor.</p>
<h3><a id="user-content-usage" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#usage"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.usage</h3>
<p>This allows you to customise the usage description in the first line of the help. Given:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-s">"my-command"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">usage</span><span class="pl-kos">(</span><span class="pl-s">"[global options] command"</span><span class="pl-kos">)</span></pre></div>
<p>The help will start with:</p>
<pre lang="Text" tabindex="0"><code>Usage: my-command [global options] command
</code></pre>
<h3><a id="user-content-description-and-summary" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#description-and-summary"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.description and .summary</h3>
<p>The description appears in the help for the command. You can optionally supply a shorter
summary to use when listed as a subcommand of the program.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">command</span><span class="pl-kos">(</span><span class="pl-s">"duplicate"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">summary</span><span class="pl-kos">(</span><span class="pl-s">"make a copy"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">description</span><span class="pl-kos">(</span><span class="pl-s">`Make a copy of the current project.</span>
<span class="pl-s">This may require additional disk space.</span>
<span class="pl-s"> `</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-helpoptionflags-description" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#helpoptionflags-description"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.helpOption(flags, description)</h3>
<p>By default, every command has a help option. You may change the default help flags and description. Pass false to disable the built-in help option.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">helpOption</span><span class="pl-kos">(</span><span class="pl-s">'-e, --HELP'</span><span class="pl-kos">,</span> <span class="pl-s">'read more information'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>(Or use <code>.addHelpOption()</code> to add an option you construct yourself.)</p>
<h3><a id="user-content-helpcommand" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#helpcommand"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.helpCommand()</h3>
<p>A help command is added by default if your command has subcommands. You can explicitly turn on or off the implicit help command with <code>.helpCommand(true)</code> and <code>.helpCommand(false)</code>.</p>
<p>You can both turn on and customise the help command by supplying the name and description:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">helpCommand</span><span class="pl-kos">(</span><span class="pl-s">'assist [command]'</span><span class="pl-kos">,</span> <span class="pl-s">'show assistance'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>(Or use <code>.addHelpCommand()</code> to add a command you construct yourself.)</p>
<h3><a id="user-content-more-configuration-2" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#more-configuration-2"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>More configuration</h3>
<p>The built-in help is formatted using the Help class.
You can configure the Help behaviour by modifying data properties and methods using <code>.configureHelp()</code>, or by subclassing using <code>.createHelp()</code> if you prefer.</p>
<p>The data properties are:</p>
<ul>
<li>
<code>helpWidth</code>: specify the wrap width, useful for unit tests</li>
<li>
<code>sortSubcommands</code>: sort the subcommands alphabetically</li>
<li>
<code>sortOptions</code>: sort the options alphabetically</li>
<li>
<code>showGlobalOptions</code>: show a section with the global options from the parent command(s)</li>
</ul>
<p>You can override any method on the <a href="https://github.com/tj/commander.js/blob/HEAD/lib/help.js">Help</a> class. There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a <em>term</em> and <em>description</em>. Take a look at <code>.formatHelp()</code> to see how they are used.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/configure-help.js">configure-help.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">configureHelp</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">sortSubcommands</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">subcommandTerm</span>: <span class="pl-kos">(</span><span class="pl-s1">cmd</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">cmd</span><span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// Just show the name, instead of short usage.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2><a id="user-content-custom-event-listeners" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#custom-event-listeners"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Custom event listeners</h2>
<p>You can execute custom actions by listening to command and option events.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'option:verbose'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">VERBOSE</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">opts</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">verbose</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2><a id="user-content-bits-and-pieces" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#bits-and-pieces"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Bits and pieces</h2>
<h3><a id="user-content-parse-and-parseasync" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#parse-and-parseasync"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>.parse() and .parseAsync()</h3>
<p>The first argument to <code>.parse</code> is the array of strings to parse. You may omit the parameter to implicitly use <code>process.argv</code>.</p>
<p>If the arguments follow different conventions than node you can pass a <code>from</code> option in the second parameter:</p>
<ul>
<li>'node': default, <code>argv[0]</code> is the application and <code>argv[1]</code> is the script being run, with user parameters after that</li>
<li>'electron': <code>argv[1]</code> varies depending on whether the electron application is packaged</li>
<li>'user': all of the arguments from the user</li>
</ul>
<p>For example:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Explicit, node conventions</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Implicit, and auto-detect electron</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'-f'</span><span class="pl-kos">,</span> <span class="pl-s">'filename'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">from</span>: <span class="pl-s">'user'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p>If you want to parse multiple times, create a new program each time. Calling parse does not clear out any previous state.</p>
<h3><a id="user-content-parsing-configuration" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#parsing-configuration"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Parsing Configuration</h3>
<p>If the default parsing does not suit your needs, there are some behaviours to support other usage patterns.</p>
<p>By default, program options are recognised before and after subcommands. To only look for program options before subcommands, use <code>.enablePositionalOptions()</code>. This lets you use
an option for a different purpose in subcommands.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/positional-options.js">positional-options.js</a></p>
<p>With positional options, the <code>-b</code> is a program option in the first line and a subcommand option in the second line:</p>
<div class="highlight highlight-source-shell"><pre tabindex="0">program -b subcommand
program subcommand -b</pre></div>
<p>By default, options are recognised before and after command-arguments. To only process options that come
before the command-arguments, use <code>.passThroughOptions()</code>. This lets you pass the arguments and following options through to another program
without needing to use <code>--</code> to end the option processing.
To use pass through options in a subcommand, the program needs to enable positional options.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/pass-through-options.js">pass-through-options.js</a></p>
<p>With pass through options, the <code>--port=80</code> is a program option in the first line and passed through as a command-argument in the second line:</p>
<div class="highlight highlight-source-shell"><pre tabindex="0">program --port=80 arg
program arg --port=80</pre></div>
<p>By default, the option processing shows an error for an unknown option. To have an unknown option treated as an ordinary command-argument and continue looking for options, use <code>.allowUnknownOption()</code>. This lets you mix known and unknown options.</p>
<p>By default, the argument processing does not display an error for more command-arguments than expected.
To display an error for excess arguments, use<code>.allowExcessArguments(false)</code>.</p>
<h3><a id="user-content-legacy-options-as-properties" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#legacy-options-as-properties"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Legacy options as properties</h3>
<p>Before Commander 7, the option values were stored as properties on the command.
This was convenient to code, but the downside was possible clashes with
existing properties of <code>Command</code>. You can revert to the old behaviour to run unmodified legacy code by using <code>.storeOptionsAsProperties()</code>.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">storeOptionsAsProperties</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">option</span><span class="pl-kos">(</span><span class="pl-s">'-d, --debug'</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">action</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">commandAndOptions</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">commandAndOptions</span><span class="pl-kos">.</span><span class="pl-c1">debug</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">`Called <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">commandAndOptions</span><span class="pl-kos">.</span><span class="pl-en">name</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-typescript" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#typescript"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>TypeScript</h3>
<p>extra-typings: There is an optional project to infer extra type information from the option and argument definitions.
This adds strong typing to the options returned by <code>.opts()</code> and the parameters to <code>.action()</code>.
See <a href="https://github.com/commander-js/extra-typings">commander-js/extra-typings</a> for more.</p>
<pre tabindex="0"><code>import { Command } from '@commander-js/extra-typings';
</code></pre>
<p>ts-node: If you use <code>ts-node</code> and stand-alone executable subcommands written as <code>.ts</code> files, you need to call your program through node to get the subcommands called correctly. e.g.</p>
<div class="highlight highlight-source-shell"><pre tabindex="0">node -r ts-node/register pm.ts</pre></div>
<h3><a id="user-content-createcommand" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#createcommand"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>createCommand()</h3>
<p>This factory function creates a new command. It is exported and may be used instead of using <code>new</code>, like:</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">const</span> <span class="pl-kos">{</span> createCommand <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'commander'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">program</span> <span class="pl-c1">=</span> <span class="pl-en">createCommand</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p><code>createCommand</code> is also a method of the Command object, and creates a new command rather than a subcommand. This gets used internally
when creating subcommands using <code>.command()</code>, and you may override it to
customise the new subcommand (example file <a href="https://github.com/tj/commander.js/blob/HEAD/examples/custom-command-class.js">custom-command-class.js</a>).</p>
<h3><a id="user-content-node-options-such-as---harmony" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#node-options-such-as---harmony"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Node options such as <code>--harmony</code>
</h3>
<p>You can enable <code>--harmony</code> option in two ways:</p>
<ul>
<li>Use <code>#! /usr/bin/env node --harmony</code> in the subcommands scripts. (Note Windows does not support this pattern.)</li>
<li>Use the <code>--harmony</code> option when call the command, like <code>node --harmony examples/pm publish</code>. The <code>--harmony</code> option will be preserved when spawning subcommand process.</li>
</ul>
<h3><a id="user-content-debugging-stand-alone-executable-subcommands" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#debugging-stand-alone-executable-subcommands"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Debugging stand-alone executable subcommands</h3>
<p>An executable subcommand is launched as a separate child process.</p>
<p>If you are using the node inspector for <a href="https://nodejs.org/en/docs/guides/debugging-getting-started/" rel="nofollow">debugging</a> executable subcommands using <code>node --inspect</code> et al.,
the inspector port is incremented by 1 for the spawned subcommand.</p>
<p>If you are using VSCode to debug executable subcommands you need to set the <code>"autoAttachChildProcesses": true</code> flag in your launch.json configuration.</p>
<h3><a id="user-content-npm-run-script" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#npm-run-script"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>npm run-script</h3>
<p>By default, when you call your program using run-script, <code>npm</code> will parse any options on the command-line and they will not reach your program. Use
<code>--</code> to stop the npm option parsing and pass through all the arguments.</p>
<p>The synopsis for <a href="https://docs.npmjs.com/cli/v9/commands/npm-run-script" rel="nofollow">npm run-script</a> explicitly shows the <code>--</code> for this reason:</p>
<div class="highlight highlight-text-shell-session"><pre tabindex="0"><span class="pl-c1">npm run-script <command> [-- <args>]</span></pre></div>
<h3><a id="user-content-display-error" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#display-error"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Display error</h3>
<p>This routine is available to invoke the Commander error handling for your own error conditions. (See also the next section about exit handling.)</p>
<p>As well as the error message, you can optionally specify the <code>exitCode</code> (used with <code>process.exit</code>)
and <code>code</code> (used with <code>CommanderError</code>).</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">'Password must be longer than four characters'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">'Custom processing has failed'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">exitCode</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">code</span>: <span class="pl-s">'my.custom.error'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-override-exit-and-output-handling" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#override-exit-and-output-handling"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Override exit and output handling</h3>
<p>By default, Commander calls <code>process.exit</code> when it detects errors, or after displaying the help or version. You can override
this behaviour and optionally supply a callback. The default override throws a <code>CommanderError</code>.</p>
<p>The override callback is passed a <code>CommanderError</code> with properties <code>exitCode</code> number, <code>code</code> string, and <code>message</code>.
Commander expects the callback to terminate the normal program flow, and will call <code>process.exit</code> if the callback returns.
The normal display of error messages or version or help is not affected by the override which is called after the display.</p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">exitOverride</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">try</span> <span class="pl-kos">{</span>
<span class="pl-s1">program</span><span class="pl-kos">.</span><span class="pl-en">parse</span><span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">argv</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// custom processing...</span>
<span class="pl-kos">}</span></pre></div>
<p>By default, Commander is configured for a command-line application and writes to stdout and stderr.
You can modify this behaviour for custom applications. In addition, you can modify the display of error messages.</p>
<p>Example file: <a href="https://github.com/tj/commander.js/blob/HEAD/examples/configure-output.js">configure-output.js</a></p>
<div class="highlight highlight-source-js"><pre tabindex="0"><span class="pl-k">function</span> <span class="pl-en">errorColor</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Add ANSI escape codes to display text in red.</span>
<span class="pl-k">return</span> <span class="pl-s">`\x1b[31m<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">str</span><span class="pl-kos">}</span></span>\x1b[0m`</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-s1">program</span>
<span class="pl-kos">.</span><span class="pl-en">configureOutput</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c">// Visibly override write routines as example!</span>
<span class="pl-en">writeOut</span>: <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">stdout</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-s">`[OUT] <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">str</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">writeErr</span>: <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">stdout</span><span class="pl-kos">.</span><span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-s">`[ERR] <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">str</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c">// Highlight errors in color.</span>
<span class="pl-en">outputError</span>: <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-s1">write</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">write</span><span class="pl-kos">(</span><span class="pl-en">errorColor</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3><a id="user-content-additional-documentation" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#additional-documentation"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Additional documentation</h3>
<p>There is more information available about:</p>
<ul>
<li>
<a href="https://github.com/tj/commander.js/blob/HEAD/docs/deprecated.md">deprecated</a> features still supported for backwards compatibility</li>
<li><a href="https://github.com/tj/commander.js/blob/HEAD/docs/options-in-depth.md">options taking varying arguments</a></li>
<li><a href="https://github.com/tj/commander.js/blob/HEAD/docs/parsing-and-hooks.md">parsing life cycle and hooks</a></li>
</ul>
<h2><a id="user-content-support" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#support"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Support</h2>
<p>The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v18.
(For older versions of Node.js, use an older version of Commander.)</p>
<p>The main forum for free and community support is the project <a href="https://github.com/tj/commander.js/issues">Issues</a> on GitHub.</p>
<h3><a id="user-content-commander-for-enterprise" class="anchor" aria-hidden="true" href="https://www.npmjs.com/package/commander#commander-for-enterprise"><svg aria-hidden="true" role="img" class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="display:inline-block;user-select:none;vertical-align:middle"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>Commander for enterprise</h3>
<p>Available as part of the Tidelift Subscription</p>
<p>The maintainers of Commander and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. <a href="https://tidelift.com/subscription/pkg/npm-commander?utm_source=npm-commander&utm_medium=referral&utm_campaign=enterprise&utm_term=repo" rel="nofollow">Learn more.</a></p>
</div></article></div><div class="pv4"><h2 class="c7520c26">Readme</h2><h3 id="user-content-keywords" class="a0dff0b1 mt2 pt2 mb3 pb3 f4 fw6 b--black-10">Keywords</h3><ul class="list pl0"><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:commander">commander</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:command">command</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:option">option</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:parser">parser</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:cli">cli</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:argument">argument</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:args">args</a></li><li class="dib mr2"><a class="_75a5f581 f4 fw6 fl db pv1 ma1 black-70 link hover-black animate" href="https://www.npmjs.com/search?q=keywords:argv">argv</a></li></ul></div></section><section class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-explore" aria-labelledby="package-tab-explore" role="tabpanel" data-attribute="hidden"></section><section class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-admin" aria-labelledby="package-tab-admin" role="tabpanel" data-attribute="hidden"></section><section class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-dependencies" aria-labelledby="package-tab-dependencies" role="tabpanel" data-attribute="hidden"></section><section class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-dependents" aria-labelledby="package-tab-dependents" role="tabpanel" data-attribute="hidden"></section><div class="e22ba268 ph2 ph0-ns ml0-ns mr3-ns black-80" id="tabpanel-versions" aria-labelledby="package-tab-versions" role="tabpanel" data-attribute="hidden"></div></span><span aria-live="polite"></span></div><div class="fdbf4038 w-third-l mt3 w-100 ph3 ph4-m pv3 pv0-l"><h2 class="c7520c26">Package Sidebar</h2><h3 class="c84e15be f5 mt2 pt2 mb0">Install</h3><div class="d767adf4 lh-copy truncate ph0 mb3 black-80 b5be2af6 f6 flex flex-row"><svg viewBox="0 0 12.32 9.33" aria-hidden="true"><g><line class="st1" x1="7.6" y1="8.9" x2="7.6" y2="6.9"></line><rect width="1.9" height="1.9"></rect><rect x="1.9" y="1.9" width="1.9" height="1.9"></rect><rect x="3.7" y="3.7" width="1.9" height="1.9"></rect><rect x="1.9" y="5.6" width="1.9" height="1.9"></rect><rect y="7.5" width="1.9" height="1.9"></rect></g></svg><p class="flex-auto truncate db ma0"><code>npm i commander</code><button class="fbd04dd1" type="button" aria-label="Copy install command line"><svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="copy" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"></path></svg></button></p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2 w-100"><h3 id="repository" class="c84e15be f5 mt2 pt2 mb0">Repository</h3><p class="_40aff104 fw6 mb3 mt2 truncate black-80 f5"><a aria-labelledby="repository repository-link" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" href="https://github.com/tj/commander.js" target="_blank" rel="noopener noreferrer nofollow"><span class="_513426a8 dib v-mid"><svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><title>Git</title><g fill="#0A0B09" fill-rule="nonzero"><path d="M15.6981994,7.28744895 L8.71251571,0.3018063 C8.3102891,-0.1006021 7.65784619,-0.1006021 7.25527133,0.3018063 L5.80464367,1.75263572 L7.64478689,3.59281398 C8.07243561,3.44828825 8.56276901,3.5452772 8.90352982,3.88604451 C9.24638012,4.22907547 9.34249661,4.72359725 9.19431703,5.15282127 L10.9679448,6.92630874 C11.3971607,6.77830046 11.8918472,6.8738964 12.2346975,7.21727561 C12.7135387,7.69595181 12.7135387,8.47203759 12.2346975,8.95106204 C11.755508,9.43026062 10.9796112,9.43026062 10.5002476,8.95106204 C10.140159,8.59061834 10.0510075,8.06127108 10.2336636,7.61759448 L8.57948492,5.9635584 L8.57948492,10.3160467 C8.69614805,10.3738569 8.80636859,10.4509954 8.90352982,10.5479843 C9.38237103,11.0268347 9.38237103,11.8027463 8.90352982,12.2822931 C8.42468862,12.7609693 7.64826937,12.7609693 7.16977641,12.2822931 C6.69093521,11.8027463 6.69093521,11.0268347 7.16977641,10.5479843 C7.28818078,10.4297518 7.42521643,10.3402504 7.57148065,10.2803505 L7.57148065,5.88746473 C7.42521643,5.82773904 7.28852903,5.73893407 7.16977641,5.62000506 C6.80707597,5.25747183 6.71983981,4.72499027 6.90597844,4.27957241 L5.09195384,2.465165 L0.301800552,7.25506126 C-0.100600184,7.65781791 -0.100600184,8.31027324 0.301800552,8.71268164 L7.28783254,15.6983243 C7.69005915,16.1005586 8.34232793,16.1005586 8.74507691,15.6983243 L15.6981994,8.74506934 C16.1006002,8.34266094 16.1006002,7.68968322 15.6981994,7.28744895" id="Path"></path></g></svg></span><span id="repository-link">github.com/tj/commander.js</span></a></p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2 w-100"><h3 id="homePage" class="c84e15be f5 mt2 pt2 mb0">Homepage</h3><p class="_40aff104 fw6 mb3 mt2 truncate black-80 f5"><a aria-labelledby="homePage homePage-link" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" rel="noopener noreferrer nofollow" href="https://github.com/tj/commander.js#readme"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"></path></svg><span id="homePage-link">github.com/tj/commander.js#readme</span></a></p></div><div><div class="_702d723c dib w-50 fl bb b--black-10 pr2 w-100"><h3 class="c84e15be f5 mt2 pt2 mb0 _5cfc0900"><svg viewBox="0 0 7.22 11.76" aria-hidden="true"><title>Downloads</title><g><polygon points="4.59 4.94 4.59 0 2.62 0 2.62 4.94 0 4.94 3.28 9.53 7.22 4.94 4.59 4.94" aria-label="Downloads icon"></polygon><rect x="0.11" y="10.76" width="7" height="1"></rect></g></svg>Weekly Downloads</h3><div class="_000ae427 flex flex-row-reverse items-end"><svg class="_418c4939 flex-none" width="200" height="40" stroke-width="3" stroke="#8956FF" fill="rgba(137, 86, 255, .2)" aria-hidden="true"><path class="sparkline--fill" d="M4 9.55 L 4 9.55 L 7.764705882352941 9.91 L 11.529411764705882 9.04 L 15.294117647058822 9.14 L 19.058823529411764 8.81 L 22.823529411764707 11.34 L 26.588235294117645 10.92 L 30.352941176470587 9.31 L 34.11764705882353 8.86 L 37.88235294117647 11.35 L 41.64705882352941 9.48 L 45.411764705882355 9.46 L 49.17647058823529 9.3 L 52.94117647058823 10.37 L 56.705882352941174 9.1 L 60.470588235294116 8.17 L 64.23529411764706 9.09 L 68 9.04 L 71.76470588235294 10.24 L 75.52941176470588 7.68 L 79.29411764705883 8.07 L 83.05882352941177 8.21 L 86.82352941176471 8.14 L 90.58823529411765 8.29 L 94.35294117647058 9.14 L 98.11764705882352 7.38 L 101.88235294117646 7.76 L 105.6470588235294 8.39 L 109.41176470588235 6.67 L 113.17647058823529 6.32 L 116.94117647058823 6.73 L 120.70588235294117 7.73 L 124.47058823529412 7.78 L 128.23529411764707 5.88 L 132 6.53 L 135.76470588235293 15.14 L 139.52941176470588 6.19 L 143.2941176470588 6.56 L 147.05882352941177 8.78 L 150.8235294117647 5.95 L 154.58823529411765 6.82 L 158.35294117647058 6.75 L 162.11764705882354 9.91 L 165.88235294117646 21.22 L 169.64705882352942 14.3 L 173.41176470588235 7.03 L 177.1764705882353 6.8 L 180.94117647058823 5.92 L 184.70588235294116 5 L 188.47058823529412 5.67 L 192.23529411764704 6.26 L 196 5.33 V 40 L 4 40 Z" stroke="none"></path><path class="sparkline--line" d="M4 9.55 L 4 9.55 L 7.764705882352941 9.91 L 11.529411764705882 9.04 L 15.294117647058822 9.14 L 19.058823529411764 8.81 L 22.823529411764707 11.34 L 26.588235294117645 10.92 L 30.352941176470587 9.31 L 34.11764705882353 8.86 L 37.88235294117647 11.35 L 41.64705882352941 9.48 L 45.411764705882355 9.46 L 49.17647058823529 9.3 L 52.94117647058823 10.37 L 56.705882352941174 9.1 L 60.470588235294116 8.17 L 64.23529411764706 9.09 L 68 9.04 L 71.76470588235294 10.24 L 75.52941176470588 7.68 L 79.29411764705883 8.07 L 83.05882352941177 8.21 L 86.82352941176471 8.14 L 90.58823529411765 8.29 L 94.35294117647058 9.14 L 98.11764705882352 7.38 L 101.88235294117646 7.76 L 105.6470588235294 8.39 L 109.41176470588235 6.67 L 113.17647058823529 6.32 L 116.94117647058823 6.73 L 120.70588235294117 7.73 L 124.47058823529412 7.78 L 128.23529411764707 5.88 L 132 6.53 L 135.76470588235293 15.14 L 139.52941176470588 6.19 L 143.2941176470588 6.56 L 147.05882352941177 8.78 L 150.8235294117647 5.95 L 154.58823529411765 6.82 L 158.35294117647058 6.75 L 162.11764705882354 9.91 L 165.88235294117646 21.22 L 169.64705882352942 14.3 L 173.41176470588235 7.03 L 177.1764705882353 6.8 L 180.94117647058823 5.92 L 184.70588235294116 5 L 188.47058823529412 5.67 L 192.23529411764704 6.26 L 196 5.33" fill="none"></path><line class="sparkline--cursor" x1="-1000" x2="-1000" y1="0" y2="40" stroke-width="2"></line><circle class="sparkline--spot" cx="-1000" cy="-1000" r="2"></circle><rect width="200" height="40" style="fill: transparent; stroke: transparent" class="sparkline--interaction-layer"></rect></svg><p class="_9ba9a726 f4 tl flex-auto fw6 black-80 ma0 pr2 pb1">138,439,231</p></div></div></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 class="c84e15be f5 mt2 pt2 mb0">Version</h3><div class="abe380b3 flex flex-row items-center"><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4">12.0.0</p></div></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 class="c84e15be f5 mt2 pt2 mb0">License</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4">MIT</p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 class="c84e15be f5 mt2 pt2 mb0">Unpacked Size</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4">181 kB</p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 class="c84e15be f5 mt2 pt2 mb0">Total Files</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4">14</p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 id="issues" class="c84e15be f5 mt2 pt2 mb0">Issues</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4"><a aria-describedby="issues" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" href="https://github.com/tj/commander.js/issues">13</a></p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2"><h3 id="pulls" class="c84e15be f5 mt2 pt2 mb0">Pull Requests</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4"><a aria-describedby="pulls" class="b2812e30 f2874b88 fw6 mb3 mt2 truncate black-80 f4 link" href="https://github.com/tj/commander.js/pulls">1</a></p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2 w-100"><h3 class="c84e15be f5 mt2 pt2 mb0">Last publish</h3><p class="f2874b88 fw6 mb3 mt2 truncate black-80 f4"><time datetime="2024-02-03T09:44:33.948Z" title="2/3/2024, 4:44:33 AM">24 days ago</time></p></div><div class="_702d723c dib w-50 fl bb b--black-10 pr2 bb-0 w-100"><h3 id="collaborators" class="c84e15be f5 mt2 pt2 mb0">Collaborators</h3><ul aria-labelledby="collaborators" class="list pl0 cf"><li class="_426b8533 fl dib mr2 mb2"><div><a href="https://www.npmjs.com/~somekittens"><img src="./commander - npm_files/8f10852a80ca4794f50a304254cb123b.jpeg" alt="somekittens" title="somekittens" style="width: 42px; height: 42px; min-width: 42px; border-radius: 4%;"></a></div></li><li class="_426b8533 fl dib mr2 mb2"><div><a href="https://www.npmjs.com/~tjholowaychuk"><img src="./commander - npm_files/f1e3ab214a976a39cfd713bc93deb10f.jpeg" alt="tjholowaychuk" title="tjholowaychuk" style="width: 42px; height: 42px; min-width: 42px; border-radius: 4%;"></a></div></li><li class="_426b8533 fl dib mr2 mb2"><div><a href="https://www.npmjs.com/~shadowspawn"><img src="./commander - npm_files/1a4334f453e6d376ffc51d6a7cf396b3.jpeg" alt="shadowspawn" title="shadowspawn" style="width: 42px; height: 42px; min-width: 42px; border-radius: 4%;"></a></div></li><li class="_426b8533 fl dib mr2 mb2"><div><a href="https://www.npmjs.com/~abetomo"><img src="./commander - npm_files/ed348d0c3806ea930d01c822b1ff5065.jpeg" alt="abetomo" title="abetomo" style="width: 42px; height: 42px; min-width: 42px; border-radius: 4%;"></a></div></li></ul></div><div class="w-100"><a class="c37751f6 _24a1e9c7 dab9924c br2 pv2 ph3 fw5 f5 tc button button-reset pointer ma2 truncate ml0 no-underline mt2 dib w-100" rel="noopener noreferrer nofollow" href="https://runkit.com/npm/commander"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="terminal" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"></path></svg><strong>Try</strong> on RunKit</a></div><div class="_33c89934 w-100"><a class="_4a3f8f21 _24a1e9c7 dab9924c br2 pv2 ph3 fw5 f5 tc button button-reset pointer ma2 truncate ml0 no-underline mt2 dib w-100" href="https://www.npmjs.com/support?inquire=security&security-inquire=malware&package=commander&version=12.0.0"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="flag" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"></path></svg><strong>Report</strong> malware</a></div></div></div> </main><footer class="cd2827bb bt b--black-10 mt4"><h2 class="e13b5dae">Footer</h2><div id="footer" class="center mw9 pa3 flex flex-column flex-wrap-m flex-row-ns"><div class="flex-auto pa4-ns pa3 w-100 w-10-l"><div class="_802b5507 pt3"><a target="_blank" rel="noopener noreferrer nofollow" href="https://github.com/npm"><svg viewBox="0 0 27.23 27.23" aria-hidden="true"><rect fill="#333333" width="27.23" height="27.23" rx="2"></rect><polygon fill="#fff" points="5.8 21.75 13.66 21.75 13.67 9.98 17.59 9.98 17.58 21.76 21.51 21.76 21.52 6.06 5.82 6.04 5.8 21.75"></polygon></svg></a></div><div class="_802b5507 pt3"><a target="_blank" rel="noopener noreferrer nofollow" href="https://github.com/" aria-label="GitHub"><svg aria-hidden="true" role="img" class="" viewBox="0 0 16 16" width="50" height="50" fill="black" style="display:inline-block;user-select:none;vertical-align:top"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg></a></div></div><div class="flex-auto pa4-ns pa3 w-30-ns w-50-m"><h3 id="support" class="_1b8c0a9f">Support</h3><ul class="list pl0" aria-labelledby="support"><li class="pv1"><a class="link" href="https://docs.npmjs.com/">Help</a></li><li class="pv1"><a class="link" href="https://github.com/advisories">Advisories</a></li><li class="pv1"><a class="link" href="http://status.npmjs.org/">Status</a></li><li class="pv1"><a class="link" href="https://www.npmjs.com/support">Contact npm</a></li></ul></div><div class="flex-auto pa4-ns pa3 w-30-ns w-50-m"><h3 id="company" class="_1b8c0a9f">Company</h3><ul class="list pl0" aria-labelledby="company"><li class="pv1"><a class="link" href="https://www.npmjs.com/about">About</a></li><li class="pv1"><a class="link" href="https://github.blog/tag/npm/">Blog</a></li><li class="pv1"><a class="link" href="https://www.npmjs.com/press">Press</a></li></ul></div><div class="flex-auto pa4-ns pa3 w-30-ns w-50-m"><h3 id="terms" class="_1b8c0a9f">Terms & Policies</h3><ul class="list pl0" aria-labelledby="terms"><li class="pv1"><a class="link" href="https://www.npmjs.com/policies/">Policies</a></li><li class="pv1"><a class="link" href="https://www.npmjs.com/policies/terms">Terms of Use</a></li><li class="pv1"><a class="link" href="https://www.npmjs.com/policies/conduct">Code of Conduct</a></li><li class="pv1"><a class="link" href="https://www.npmjs.com/policies/privacy">Privacy</a></li></ul></div></div></footer></div><div class="_8a62ca63 fixed top-0 left-0 z-999" style="opacity: 0; transform: scaleX(1);"></div></div></div><script integrity="sha512-GF+RL2Btz/GNv/CUxzSrSQLCTX7XAFZEvBbnFyCa4IHXz0yzbPxKWhiLbIGDaF5tRmJ/mF3jZ1dYqu6To3/8zQ==">window.__context__ = {"context":{"showMFABanner":false,"setupTfaOnAccountLink":"/settings/roseteromeo56/tfa/","packageCount":2657125,"downloadStats":{"month":231419449228,"week":57110895071},"mostDependedModules":["lodash","react","axios","tslib","chalk","react-dom","commander","express","vue","moment","fs-extra","uuid","prop-types","core-js","request","inquirer","typescript","debug","classnames","dotenv","yargs","rxjs","@types/node","node-fetch","async","@babel/runtime","bluebird","glob","semver","webpack","jsonwebtoken","ora","styled-components","mkdirp","body-parser","minimist"],"recentlyUpdatedPackages":[{"name":"@legendapp/state","description":"legend-state","maintainers":["jmeistrich"],"dist-tags":{"latest":"2.1.8","next":"2.2.0-next.43","rc":"1.0.0-rc.34","beta":"2.0.0-beta.9"},"lastPublish":{"maintainer":"jmeistrich","time":"2024-02-24T01:44:38.484Z"},"types":{"typescript":{"bundled":"./index.d.ts"}},"publisher":{"name":"jmeistrich","avatars":{}},"date":{"ts":1708739078484,"rel":"3 days ago"},"version":"2.1.8"},{"name":"jest-leak-detector","description":"Module for verifying whether an object has been garbage collected or not.","maintainers":["simenb","cpojer","openjs-operations"],"dist-tags":{"latest":"29.7.0","next":"30.0.0-alpha.3"},"lastPublish":{"maintainer":"simenb","time":"2023-09-12T06:43:43.801Z"},"types":{"typescript":{"bundled":"./build/index.d.ts"}},"publisher":{"name":"simenb","avatars":{}},"date":{"ts":1694501023801,"rel":"5 months ago"},"version":"29.7.0"},{"name":"@react-native/gradle-plugin","description":"Gradle Plugin for React Native","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.4","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2023-11-27T15:15:07.077Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1701098107077,"rel":"3 months ago"},"version":"0.73.4"},{"name":"@react-native/codegen","description":"Code generation tools for React Native","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.3","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2024-02-05T07:45:30.568Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1707119130568,"rel":"22 days ago"},"version":"0.73.3"},{"name":"@react-native/babel-preset","description":"Babel preset for React Native applications","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.21","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2024-02-05T20:54:16.227Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1707166456227,"rel":"21 days ago"},"version":"0.73.21"},{"name":"@react-native/js-polyfills","description":"Polyfills for React Native.","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.74.0","nightly":"0.75.0-nightly-20240226-fcabb2ad2"},"lastPublish":{"maintainer":"react-native-bot","time":"2023-10-11T15:47:19.357Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1697039239357,"rel":"5 months ago"},"version":"0.74.0"},{"name":"@react-native/normalize-colors","description":"Color normalization for React Native.","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.74.1","nightly":"0.75.0-nightly-20240226-fcabb2ad2"},"lastPublish":{"maintainer":"cortinico","time":"2023-10-12T12:45:09.677Z"},"types":{},"publisher":{"name":"cortinico","avatars":{}},"date":{"ts":1697114709677,"rel":"4 months ago"},"version":"0.74.1"},{"name":"@react-native/metro-config","description":"Metro configuration for React Native.","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.5","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2024-02-05T21:24:09.787Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1707168249787,"rel":"21 days ago"},"version":"0.73.5"},{"name":"@react-native/eslint-plugin-specs","description":"ESLint rules to validate NativeModule and Component Specs","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.3","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2024-02-05T18:24:26.899Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1707157466899,"rel":"21 days ago"},"version":"0.73.3"},{"name":"@react-native/eslint-plugin","description":"ESLint rules for @react-native/eslint-config","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.74.0","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2023-10-11T15:47:09.549Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1697039229549,"rel":"5 months ago"},"version":"0.74.0"},{"name":"@react-native/eslint-config","description":"ESLint config for React Native","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.73.2","nightly":"0.75.0-nightly-20240226-fcabb2ad2","0.74-stable":"0.74.1"},"lastPublish":{"maintainer":"react-native-bot","time":"2024-01-08T11:15:16.632Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1704712516632,"rel":"2 months ago"},"version":"0.73.2"},{"name":"@react-native/assets-registry","description":"Asset support code for React Native.","maintainers":["react-native-bot","fb"],"dist-tags":{"latest":"0.74.0","nightly":"0.75.0-nightly-20240226-fcabb2ad2"},"lastPublish":{"maintainer":"react-native-bot","time":"2023-10-11T15:46:54.729Z"},"types":{},"publisher":{"name":"react-native-bot","avatars":{}},"date":{"ts":1697039214729,"rel":"5 months ago"},"version":"0.74.0"},{"name":"maci-domainobjs","description":"[![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link] [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link]","maintainers":["weijiekoh","cd01","gurrpi","ctrlc03"],"dist-tags":{"latest":"1.1.2","ci":"0.0.0-ci.9d2f143","test":"0.0.0-test.893f6c3"},"lastPublish":{"maintainer":"gurrpi","time":"2023-01-20T18:14:18.545Z"},"types":{"typescript":{"bundled":"./build/index.d.ts"}},"publisher":{"name":"gurrpi","avatars":{}},"date":{"ts":1674238458545,"rel":"a year ago"},"version":"1.1.2"},{"name":"maci-crypto","description":"[![NPM Package][crypto-npm-badge]][crypto-npm-link] [![Actions Status][crypto-actions-badge]][crypto-actions-link]","maintainers":["gurrpi","ctrlc03"],"dist-tags":{"latest":"1.1.2","ci":"0.0.0-ci.9d2f143","test":"0.0.0-test.893f6c3"},"lastPublish":{"maintainer":"gurrpi","time":"2023-01-20T18:14:17.568Z"},"types":{"typescript":{"bundled":"./build/index.d.ts"}},"publisher":{"name":"gurrpi","avatars":{}},"date":{"ts":1674238457568,"rel":"a year ago"},"version":"1.1.2"},{"name":"@rushstack/rush-sdk","description":"An API for interacting with the Rush engine","maintainers":["octogonz","odspnpm","rushstack-admin"],"dist-tags":{"latest":"5.117.0","dev":"5.62.0-pr3059","beta":"5.59.3-pr3059.0.0","pr3481":"5.109.1-pr3481.22","pr3813":"5.86.0-pr3813.0","pr3954":"5.90.2-pr3964.0","pr3949":"5.102.0-pr3949.7","pr4132":"5.100.0-pr4132.1","pr4476":"5.112.2-pr4476.0","pr4485":"5.112.2-pr4485.3"},"lastPublish":{"maintainer":"odspnpm","time":"2024-02-26T21:41:00.382Z"},"types":{"typescript":{"bundled":"typesVersions"}},"publisher":{"name":"odspnpm","avatars":{}},"date":{"ts":1708983660382,"rel":"19 minutes ago"},"version":"5.117.0"},{"name":"@microsoft/rush-lib","description":"A library for writing scripts that interact with the Rush tool","maintainers":["microsoft1es","odspnpm"],"dist-tags":{"latest":"5.117.0","dev":"5.62.0-pr3059","beta":"5.59.3-pr3059.0.0","pr3481":"5.109.1-pr3481.22","pr3813":"5.86.0-pr3813.0","pr3954":"5.90.2-pr3964.0","pr3949":"5.102.0-pr3949.7","pr4132":"5.100.0-pr4132.1","pr4476":"5.112.2-pr4476.0","pr4485":"5.112.2-pr4485.3"},"lastPublish":{"maintainer":"odspnpm","time":"2024-02-26T21:40:05.828Z"},"types":{"typescript":{"bundled":"dist/rush-lib.d.ts"}},"publisher":{"name":"odspnpm","avatars":{}},"date":{"ts":1708983605828,"rel":"20 minutes ago"},"version":"5.117.0"},{"name":"@pega/cosmos-react-core","description":"Cosmos is a visual design system and UI component collection. Its goal is to empower application developers in their pursuit to create engaging and rewarding user experiences.","maintainers":["bob-difronzo","cpmotion","ssowersby","ricmars","pega-cosmos"],"dist-tags":{"latest":"7.0.0-build.2.1","pega-8.7":"2.2.6","pega-8.6":"1.0.0-rc.7","pega-8.8":"3.4.1","pega-23.1":"4.2.2"},"lastPublish":{"maintainer":"pega-cosmos","time":"2024-02-26T21:39:46.776Z"},"types":{"typescript":{"bundled":"lib/index.d.ts"}},"publisher":{"name":"pega-cosmos","avatars":{}},"date":{"ts":1708983586776,"rel":"20 minutes ago"},"version":"7.0.0-build.2.1"},{"name":"@sweetalert2/eslint-config","description":"ESLint shareable config for the SweetAlert2 JS/TS coding style","maintainers":["limonte","toverux"],"dist-tags":{"latest":"1.1.9"},"lastPublish":{"maintainer":"limonte","time":"2024-02-26T21:38:58.921Z"},"types":{},"publisher":{"name":"limonte","avatars":{}},"date":{"ts":1708983538921,"rel":"21 minutes ago"},"version":"1.1.9"},{"name":"@barchart/common-js","description":"Library of common JavaScript utilities","maintainers":["jmbaker","tomsisk","swiderberg","alena.labada","ebarchukov","avasilevich","ravish.brahmbhatt","ddotlic","eapikat","l-zhang","igor-losev","mark.kerman","borja.yanes","bryan.ingle"],"dist-tags":{"latest":"4.38.1"},"lastPublish":{"maintainer":"bryan.ingle","time":"2024-02-26T21:38:11.734Z"},"types":{},"publisher":{"name":"bryan.ingle","avatars":{}},"date":{"ts":1708983491734,"rel":"22 minutes ago"},"version":"4.38.1"},{"name":"@redwoodjs/internal","description":"This package is not intended to be used directly.","maintainers":["tobbe","desaadi","peter.pistorius","mojombo","dac09","cannikin","thedavidprice"],"dist-tags":{"latest":"7.0.3","canary":"8.0.0-canary.160","rc":"7.0.3-rc.2","experimental":"0.0.0-experimental-streaming.8","next":"7.0.4-next.21"},"lastPublish":{"maintainer":"desaadi","time":"2024-02-26T21:15:31.149Z"},"types":{"typescript":{"bundled":"dist/index.d.ts"}},"publisher":{"name":"desaadi","avatars":{}},"date":{"ts":1708982131149,"rel":"an hour ago"},"version":"7.0.3"},{"name":"@redwoodjs/cli-helpers","description":"This package is used by auth provider setup scripts.","maintainers":["tobbe","desaadi","peter.pistorius","mojombo","dac09","cannikin","thedavidprice"],"dist-tags":{"latest":"7.0.3","canary":"8.0.0-canary.160","rc":"7.0.3-rc.2","next":"7.0.4-next.21","experimental":"0.0.0-experimental-streaming.8"},"lastPublish":{"maintainer":"desaadi","time":"2024-02-26T21:13:39.558Z"},"types":{"typescript":{"bundled":"./dist/index.d.ts"}},"publisher":{"name":"desaadi","avatars":{}},"date":{"ts":1708982019558,"rel":"an hour ago"},"version":"7.0.3"},{"name":"@grafana/ui","description":"Grafana Components Library","maintainers":["teodosii","yulia.shanyrova","clord","reemtariqq","grafanabot","scottleppgrafana","academo_grafana","jwestbrook","ivanahuckova","domasx2","bmatei","dsotirakis","tolzhabayev","iwysiu","andresmgotor","leventebalogh","torkelo","dprokop","peteholmberg","ryantxu","mckn","sunker"],"dist-tags":{"latest":"10.3.3","next":"10.3.3","canary":"11.0.0-163260","test":"9.0.0-pre-ssr01","nightly":"11.0.0-162885","9.5-latest":"9.5.15","10.0-latest":"10.0.10"},"lastPublish":{"maintainer":"grafanabot","time":"2024-02-13T20:10:11.078Z"},"types":{"typescript":{"bundled":"dist/index.d.ts"}},"publisher":{"name":"grafanabot","avatars":{}},"date":{"ts":1707855011078,"rel":"13 days ago"},"version":"10.3.3"},{"name":"@redwoodjs/auth","description":"## Contributing","maintainers":["tobbe","desaadi","peter.pistorius","mojombo","dac09","cannikin","thedavidprice"],"dist-tags":{"latest":"7.0.3","canary":"8.0.0-canary.160","rc":"7.0.3-rc.2","experimental":"0.0.0-experimental-streaming.8","next":"7.0.4-next.21"},"lastPublish":{"maintainer":"desaadi","time":"2024-02-26T21:11:40.496Z"},"types":{"typescript":{"bundled":"./dist/index.d.ts"}},"publisher":{"name":"desaadi","avatars":{}},"date":{"ts":1708981900496,"rel":"an hour ago"},"version":"7.0.3"},{"name":"@redwoodjs/project-config","description":"\u003e **Warning** \u003e \u003e This is a new internal package. There are still changes we want to make, so we're marking it as experimental for now. \u003e **Don't depend on this directly in a Redwood project**.","maintainers":["tobbe","desaadi","peter.pistorius","mojombo","dac09","cannikin","thedavidprice"],"dist-tags":{"latest":"7.0.3","canary":"8.0.0-canary.160","rc":"7.0.3-rc.2","experimental":"0.0.0-experimental-streaming.8","next":"7.0.4-next.21"},"lastPublish":{"maintainer":"desaadi","time":"2024-02-26T21:11:40.702Z"},"types":{"typescript":{"bundled":"./dist/index.d.ts"}},"publisher":{"name":"desaadi","avatars":{}},"date":{"ts":1708981900702,"rel":"an hour ago"},"version":"7.0.3"},{"name":"@redwoodjs/api","description":"## Purpose and Vision","maintainers":["tobbe","desaadi","peter.pistorius","mojombo","dac09","cannikin","thedavidprice"],"dist-tags":{"latest":"7.0.3","canary":"8.0.0-canary.160","rc":"7.0.3-rc.2","experimental":"0.0.0-experimental-streaming.8","next":"7.0.4-next.21"},"lastPublish":{"maintainer":"desaadi","time":"2024-02-26T21:11:41.279Z"},"types":{"typescript":{"bundled":"./dist/index.d.ts"}},"publisher":{"name":"desaadi","avatars":{}},"date":{"ts":1708981901279,"rel":"an hour ago"},"version":"7.0.3"},{"name":"@grafana/runtime","description":"Grafana Runtime Library","maintainers":["teodosii","yulia.shanyrova","clord","reemtariqq","grafanabot","scottleppgrafana","academo_grafana","jwestbrook","ivanahuckova","domasx2","bmatei","dsotirakis","tolzhabayev","iwysiu","andresmgotor","leventebalogh","torkelo","dprokop","peteholmberg","ryantxu","mckn","sunker"],"dist-tags":{"latest":"10.3.3","next":"10.3.3","canary":"11.0.0-163260","test":"9.0.0-pre-ssr01","nightly":"11.0.0-162885","9.5-latest":"9.5.15","10.0-latest":"10.0.10"},"lastPublish":{"maintainer":"grafanabot","time":"2024-02-13T20:09:45.965Z"},"types":{"typescript":{"bundled":"dist/index.d.ts"}},"publisher":{"name":"grafanabot","avatars":{}},"date":{"ts":1707854985965,"rel":"13 days ago"},"version":"10.3.3"},{"name":"heroku-cli-addons","description":"`heroku addons:*` commands","maintainers":["beckychen","xx-sfdc-npm","kpremkumar","abhinavkoul","daniel.bright","justinwilaby-sf","cv88","jlopezdan","jmonreal","jondaniel-sfdc","dhagberg-sf","jmorrell-sfdc","elzoona","cmarcojos","gkommineni","vlazuka","nlanatta","lucaszhou","mars","mimen","wchrisjohnson","cbaxtersf","heroku-front-end","bsperlingsf","zli-sf","7ftz","joanneyeung","montes_heroku","jwadsworthsf","jheikes","lmckenzie","sarassassin","pfuente","reidmix","mbuschheroku","k.plenty","eblack","sheax0r","k80bowman","rdagg-hero","grundy.g","robinson.m","tcareysmith-sfdc","ptemporini","paulaprado18","harish.457","ntonollier","dickeyxxx","mnoble","mathias_heroku","mattgraham","ransombriggs","itops","heroku-dod-npm","karatecowboy"],"dist-tags":{"pre":"0.0.1-pre.4","latest":"1.2.26"},"lastPublish":{"maintainer":"ransombriggs","time":"2017-12-11T17:43:28.309Z"},"types":{},"publisher":{"name":"ransombriggs","avatars":{}},"date":{"ts":1513014208309,"rel":"6 years ago"},"version":"1.2.26"},{"name":"heroku","description":"CLI to interact with Heroku","maintainers":["beckychen","xx-sfdc-npm","kpremkumar","abhinavkoul","daniel.bright","justinwilaby-sf","cv88","jlopezdan","jmonreal","jondaniel-sfdc","dhagberg-sf","jmorrell-sfdc","elzoona","cmarcojos","gkommineni","vlazuka","nlanatta","lucaszhou","mars","mimen","wchrisjohnson","cbaxtersf","heroku-front-end","bsperlingsf","zli-sf","7ftz","joanneyeung","montes_heroku","jwadsworthsf","jheikes","lmckenzie","sarassassin","pfuente","reidmix","mbuschheroku","k.plenty","eblack","sheax0r","k80bowman","rdagg-hero","grundy.g","robinson.m","tcareysmith-sfdc","ptemporini","paulaprado18","harish.457","ntonollier","dickeyxxx","rasphilco"],"dist-tags":{"latest":"8.10.0","beta":"8.9.1-beta.0","alpha":"9.0.0-alpha.1","dev":"9.0.0-dev.0"},"lastPublish":{"maintainer":"heroku-front-end","time":"2024-02-20T14:30:29.907Z"},"types":{"typescript":{"bundled":"lib/index.d.ts"}},"publisher":{"name":"heroku-front-end","avatars":{}},"date":{"ts":1708439429907,"rel":"6 days ago"},"version":"8.10.0"},{"name":"@genesislcap/foundation-zero","description":"Genesis Foundation Zero Design System","maintainers":["genesisnpm"],"dist-tags":{"canary":"14.154.3-alpha-005efd0.0","latest":"14.154.2","bny":"14.49.0-bny.2","pa-659":"13.2.0-pa-659.2","cem-manifest":"14.11.2-cem-manifest.1","web-types":"14.12.1-web-types.1","layout-autoload":"14.12.1-layout-autoload.1","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:36:10.732Z"},"types":{"typescript":{"bundled":"dist/dts/index.d.ts"}},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972570732,"rel":"3 hours ago"},"version":"14.154.2"},{"name":"@heroku-cli/tslint","description":"tslint rules for Heroku CLI client code","maintainers":["beckychen","xx-sfdc-npm","kpremkumar","abhinavkoul","daniel.bright","justinwilaby-sf","cv88","jlopezdan","jmonreal","jondaniel-sfdc","dhagberg-sf","jmorrell-sfdc","elzoona","cmarcojos","gkommineni","vlazuka","nlanatta","lucaszhou","mars","mimen","wchrisjohnson","cbaxtersf","heroku-front-end","bsperlingsf","zli-sf","7ftz","joanneyeung","montes_heroku","jwadsworthsf","jheikes","lmckenzie","sarassassin","pfuente","reidmix","mbuschheroku","k.plenty","eblack","sheax0r","k80bowman","rdagg-hero","grundy.g","robinson.m","tcareysmith-sfdc","ptemporini","paulaprado18","harish.457","ntonollier"],"dist-tags":{"latest":"1.1.4"},"lastPublish":{"maintainer":"dickeyxxx","time":"2018-01-08T09:50:53.794Z"},"types":{},"publisher":{"name":"dickeyxxx","avatars":{}},"date":{"ts":1515405053794,"rel":"6 years ago"},"version":"1.1.4"},{"name":"@genesislcap/foundation-ui","description":"Genesis Foundation UI","maintainers":["genesisnpm"],"dist-tags":{"canary":"14.154.3-alpha-005efd0.0","latest":"14.154.2","bny":"14.49.0-bny.2","pa-659":"13.2.0-pa-659.2","cem-manifest":"14.11.2-cem-manifest.1","web-types":"14.12.1-web-types.1","layout-autoload":"14.12.1-layout-autoload.1","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:36:04.971Z"},"types":{"typescript":{"bundled":"dist/dts/index.d.ts"}},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972564971,"rel":"3 hours ago"},"version":"14.154.2"},{"name":"@genesislcap/foundation-comms","description":"Genesis Foundation UI Comms","maintainers":["genesisnpm"],"dist-tags":{"canary":"14.154.3-alpha-005efd0.0","latest":"14.154.2","bny":"14.49.0-bny.2","pa-659":"13.2.0-pa-659.2","cem-manifest":"14.11.2-cem-manifest.1","web-types":"14.12.1-web-types.1","layout-autoload":"14.12.1-layout-autoload.1","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:35:59.838Z"},"types":{"typescript":{"bundled":"typesVersions"}},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972559838,"rel":"3 hours ago"},"version":"14.154.2"},{"name":"@genesislcap/foundation-utils","description":"Genesis Foundation Utils","maintainers":["genesisnpm"],"dist-tags":{"canary":"14.154.3-alpha-005efd0.0","latest":"14.154.2","bny":"14.49.0-bny.2","pa-659":"13.2.0-pa-659.2","cem-manifest":"14.11.2-cem-manifest.1","web-types":"14.12.1-web-types.1","layout-autoload":"14.12.1-layout-autoload.1","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:35:54.543Z"},"types":{"typescript":{"bundled":"dist/dts/index.d.ts"}},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972554543,"rel":"3 hours ago"},"version":"14.154.2"},{"name":"@grafana/e2e-selectors","description":"Grafana End-to-End Test Selectors Library","maintainers":["teodosii","yulia.shanyrova","clord","reemtariqq","grafanabot","scottleppgrafana","academo_grafana","jwestbrook","ivanahuckova","domasx2","bmatei","dsotirakis","tolzhabayev","iwysiu","andresmgotor","leventebalogh","torkelo","dprokop","peteholmberg","ryantxu","mckn","sunker"],"dist-tags":{"latest":"10.3.3","next":"10.3.3","canary":"11.0.0-163260","test":"9.0.0-pre-ssr01","nightly":"11.0.0-162885","9.5-latest":"9.5.15","10.0-latest":"10.0.10"},"lastPublish":{"maintainer":"grafanabot","time":"2024-02-13T20:09:13.779Z"},"types":{"typescript":{"bundled":"dist/index.d.ts"}},"publisher":{"name":"grafanabot","avatars":{}},"date":{"ts":1707854953779,"rel":"13 days ago"},"version":"10.3.3"},{"name":"@genesislcap/genx","description":"Genx CLI","maintainers":["genesisnpm"],"dist-tags":{"canary":"14.154.3-alpha-005efd0.0","latest":"14.154.2","cem-manifest":"14.11.2-cem-manifest.1","web-types":"14.12.1-web-types.1","layout-autoload":"14.12.1-layout-autoload.1","bny":"14.49.0-bny.2","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:35:48.559Z"},"types":{},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972548559,"rel":"3 hours ago"},"version":"14.154.2"},{"name":"@genesislcap/webpack-builder","description":"Webpack builder","maintainers":["genesisnpm"],"dist-tags":{"latest":"14.154.2","canary":"14.154.3-alpha-005efd0.0","bny":"14.49.0-bny.2","layout-autosave-fix-test":"14.29.0-layout-autosave-fix-test.1","select-search-poc":"14.66.0-select-search-poc.1","test":"14.70.4-test.1","es2021":"14.70.4-es2021.1","auth-mf":"14.107.0-auth-mf.27","mfa-auth":"14.78.0-mfa-auth.8","alpha":"14.85.0-alpha.1360cc6.1","tam-revert-pa-913":"14.91.3-tam-revert-pa-913.1","pa-913":"14.92.1-pa-913.3","beta":"14.138.1-beta.4bd78b7.1","pa-957":"14.94.0-pa-957.1","pa-899":"14.94.0-pa-899.1","pa-958":"14.94.1-pa-958.1","fui-1562":"14.98.0-fui-1562.1","PA-1036":"14.126.0-PA-1036.1","pbc-demo":"14.127.6-pbc-demo.4","grid-events":"14.142.1-alpha-2787e5d.0"},"lastPublish":{"maintainer":"genesisnpm","time":"2024-02-26T18:35:36.991Z"},"types":{"typescript":{"bundled":"dist/index.d.ts"}},"publisher":{"name":"genesisnpm","avatars":{}},"date":{"ts":1708972536991,"rel":"3 hours ago"},"version":"14.154.2"}],"user":{"name":"roseteromeo56","avatars":{"small":"/npm-avatar/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdmF0YXJVUkwiOiJodHRwczovL3MuZ3JhdmF0YXIuY29tL2F2YXRhci9lYzU1NWY3YzNkODRjOWI3MWQxNTMzOWE3ZDRkYTgwNj9zaXplPTUwJmRlZmF1bHQ9cmV0cm8ifQ.UPQBRzXl1pLdMPIfp1-P3gmDwQbPjNoAUN0K7iDpPzk","medium":"/npm-avatar/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdmF0YXJVUkwiOiJodHRwczovL3MuZ3JhdmF0YXIuY29tL2F2YXRhci9lYzU1NWY3YzNkODRjOWI3MWQxNTMzOWE3ZDRkYTgwNj9zaXplPTEwMCZkZWZhdWx0PXJldHJvIn0.IDS1eeW_CG1qlHdx0d7oX5l3mubOoWpUsV-AaTPwJoQ","large":"/npm-avatar/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdmF0YXJVUkwiOiJodHRwczovL3MuZ3JhdmF0YXIuY29tL2F2YXRhci9lYzU1NWY3YzNkODRjOWI3MWQxNTMzOWE3ZDRkYTgwNj9zaXplPTQ5NiZkZWZhdWx0PXJldHJvIn0.1GvOKDUGiE-HZ2-_86_mQPZKIF0CO9w9F5ZHMQtvgls"},"resource":{"isGithubVerified":true,"isTwitterVerified":true,"github":"romeorosete77","twitter":"romeo_rosete","fullname":"Romeo Rosete"}},"auditLogEnabled":false,"userEmailVerified":true,"csrftoken":"9BoY-0m-YTuvDvVayrdbCimWS9DRdqRT0Ef0LGy2ZhF","notifications":[],"npmExpansions":["Ninja Party Manager","No Problemo Muchacho","Now, Publish Me","Nearly Pooped Myself","Nonstop Progressive Marxism","Nice Pottery Mug","Nail Polishing Minions","Ninja Parading Musically","November Perfect Moustache","Neoclassic Placebo Maker"]},"chunks":{"commons":["commons.b749438f4378d39d0c2a.js","commons.b749438f4378d39d0c2a.js.map"],"styles":["styles.8c5a07d0df4b584aab7e.css","minicssextractbug.7dc133a883bd6c72ddc5.js","styles.8c5a07d0df4b584aab7e.css.map","minicssextractbug.7dc133a883bd6c72ddc5.js.map"],"acceptance/acceptance":["acceptance/acceptance.474a71577996b22f74f0.js","acceptance/acceptance.474a71577996b22f74f0.js.map"],"audit-logs/actions/common/auditLogContainer":["audit-logs/actions/common/auditLogContainer.6eb659d7b6f2229dc9d6.js","audit-logs/actions/common/auditLogContainer.6eb659d7b6f2229dc9d6.js.map"],"audit-logs/actions/common/dot":["audit-logs/actions/common/dot.348d4d53f2a078ad8cc2.js","audit-logs/actions/common/dot.348d4d53f2a078ad8cc2.js.map"],"audit-logs/actions/common/filterActions":["audit-logs/actions/common/filterActions.7270ce497b742b035eae.js","audit-logs/actions/common/filterActions.7270ce497b742b035eae.js.map"],"audit-logs/actions/common/spaceGap":["audit-logs/actions/common/spaceGap.b152f6b7c875968bae76.js","audit-logs/actions/common/spaceGap.b152f6b7c875968bae76.js.map"],"audit-logs/actions/orgAddUser":["audit-logs/actions/orgAddUser.c5c02a573b681d00d261.js","audit-logs/actions/orgAddUser.c5c02a573b681d00d261.js.map"],"audit-logs/actions/orgCreateTeam":["audit-logs/actions/orgCreateTeam.7134a622302de611e763.js","audit-logs/actions/orgCreateTeam.7134a622302de611e763.js.map"],"audit-logs/actions/orgDeleteTeam":["audit-logs/actions/orgDeleteTeam.422b0a4cee37327a7060.js","audit-logs/actions/orgDeleteTeam.422b0a4cee37327a7060.js.map"],"audit-logs/actions/orgRemoveUser":["audit-logs/actions/orgRemoveUser.1a483a41263832c47edd.js","audit-logs/actions/orgRemoveUser.1a483a41263832c47edd.js.map"],"audit-logs/actions/packageAddDistTag":["audit-logs/actions/packageAddDistTag.c79e7c9aa90e402edb52.js","audit-logs/actions/packageAddDistTag.c79e7c9aa90e402edb52.js.map"],"audit-logs/actions/packageDeprecate":["audit-logs/actions/packageDeprecate.adee36865547914ed051.js","audit-logs/actions/packageDeprecate.adee36865547914ed051.js.map"],"audit-logs/actions/packagePublish":["audit-logs/actions/packagePublish.2b29d270c307c5b8816b.js","audit-logs/actions/packagePublish.2b29d270c307c5b8816b.js.map"],"audit-logs/actions/packageRemoveDistTag":["audit-logs/actions/packageRemoveDistTag.5a9585b22e99f6b0b66b.js","audit-logs/actions/packageRemoveDistTag.5a9585b22e99f6b0b66b.js.map"],"audit-logs/actions/packageUnpublish":["audit-logs/actions/packageUnpublish.e0617ddd3df264bc5387.js","audit-logs/actions/packageUnpublish.e0617ddd3df264bc5387.js.map"],"audit-logs/actions/packageUpdateAccess":["audit-logs/actions/packageUpdateAccess.52b099d5165fa87b56a4.js","audit-logs/actions/packageUpdateAccess.52b099d5165fa87b56a4.js.map"],"audit-logs/actions/teamAddPackage":["audit-logs/actions/teamAddPackage.08ae45b853609ccfafb5.js","audit-logs/actions/teamAddPackage.08ae45b853609ccfafb5.js.map"],"audit-logs/actions/teamAddUser":["audit-logs/actions/teamAddUser.6d4cf024abb7710ef837.js","audit-logs/actions/teamAddUser.6d4cf024abb7710ef837.js.map"],"audit-logs/actions/teamRemovePackage":["audit-logs/actions/teamRemovePackage.bc76e86b8daf7644117f.js","audit-logs/actions/teamRemovePackage.bc76e86b8daf7644117f.js.map"],"audit-logs/actions/teamRemoveUser":["audit-logs/actions/teamRemoveUser.51f8bbe2bdfde83349f5.js","audit-logs/actions/teamRemoveUser.51f8bbe2bdfde83349f5.js.map"],"audit-logs/actions/teamUpdatePackageAccess":["audit-logs/actions/teamUpdatePackageAccess.de26646e77b730e1f92e.js","audit-logs/actions/teamUpdatePackageAccess.de26646e77b730e1f92e.js.map"],"audit-logs/audit-logs":["audit-logs/audit-logs.22abbf311a5a9a98407b.js","audit-logs/audit-logs.22abbf311a5a9a98407b.js.map"],"audit-logs/audit-search-input":["audit-logs/audit-search-input.ca5fdea96276e4d1dd9e.js","audit-logs/audit-search-input.ca5fdea96276e4d1dd9e.js.map"],"audit-logs/list":["audit-logs/list.8bd026cdd35dd38eb6c1.js","audit-logs/list.8bd026cdd35dd38eb6c1.js.map"],"audit-logs/no-logs":["audit-logs/no-logs.18085ebe5958efe5234e.js","audit-logs/no-logs.18085ebe5958efe5234e.js.map"],"audit-logs/no-logs-with-query":["audit-logs/no-logs-with-query.ab604d73bb0c59d0aa87.js","audit-logs/no-logs-with-query.ab604d73bb0c59d0aa87.js.map"],"auth/account-recovery-message":["auth/account-recovery-message.d41325627ef316b787ba.js","auth/account-recovery-message.d41325627ef316b787ba.js.map"],"auth/authentication-successful":["auth/authentication-successful.600716883873f911abd8.js","auth/authentication-successful.600716883873f911abd8.js.map"],"auth/email-otp":["auth/email-otp.c4c913ead596938b362f.js","auth/email-otp.c4c913ead596938b362f.js.map"],"auth/escalate":["auth/escalate.72460916c7c32328d06f.js","auth/escalate.72460916c7c32328d06f.js.map"],"auth/forgot":["auth/forgot.1262a76ce1af8712b0ba.js","auth/forgot.1262a76ce1af8712b0ba.js.map"],"auth/forgot-sent":["auth/forgot-sent.b5028b23e3ea7da98bee.js","auth/forgot-sent.b5028b23e3ea7da98bee.js.map"],"auth/forgot-sent-anonymized":["auth/forgot-sent-anonymized.5241cacbea09e5d6f80c.js","auth/forgot-sent-anonymized.5241cacbea09e5d6f80c.js.map"],"auth/invite-signup":["auth/invite-signup.93832e111f684a2a3475.js","auth/invite-signup.93832e111f684a2a3475.js.map"],"auth/liminal-login-footer":["auth/liminal-login-footer.e867a2c8b0c63f2ba60c.js","auth/liminal-login-footer.e867a2c8b0c63f2ba60c.js.map"],"auth/login":["auth/login.2b34b6a91141ba540125.js","auth/login.2b34b6a91141ba540125.js.map"],"auth/otp":["auth/otp.695e322f1cce7c155fba.js","auth/otp.695e322f1cce7c155fba.js.map"],"auth/password":["auth/password.bcea5101e76337b9f645.js","auth/password.bcea5101e76337b9f645.js.map"],"auth/recovery-code":["auth/recovery-code.9b4726a62b9807c885f7.js","auth/recovery-code.9b4726a62b9807c885f7.js.map"],"auth/recovery-email-otp":["auth/recovery-email-otp.7cfaa7db16ec8af8c605.js","auth/recovery-email-otp.7cfaa7db16ec8af8c605.js.map"],"auth/reset-password":["auth/reset-password.81c4f1962c040bdd4dc8.js","auth/reset-password.81c4f1962c040bdd4dc8.js.map"],"auth/signup":["auth/signup.291bd4d84fc96cbf6828.js","auth/signup.291bd4d84fc96cbf6828.js.map"],"auth/test/email-otp-test":["auth/test/email-otp-test.2bedab237209fdf6dd42.js","auth/test/email-otp-test.2bedab237209fdf6dd42.js.map"],"auth/test/escalate-test":["auth/test/escalate-test.4c106060f144ddab3d77.js","auth/test/escalate-test.4c106060f144ddab3d77.js.map"],"auth/test/otp-test":["auth/test/otp-test.b4bdd1334f2b13d6a000.js","auth/test/otp-test.b4bdd1334f2b13d6a000.js.map"],"auth/test/webauthn-login-test":["auth/test/webauthn-login-test.f5a1d7f736a6e00d18b5.js","auth/test/webauthn-login-test.f5a1d7f736a6e00d18b5.js.map"],"auth/webauthn-cli-login":["auth/webauthn-cli-login.7077eabacf8b1956d33b.js","auth/webauthn-cli-login.7077eabacf8b1956d33b.js.map"],"auth/webauthn-login":["auth/webauthn-login.985575e8925543221af3.js","auth/webauthn-login.985575e8925543221af3.js.map"],"billing/delete-org":["billing/delete-org.c3e427dc13fae5050885.js","billing/delete-org.c3e427dc13fae5050885.js.map"],"billing/detail":["billing/detail.81347c359a24dd0348bc.js","billing/detail.81347c359a24dd0348bc.js.map"],"billing/downgrade":["billing/downgrade.3a51afbf828fb5d073d8.js","billing/downgrade.3a51afbf828fb5d073d8.js.map"],"billing/upgrade":["billing/upgrade.80dbe8a78a47e806c7c7.js","billing/upgrade.80dbe8a78a47e806c7c7.js.map"],"contact/contact":["contact/contact.68829abbfe98d3407f7e.js","contact/contact.68829abbfe98d3407f7e.js.map"],"contact/recovery-support-v1":["contact/recovery-support-v1.63835e97b12b9f4bf0b9.js","contact/recovery-support-v1.63835e97b12b9f4bf0b9.js.map"],"contact/recovery-support-v2":["contact/recovery-support-v2.1199123cf71cfb5664cc.js","contact/recovery-support-v2.1199123cf71cfb5664cc.js.map"],"contact/sidebar":["contact/sidebar.7cb116b3b4c6a9a12744.js","contact/sidebar.7cb116b3b4c6a9a12744.js.map"],"debug/badstatus":["debug/badstatus.6769febdde72dd2c7eec.js","debug/badstatus.6769febdde72dd2c7eec.js.map"],"debug/detail":["debug/detail.11a7a4704cd3f1ab0670.js","debug/detail.11a7a4704cd3f1ab0670.js.map"],"debug/failcomponent":["debug/failcomponent.87464ba53e6bc6fb5f04.js","debug/failcomponent.87464ba53e6bc6fb5f04.js.map"],"dev/choose-template":["dev/choose-template.6d21d9dab013779edf3a.js","dev/choose-template.6d21d9dab013779edf3a.js.map"],"dsr/dsr-export":["dsr/dsr-export.7c1a820c69870543d82c.js","dsr/dsr-export.7c1a820c69870543d82c.js.map"],"egg/egg":["egg/egg.a7ce8b79ae86bfe76fea.js","egg/egg.a7ce8b79ae86bfe76fea.js.map"],"errors/not-found":["errors/not-found.d19e448ec59c6b73b334.js","errors/not-found.d19e448ec59c6b73b334.js.map"],"errors/server":["errors/server.ca8ad9f52efb7d0cee80.js","errors/server.ca8ad9f52efb7d0cee80.js.map"],"errors/tea-pot":["errors/tea-pot.47ea34f03eeebe106a00.js","errors/tea-pot.47ea34f03eeebe106a00.js.map"],"errors/template":["errors/template.576facd99ac61edc5331.js","errors/template.576facd99ac61edc5331.js.map"],"flatpage/flatpage":["flatpage/flatpage.ff00ef413c45e8889a11.js","flatpage/flatpage.ff00ef413c45e8889a11.js.map"],"homepage/homepage":["homepage/homepage.afeffb607b5ff18f2958.js","homepage/homepage.afeffb607b5ff18f2958.js.map"],"homepage/homepage-logged-in":["homepage/homepage-logged-in.e2f59f7a567d2372184c.js","homepage/homepage-logged-in.e2f59f7a567d2372184c.js.map"],"orgs/create":["orgs/create.01acce0234a407063975.js","orgs/create.01acce0234a407063975.js.map"],"orgs/detail":["orgs/detail.461c0067e19b6eb12e55.js","orgs/detail.461c0067e19b6eb12e55.js.map"],"orgs/invite":["orgs/invite.008daf5ae01b35fa6d87.js","orgs/invite.008daf5ae01b35fa6d87.js.map"],"orgs/tfa-enforced":["orgs/tfa-enforced.df822a9e7be53ae6a441.js","orgs/tfa-enforced.df822a9e7be53ae6a441.js.map"],"orgs/upgrade":["orgs/upgrade.936f88fd9d5d33a8f715.js","orgs/upgrade.936f88fd9d5d33a8f715.js.map"],"package-list/package-list":["package-list/package-list.a7a58aeb87cee1583900.js","package-list/package-list.a7a58aeb87cee1583900.js.map"],"package/delete-package":["package/delete-package.cc4fc69c40a440021b02.js","package/delete-package.cc4fc69c40a440021b02.js.map"],"package/deprecate-package":["package/deprecate-package.ee112edfa883351bf878.js","package/deprecate-package.ee112edfa883351bf878.js.map"],"package/error-message-package":["package/error-message-package.d7e8253159f41be68b0d.js","package/error-message-package.d7e8253159f41be68b0d.js.map"],"package/package":["package/package.24dd6c9fc530e00119ec.js","package/package.24dd6c9fc530e00119ec.js.map"],"profile/profile":["profile/profile.523125be2183cee4d166.js","profile/profile.523125be2183cee4d166.js.map"],"recovery-codes/show":["recovery-codes/show.070c80bafb4cde26a43e.js","recovery-codes/show.070c80bafb4cde26a43e.js.map"],"search/search":["search/search.f212d35d26331c12d778.js","search/search.f212d35d26331c12d778.js.map"],"settings/change-password":["settings/change-password.fcf842162818c0c23977.js","settings/change-password.fcf842162818c0c23977.js.map"],"settings/delete-account":["settings/delete-account.08ddd95b0765cb3c768c.js","settings/delete-account.08ddd95b0765cb3c768c.js.map"],"settings/email":["settings/email.0ce764b9fca8553b3c34.js","settings/email.0ce764b9fca8553b3c34.js.map"],"settings/memberships":["settings/memberships.afec720ee30683587cd7.js","settings/memberships.afec720ee30683587cd7.js.map"],"settings/packages":["settings/packages.4743139f4996d8520056.js","settings/packages.4743139f4996d8520056.js.map"],"settings/profile":["settings/profile.19de8689842c01531ad3.js","settings/profile.19de8689842c01531ad3.js.map"],"teams/create":["teams/create.8e3eecffcb969ac4c116.js","teams/create.8e3eecffcb969ac4c116.js.map"],"teams/detail":["teams/detail.10f702ac2b8adbe3a993.js","teams/detail.10f702ac2b8adbe3a993.js.map"],"teams/list":["teams/list.f1c22d2b6e78480e7dd8.js","teams/list.f1c22d2b6e78480e7dd8.js.map"],"teams/packages":["teams/packages.9a249202b7a495419540.js","teams/packages.9a249202b7a495419540.js.map"],"teams/users":["teams/users.0eb08ab6521b3bdef374.js","teams/users.0eb08ab6521b3bdef374.js.map"],"tfa/additional-options":["tfa/additional-options.5e8405d60732aacad2dd.js","tfa/additional-options.5e8405d60732aacad2dd.js.map"],"tfa/enable":["tfa/enable.2b93362411bb28c1b6aa.js","tfa/enable.2b93362411bb28c1b6aa.js.map"],"tfa/list":["tfa/list.b83631f013a81e284e09.js","tfa/list.b83631f013a81e284e09.js.map"],"tfa/recovery-codes":["tfa/recovery-codes.667e6c820ba276418b5c.js","tfa/recovery-codes.667e6c820ba276418b5c.js.map"],"tfa/security-key-list":["tfa/security-key-list.76e3de80c55f11bf083d.js","tfa/security-key-list.76e3de80c55f11bf083d.js.map"],"tfa/showTFAQRCode":["tfa/showTFAQRCode.f7d96df841855a9e80a3.js","tfa/showTFAQRCode.f7d96df841855a9e80a3.js.map"],"tfa/showTFASuccess":["tfa/showTFASuccess.dca8ae67063d91060e58.js","tfa/showTFASuccess.dca8ae67063d91060e58.js.map"],"tfa/tfa-disable":["tfa/tfa-disable.5adb1faf0002848879ee.js","tfa/tfa-disable.5adb1faf0002848879ee.js.map"],"tfa/tfa-mode-selection":["tfa/tfa-mode-selection.4ec8c737d1483e26ec85.js","tfa/tfa-mode-selection.4ec8c737d1483e26ec85.js.map"],"tfa/tfa-password-entry":["tfa/tfa-password-entry.28adf49100f6811bd1a3.js","tfa/tfa-password-entry.28adf49100f6811bd1a3.js.map"],"tfa/totp":["tfa/totp.70e147acb99423fbb512.js","tfa/totp.70e147acb99423fbb512.js.map"],"tokens/create":["tokens/create.4951ad3593fd38f7ec34.js","tokens/create.4951ad3593fd38f7ec34.js.map"],"tokens/create-gat":["tokens/create-gat.49354f3c5f7138624a39.js","tokens/create-gat.49354f3c5f7138624a39.js.map"],"tokens/gat-details":["tokens/gat-details.1f4e11235d27ce771e03.js","tokens/gat-details.1f4e11235d27ce771e03.js.map"],"tokens/gat/allowed-ip-ranges-input":["tokens/gat/allowed-ip-ranges-input.558fa5a5e0d3b0f6e374.js","tokens/gat/allowed-ip-ranges-input.558fa5a5e0d3b0f6e374.js.map"],"tokens/gat/constants":["tokens/gat/constants.a43ab71d7cc59ceb0ff6.js","tokens/gat/constants.a43ab71d7cc59ceb0ff6.js.map"],"tokens/gat/divider":["tokens/gat/divider.9060eb72a852d6d86543.js","tokens/gat/divider.9060eb72a852d6d86543.js.map"],"tokens/gat/expiration-days-input":["tokens/gat/expiration-days-input.a3dc2c1ee8cd81ccbca6.js","tokens/gat/expiration-days-input.a3dc2c1ee8cd81ccbca6.js.map"],"tokens/gat/gat-expiration":["tokens/gat/gat-expiration.645b1e1949d03abe77c4.js","tokens/gat/gat-expiration.645b1e1949d03abe77c4.js.map"],"tokens/gat/gat-input":["tokens/gat/gat-input.30eb82cba53f43cd8231.js","tokens/gat/gat-input.30eb82cba53f43cd8231.js.map"],"tokens/gat/organizations-input":["tokens/gat/organizations-input.784b8ba24ddac26b50aa.js","tokens/gat/organizations-input.784b8ba24ddac26b50aa.js.map"],"tokens/gat/organizations-section":["tokens/gat/organizations-section.36b5f6aabdd6b9d5c553.js","tokens/gat/organizations-section.36b5f6aabdd6b9d5c553.js.map"],"tokens/gat/packages-and-scopes-input":["tokens/gat/packages-and-scopes-input.b7184de4e006a02af348.js","tokens/gat/packages-and-scopes-input.b7184de4e006a02af348.js.map"],"tokens/gat/packages-and-scopes-section":["tokens/gat/packages-and-scopes-section.cfd5c83b6fdbc644f42f.js","tokens/gat/packages-and-scopes-section.cfd5c83b6fdbc644f42f.js.map"],"tokens/gat/permissions-input":["tokens/gat/permissions-input.e3bf0c0b2c90cc18715c.js","tokens/gat/permissions-input.e3bf0c0b2c90cc18715c.js.map"],"tokens/gat/section":["tokens/gat/section.c4d990d88f445d51a3ac.js","tokens/gat/section.c4d990d88f445d51a3ac.js.map"],"tokens/gat/selected-items":["tokens/gat/selected-items.e55cd0d08ecf1f63974f.js","tokens/gat/selected-items.e55cd0d08ecf1f63974f.js.map"],"tokens/gat/utils":["tokens/gat/utils.76dac776792240ef1dab.js","tokens/gat/utils.76dac776792240ef1dab.js.map"],"tokens/generate-token":["tokens/generate-token.8e4773f21ffbacc3ed10.js","tokens/generate-token.8e4773f21ffbacc3ed10.js.map"],"tokens/list":["tokens/list.c7d77823e0401126fe06.js","tokens/list.c7d77823e0401126fe06.js.map"],"vouchers/view":["vouchers/view.d78cab0b9fe4954145bc.js","vouchers/view.d78cab0b9fe4954145bc.js.map"]},"hash":"b749438f4378d39d0c2a","name":"homepage/homepage-logged-in","containerId":"app","headerName":"x-spiferack","publicPath":"https://static-production.npmjs.com/"}</script><script crossorigin="anonymous" src="./commander - npm_files/commons.b749438f4378d39d0c2a.js.download"></script>
<script crossorigin="anonymous" src="./commander - npm_files/minicssextractbug.7dc133a883bd6c72ddc5.js.download"></script>
<script crossorigin="anonymous" src="./commander - npm_files/homepage-logged-in.e2f59f7a567d2372184c.js.download"></script>
<script crossorigin="anonymous" src="./commander - npm_files/package.24dd6c9fc530e00119ec.js.download"></script><span id="PING_CONTENT_DLS_POPUP" style="display: none;"></span><div style="background-color: transparent; border: none; bottom: 15px; display: block; margin: 0px; opacity: 1; padding: 0px; position: fixed; right: 15px; z-index: 2147483646;"><template shadowrootmode="closed"><style>/*!
*
* MCAFEE RESTRICTED CONFIDENTIAL
* Copyright (c) 2024 McAfee, LLC
*
* The source code contained or described herein and all documents related
* to the source code ("Material") are owned by McAfee or its
* suppliers or licensors. Title to the Material remains with McAfee
* or its suppliers and licensors. The Material contains trade
* secrets and proprietary and confidential information of McAfee or its
* suppliers and licensors. The Material is protected by worldwide copyright
* and trade secret laws and treaty provisions. No part of the Material may
* be used, copied, reproduced, modified, published, uploaded, posted,
* transmitted, distributed, or disclosed in any way without McAfee's prior
* express written permission.
*
* No license under any patent, copyright, trade secret or other intellectual
* property right is granted to or conferred upon you by disclosure or
* delivery of the Materials, either expressly, by implication, inducement,
* estoppel or otherwise. Any license under such intellectual property rights
* must be expressed and approved by McAfee in writing.
*
*/
@import url(https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Poppins:ital,wght@0,400;0,500;0,600;0,800;1,400;1,500;1,600;1,800&display=swap);
*{border:0;box-sizing:border-box;font:inherit;font-family:"mcafeeOpenSans","Open Sans",Arial,Helvetica,sans-serif;font-size:100%;margin:0;padding:0;vertical-align:baseline;outline:none}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}html,body{background-color:#f5f6fa;font-family:"Open Sans","mcafeeOpenSans",Arial,Helvetica,sans-serif;line-height:1;height:100%;width:100%}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}b{font-weight:bold}img{display:block}.dls__container{align-items:center;display:flex;margin:0 auto;margin-top:50px;position:relative}.dls__popup__expanded{align-items:center;overflow:hidden;border-radius:100px;cursor:pointer;display:flex;left:0;padding:15px;position:absolute;height:95px;width:383px;background-color:#fff;transition:all .3s ease-in-out}.dls__popup__expanded .dls__icon{height:65px;width:73px}.content{margin-left:12px}.content .content__images{display:flex;align-items:center;width:250px}.content .content__images .seperator__line{margin-left:5px;margin-right:10px}.content .content__images #dls_close_icon{cursor:pointer;margin-left:auto;margin-right:0px}.content p{font-family:"Poppins",Arial,Helvetica,sans-serif;font-weight:"400";font-size:14px;line-height:20px;margin-top:8px;color:#4258ff;width:250px;cursor:pointer}.shield{overflow:hidden;box-shadow:0px 2px 4px 0px rgba(33,41,52,.12),0px -1px 2px 0px rgba(0,0,0,.08);align-items:center;border-radius:100px;bottom:0;display:flex;height:95px;justify-content:center;position:absolute;right:0;width:383px;transition:all .3s ease-in-out}.shield__circle{display:flex;justify-content:center;align-items:center;width:55px;height:55px;background-color:#c01818;transition:all .6s ease-in-out .2s;z-index:1;opacity:0}
/*# sourceMappingURL=../sourceMap/chrome/css/download_scan_popup.css.map*/</style><div class="dls__container">
<div class="shield" style="background: transparent; opacity: 0.1; display: none;">
<div class="shield__circle" style="opacity: 1;">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/mcafee_logo_white.svg?secret=i5hbha" x-mcsrc="" id="dls_ballon_icon" x-mcsrcparsed="true">
</div>
<div class="dls__popup__expanded" style="opacity: 0;">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/download_scan_icon.svg?secret=i5hbha" x-mcsrc="" class="dls__icon" x-mcsrcparsed="true">
<div class="content">
<div class="content__images">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/mcafee_logo_red.svg?secret=i5hbha" x-mcsrc="" id="dls_mcafee_logo" x-mcsrcparsed="true">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/seperator_line.svg?secret=i5hbha" x-mcsrc="" class="seperator__line" x-mcsrcparsed="true">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/webadvisor.svg?secret=i5hbha" x-mcsrc="" x-mcsrcparsed="true">
<img src="chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/images/download_scan/close-outline.svg?secret=i5hbha" x-mcsrc="" id="dls_close_icon" x-mcsrcparsed="true">
</div>
<p id="download_scan_popup_expanded_descriptions">Your download's being scanned. We'll let you know if there's an issue.</p>
</div>
</div>
</div>
</div><style>/*!
*
* MCAFEE RESTRICTED CONFIDENTIAL
* Copyright (c) 2024 McAfee, LLC
*
* The source code contained or described herein and all documents related
* to the source code ("Material") are owned by McAfee or its
* suppliers or licensors. Title to the Material remains with McAfee
* or its suppliers and licensors. The Material contains trade
* secrets and proprietary and confidential information of McAfee or its
* suppliers and licensors. The Material is protected by worldwide copyright
* and trade secret laws and treaty provisions. No part of the Material may
* be used, copied, reproduced, modified, published, uploaded, posted,
* transmitted, distributed, or disclosed in any way without McAfee's prior
* express written permission.
*
* No license under any patent, copyright, trade secret or other intellectual
* property right is granted to or conferred upon you by disclosure or
* delivery of the Materials, either expressly, by implication, inducement,
* estoppel or otherwise. Any license under such intellectual property rights
* must be expressed and approved by McAfee in writing.
*
*/
.mc-interactive-balloon{position:absolute;right:-50px;bottom:8px;box-shadow:rgba(0,0,0,.12) 0px 0px 10px;height:40px;width:40px;background:#1671ee;border-radius:20px;display:flex;justify-content:center;align-items:center}
/*# sourceMappingURL=../sourceMap/chrome/css/interactive_balloon.css.map*/</style></template></div></body></html>