{"_id":"@dfgyhujk7npm/quo-temporibus-reprehenderit","name":"@dfgyhujk7npm/quo-temporibus-reprehenderit","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dfgyhujk7npm/quo-temporibus-reprehenderit","version":"1.0.0","description":"Simple command line parser for node","main":"index.js","author":{"name":"dfgyhujk7"},"license":"MIT","keywords":["fast-deep-copy","signal","Array.prototype.contains","rfc4122","protobuf","description","Uint8Array","minimal","estree","setImmediate","generics","some","react","validation","real-time","ECMAScript 2015","copy","includes","eslint-plugin","callbind"],"repository":{"type":"git","url":"git+https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit.git"},"homepage":"https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit/#readme","bugs":{"url":"https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit/issues"},"packageManager":"yarn@4.1.1","dependencies":{"@f1stnpm2/placeat-commodi-cumque-non":"^1.0.0","@f1stnpm2/ut-numquam-doloremque-sequi":"^1.0.0"},"_id":"@dfgyhujk7npm/quo-temporibus-reprehenderit@1.0.0","gitHead":"64e89b5b42f7a6c2b7e78f30704583733c462569","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-I0/T7ml1LV3KC6Liz+KsBdsPFHeSzNmI/j2pDHTl5Tb1m4VHJioCyKZqaz8QmXjAjGE4Tiefqua3zNAMwleIsA==","shasum":"9a14115ac15b17261851340f5b5f149c06e570f3","tarball":"https://registry.npmjs.org/@dfgyhujk7npm/quo-temporibus-reprehenderit/-/quo-temporibus-reprehenderit-1.0.0.tgz","fileCount":10,"unpackedSize":8309,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWeWSOtnhlIMAdC2XLAVZlL4HSUPHiM7r6AZ1cHAeGKAIgDixvBQRoIfkaTiEc1oYLfeqRFG5g+9bSoccsFfhvv5E="}]},"_npmUser":{"name":"tra37500","email":"tra37500@gmail.com"},"directories":{},"maintainers":[{"name":"tra37500","email":"tra37500@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quo-temporibus-reprehenderit_1.0.0_1714038300762_0.8273919438981925"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-25T09:45:00.666Z","1.0.0":"2024-04-25T09:45:00.913Z","modified":"2024-04-25T09:45:01.210Z"},"maintainers":[{"name":"tra37500","email":"tra37500@gmail.com"}],"description":"Simple command line parser for node","homepage":"https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit/#readme","keywords":["fast-deep-copy","signal","Array.prototype.contains","rfc4122","protobuf","description","Uint8Array","minimal","estree","setImmediate","generics","some","react","validation","real-time","ECMAScript 2015","copy","includes","eslint-plugin","callbind"],"repository":{"type":"git","url":"git+https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit.git"},"author":{"name":"dfgyhujk7"},"bugs":{"url":"https://github.com/dfgyhujk7npm/quo-temporibus-reprehenderit/issues"},"license":"MIT","readme":"# @dfgyhujk7npm/quo-temporibus-reprehenderit\n\nSimple command line parser for node\n\n\n## Installation\n\n\tnpm install @dfgyhujk7npm/quo-temporibus-reprehenderit\n\n\n## Usage\n\n### Class interface\n\n#### Initialization\n\tconst clp = require(\"@dfgyhujk7npm/quo-temporibus-reprehenderit\");\n\tconst parser = new clp.ClParser({\n        offset: <number>,           // default: 2\n        optionPrefix: <string>,     // \"/\", \"-\", or \"--\", default: \"/\"\n        caseSensitive: <boolean>    // default: false\n\t});\n\n#### Properties\n\tparser.offset               Number, default: 2\n\tparser.optionPrefix         String, \"/\", \"-\", or \"--\", default: \"/\"\n\tparser.parameterCount       Number of parameters (readonly, no options or switches)\n\tparser.options              Array of objects [{ option<1>: value }, ..., { option<n>: value }] (readonly). \n\t                            Does not follow the caseSensitive option.\n\tparser.parameters           Array (readonly, no options or switches)\n\tparser.switches             Array of strings [ switch<1>, ..., switch<n> ] (readonly).\n                                Does not follow the caseSensitive option.\n\n  \n\n\n#### Methods\n\tparser.option(name)         Get the value of the named option\n\tparser.parameter(index)     Get the command line parameter indicated by index\n\tparser.switch(name)         Returns boolean value that indicates whether the named switch exist\n\n\n\n### Function interface\n\n#### Initialization\n\tconst clp = require(\"@dfgyhujk7npm/quo-temporibus-reprehenderit\");\n\tclp.setPreferences({\n        offset: <number>,           // default: 2\n        optionPrefix: <string>,     // \"/\", \"-\", or \"--\", default: \"/\"\n        caseSensitive: <boolean>    // default: false\n\t});\n\n\n#### Functions\n\tparser.getOption(name)      Returns the value of the named option.\n\tparser.getOptions()         Returns an array of option objects\n\t                            [{ option<1>: value }, ..., { option<n>: value }] (readonly). \n                                Does not follow the caseSensitive option.\n\tparser.getParameter(index)  Returns the command line parameter indicated by index.\n\tparser.getParameterCount()  Returns the number of parameters (no options or switches).\n\tparser.getParameters()      Returns parameters as array (no options or switches).\n\tparser.isSwitch(name)       Returns a boolean value that indicates whether the named switch exist.\n\tparser.getSwitches()        Return an array of strings [ switch<1>, ..., switch<n> ] (readonly).\n                                Does not follow the caseSensitive option.\n\n\n\n## Example\n\t\n\t>\n\t>node test.js /command:copy source.txt \"target 42.txt\" /silent /i /tries:3\n    >\n\n    const clp = require(\"@dfgyhujk7npm/quo-temporibus-reprehenderit\");\n\tconst parser = new clp.ClParser({ offset: 2 });\n\tconsole.log(parser.option(\"command\"))  -> \"copy\"\n    console.log(parser.options)            -> [{ command: \"copy\", tries:\"3\" }]\n\tconsole.log(parser.parameterCount)     -> 2\n\tconsole.log(parser.parameters)         -> [\"source.txt\",\"target.txt\"]\n\tconsole.log(parser.parameter(0))       -> \"source.txt\"\n\tconsole.log(parser.parameter(1))       -> \"target 42.txt\"\n\tconsole.log(parser.switch(\"silent\"))   -> true\n    console.log(parser.switches)           -> [\"silent\",\"i\"]\n\n\n","readmeFilename":"README.md"}