2.1.4 • Published 15 days ago

@teamteanpm2024/maiores-fuga-iste v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

Usage

import Clios from '@teamteanpm2024/maiores-fuga-iste';
let clios = Clios.of([
    ['tags|tag*', 'the tags'],
    ['protocol=http', 'the protocol'],
    ['host=localhost', 'the host'],
    ['port(p)=1080', 'the port'],
    ['lazy(L)', 'load it lazily'],
    ['silence(s)', 'show no output'],
    ['no-proxy', 'use no proxy'],
  ],
  '--tag=win --tag=linux --tags=unix arg0 --host=foo.com -p 3090 -L arg1 --no-silence --no-proxy arg2'
);
let output = clios.parse();
console.log(output);
let help = clios.getHelpText();
console.log(help);

And the output will be:

{
  options: {
    protocol: 'http',
    host: 'foo.com',
    port: '3090',
    tags: [ 'win', 'linux', 'unix' ],
    lazy: true,
    silence: false,
    noProxy: true
  },
  values: [ 'arg0', 'arg1', 'arg2' ]
}
<command> [-h | --help] [--tags=<value>]* [--protocol=<value>] [--host=<value>] [-p <value> | --port=<value>] [-L | --lazy] [-s | --silence] [--no-proxy]
options:
  -h, --help              display this help message
      --tags=<value>      the tags
      --tag=<value>       alias of tags
      --protocol=<value>  the protocol. Default value is "http"
      --host=<value>      the host. Default value is "localhost"
  -p, --port=<value>      the port. Default value is "1080"
  -L, --lazy              load it lazily
  -s, --silence           show no output
      --no-proxy          use no proxy
namefindLastIndexfullcircularsyntaxerrorfullwidthisObject.isvalidatereact-hook-formnodegetPrototypeOfindicatormonoreporegular expressionspromiseinternal slotbreakmake dirECMAScript 2022protocol-buffersArray.prototype.containsUint8ArrayFloat32ArrayshellgesturessuperstructES6telephonetypesafeECMAScript 2019extendprototypetakedeep-cloneES2017AsyncIteratorreact animationSymbolcallbackmacoschannellook-upbrowsermergeUint16Arraylimitmimetypeshardlinks-0accessibilityfpJSONSymbol.toStringTagformattingfastcloneposeEShasjasminehelperstrimttyRFC-6455rmdirpreserve-symlinksrapidproxyformswritestreamsentriesJSON-SchemaeslintconfigbalancedargparsetsisConcatSpreadableairbnbperformancedatastructuretypedarraysspecfile systemtaskArrayinterruptsintrinsicparsingpersistentfast-clonetypeoflastgdprmatchAllkeyconnectes-abstractajaxes7bootstrap lessECMAScript 3exit-codedefinePropertyfixed-widthwidth[[Prototype]]ieopenreact__proto__readableObject.getPrototypeOfapiRegExp#flagsargschecksequencequerystringsharedarraybufferoptimistcloudtrailoutputavareact posekinesisbeanstalkcss nestingSetnested csseventslruexpressionsidewaapidataviewsnsdirstylesheetsortedcompilerbluebirdObservablesloggingcommand-lineguidURLauthassignoptimizerlengthloadbalancingtranspileassertsutil.inspectbytebindjsdiffpyyamlkarmatc39fast-deep-copydeepcopyvalides2015languageelasticacheebsArrayBuffer#sliceECMAScript 2016Iteratorvariables in cssphonepoint-freestyleframeworkextraroute53oncesetImmediateObject.keysswfinputObject.entriesjson-schema-validationhttpvestwatchajvbundlerwhatwggettertimebundlinghookstddregexstableserializethrottleprefixestreegetOwnPropertyDescriptorTypedArrayquoteArrayBufferlimitedsymbolsautoscalingWeakMapcopyes5polyfillES2018throatstringnegativeString.prototype.trimvalueskeys6to5offsetcompareratelimitArray.prototype.flattenflagsdataes-shim APIjestReactiveXimmutablecloudformationhigher-orderdependency managertextec2touchspringinstallerutilitiestaprobustlinewrapcoreconsolewaitwgettoolsStyleSheetwatcherArrayBuffer.prototype.sliceReflect.getPrototypeOfwalkingqueuetoobjectcensorconfigurableMicrosoftECMAScript 6babelprunemodulelogserializationshamirqsearchlistenersgroupvaluedeterministiciaminferenceobjecmascripttrimEndvisualclassnamesexpressoptionrequestcss-in-jsreducersignalswatchFilecryptiteratefileWeakSetYAMLlinuxgetstreams2lintinstallfseventsforEachpatcharraybufferwatchingloggerstyleguidecryptoprocessformatCSSStyleDeclarationgroupByPromisecolorURLSearchParamses2017es2018eventEmittercolorswindowsinternalES2023setPrototypeOfrfc4122cloudfronttypanionfindLastpropertyansitypedutilspopmotionremovebabel-coredomfastifyenvironmentECMAScript 2023arrayemojisymlinkcorssyntaxviewbusyartnopebddstreamiteratorbatchObject.definePropertyjssortconcatstructuredCloneinspectfsstoragegatewayESnextzeroimmernegative zerospinnerlinkexecObjecttypescss lesseslintplugindebuggerdom-testing-librarydropstarterUint8ClampedArraycolumnrm -frpromisesmkdirchineseprettyescaperandomcore-jssetjson-schemasanitizationvalidationterminalrequirerecursiveemitobjectlesstrimRighthandlersbannerdefinesetterreact-hookseast-asian-widthcodesequalitycharacterreadablestreamauthenticationcallboundFloat64ArrayInt8Arraypicomatchmetadatasimpledbkoreanbcryptcachemixinsarrayssymbolastshimboundprogress$.extendcsscjkcallbindfast-copyreduxrgbfunctionInt16ArrayStreamtypescriptcollection.es6makecontainsnodejsECMAScript 2021sharedawesomesauceprotomapES3commanderjsonpathparserslotasyncdragbrowserslistwalkglobfind-uptacitfigletTypeBoxprivatehookformArray.prototype.findLastless mixinsamazonsuperagentfantasy-landreact-testing-librarychromiumpurenumberdescriptorexitflattermendpointchaielbtoStringTagvalidatoruuid
2.1.4

15 days ago

1.1.4

16 days ago

1.1.3

17 days ago

1.0.3

18 days ago

1.0.2

19 days ago

1.0.1

20 days ago

1.0.0

20 days ago