npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@skylernpm/quos-porro-nesciunt

v1.0.0

Published

@skylernpm/quos-porro-nesciunt ========

Downloads

5

Keywords

astserializewidthtypedarrayappqueryenderpatchpackagespinnerObject.getPrototypeOfarraybuffergetparsinghashttptrimStartworkerxhrprotobuffolderstringifyexeerror-handlingcss-in-jstypeswritableextranameimmutableIteratorless mixinsfullthrottlejapaneserestfuloncenegativejsxpipehasOwnformtypedarraysObject.definePropertyisfetchmkdirpwrapstyled-componentsdayjseslintconfigi18nlanguageCSSStyleDeclarationtrimLeftesdescriptorsspeclimitcomparereadES2020safequerystringqueueMicrotaskspinnerscode pointsfindupxdg-openswfdebuggerlessmacosHyBicolorsargumentsavajQuerytypesafetouchArray.prototype.flates8utilfast-deep-clonelazyescapesortReflect.getPrototypeOfecmascriptjsonpathgetoptauthenticationconnectsyntaxoperating-systemargumentcallbindwebtoobjectiterateArrayBuffer#slicefast-clone__proto__colourmapfastcloneboundfilterasyncdeepclonecompile lessresolvefsowndataViewString.prototype.matchAllbrowserslist@@toStringTagpasswordassertskarmastateincludesgetPrototypeOfObject.fromEntriespushidlecolumnsregular expressionsredactECMAScript 2017rm -frassigntypeTypedArraystdlibmimetypesquoteArray.prototype.findLastIndexMapfunctionalwalkingsignaldebuginternalFunction.prototype.nameintrinsicECMAScript 2023workspace:*wait256jsdompicomatchfast-deep-copylistenersimportqueuemodulesReactiveExtensionsregularcjknodebyteOffsetparseefficientObject.iserrorcollection.es6mime-dbhigher-ordersesparentsartcallboundmakeenvironmentsjwtmovematchesidarraysformsstringifierenvironmentruntimesignalspromisecurlindom-testing-libraryTypeBoxreduxglaciersqsvalidplugindatastructureinstallnumberUint8Arraywarningcodesform-validationsharedarraybufferstatelesschildless compilersymbolsES5openselbES2023cachegetintrinsicdirectoryrandomponyfillwalk.envlast[[Prototype]]requireStyleSheetlruSetUint32Arraycall-bindshimminimalbrowserjspackage.jsonextensionendpointcss variabletoolsfull-widthimmerreact-testing-librarylinuxsidetypeofviewelectronrobustcore-jsemitargparsereact-hook-formdynamodbtrimRightES2021xdgInt32ArraydateduplexcallflatMapclass-validatoroptimistdirgetterpyyamlchromiumarrayvariables in cssyamldataspawnslotbddrmdirroute53identifierscolumnexpressgroupByqsstringnodejsECMAScript 7eventEmitterbatchbindprogressopensetnativeenvkeyoptionfpscommand-lineconsolereadablesuperstructcompilerstartertddpnpm9rfc4122cloudtrailECMAScript 2018flagRFC-6455reactPushdeleteexecclassestypaniontslibs3positiveurlsterminalelmpostcsslinkstylesameValueZerodefaulttrimEndbufferpolyfillECMAScript 2022es5frameworkbundlerprotocol-buffersprivate dataBigUint64ArrayTypeScriptlibphonenumberArrayBufferloghashlockfileESnextWebSocketsimpledbomitWebSocketsrequestSymbolreact-hooksprefixhookformnested cssArrayBuffer.prototype.sliceFloat64Arrayfind-uplimitedflatsyntaxerrorArray.prototype.flatMapfast-copyestreeObject.assigncolorstoragegatewaytyped arrayes2015bundlingbrowserlistcloudsearchhas-ownfixed-widthbyteLengthArray.prototype.flattenassertentriesRegExp.prototype.flagshooksvestasciiECMAScript 2019sigtermbusytakeargvmruclonelinteslintpluginansikoreanmulti-packageinterruptsfrompersistentwafperformanceeventDispatcherratelimitArray.prototype.includesdotenvbcrypthotes2018ObjectutilitychineseshellexitrangeerrorfluxECMAScript 3classnamesextendRxJSchromecloudwatchargsArray.prototype.filterfindLastvaluewatchFiledescriptorrdsredux-toolkitl10nphonecopystructuredCloneauthObject.valuespropECMAScript 2016coercibletsBigInt64ArrayrgbaccessorapischemaflagsStreamsdataviewwatchingrmgroupconcatcheckenumerableequalityloadingsinatraiamlaunchfullwidthWeakSetpathcors-0streams2less cssconsumesuperagentreplayfastprototypemake dirtapec2ebstelephonefastifymiddlewaretaskfigletguidmapreducefindLastIndexkinesisurlformatvisualio-tsinputprettyURLupsharedequalwhichnegative zerooffsetes2016helpersjasminegradients css3genericspackagesbootstrap lessFloat32ArraydomparserECMAScript 2021monorepothroatdefinees-shimsinferencechannelamazontimejshintwordwraptoArraycssajaxES8dependency managerairbnbdeepwriteflattenWeakMapinvariantreusemkdirJSON-SchemaproxyzerotypescriptmatchAllstylingrapidstreamsimportexportperformantsymlinka11yloggerassertionprotoRxopenerObservablesagenteslint-plugincmdwordbreakArray.prototype.containswgetcharactersdropECMAScript 5hasOwnPropertylivevariablesprocessarktypemobileglobalInt16Arraytoolkitclassnamesymlinkstypeerrorcloudformationregexutil.inspectspeedgetOwnPropertyDescriptorscheme-validationobjclikeystoSortedcallbackstatusserializerencryptiontapesettingspostcss-pluginshrinkwrapAsyncIteratorfunctionscircularjsdiffES2019isConcatSpreadablebreakttysetterchaitrimawesomesaucetest

Readme

@skylernpm/quos-porro-nesciunt

CI NPM version

CLI arguments parser for node.js, with sub-commands support. Port of python's @skylernpm/quos-porro-nesciunt (version 3.9.0).

Difference with original.

  • JS has no keyword arguments support.
    • Pass options instead: new ArgumentParser({ description: 'example', add_help: true }).
  • JS has no python's types int, float, ...
    • Use string-typed names: .add_argument('-b', { type: 'int', help: 'help' }).
  • %r format specifier uses require('util').inspect().

More details in doc.

Example

Following code is a JS program that takes a list of integers and produces either the sum or the max:

const { ArgumentParser } = require('@skylernpm/quos-porro-nesciunt')

const parser = new ArgumentParser({ description: 'Process some integers.' })

let sum = ints => ints.reduce((a, b) => a + b)
let max = ints => ints.reduce((a, b) => a > b ? a : b)

parser.add_argument('integers', { metavar: 'N', type: 'int', nargs: '+',
                                  help: 'an integer for the accumulator' })
parser.add_argument('--sum',    { dest: 'accumulate', action: 'store_const',
                                  const: sum, default: max,
                                  help: 'sum the integers (default: find the max)' });

let args = parser.parse_args()
console.log(args.accumulate(args.integers))

Assuming the JS code above is saved into a file called prog.js, it can be run at the command line and provides useful help messages:

$ node prog.js -h
usage: prog.js [-h] [--sum] N [N ...]

Process some integers.

positional arguments:
  N           an integer for the accumulator

optional arguments:
  -h, --help  show this help message and exit
  --sum       sum the integers (default: find the max)

When run with the appropriate arguments, it prints either the sum or the max of the command-line integers:

$ node prog.js 1 2 3 4
4
$ node prog.js 1 2 3 4 --sum
10

If invalid arguments are passed in, it will issue an error:

$ node prog.js a b c
usage: prog.js [-h] [--sum] N [N ...]
prog.js: error: argument N: invalid 'int' value: 'a'

This is an example ported from Python. You can find detailed explanation here.

API docs

Since this is a port with minimal divergence, there's no separate documentation. Use original one instead, with notes about difference.

  1. Original doc.
  2. Original tutorial.
  3. Difference with python.

@skylernpm/quos-porro-nesciunt for enterprise

Available as part of the Tidelift Subscription

The maintainers of @skylernpm/quos-porro-nesciunt 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. Learn more.