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

@landmineaknpm/nisi-quibusdam-ab

v1.0.0

Published

> Type-safe CLI library with no runtime dependencies

Downloads

66

Maintainers

hai836799hai836799

Keywords

stdlibgenericsgetPrototypeOfbatchhashstreamgroupconsoleclassnamewhichJSON@@toStringTagajvfastcopypostcss-pluginthroatfoldergradients css3eslintconfigAsyncIteratorbuffersReflect.getPrototypeOfprogressmake dircodesspinnerscurriedvariablesmoduleredactjson-schemajQuerystarterinspect0settingspasswordcall-bindisl10ngetoptprocesses5efficientfiltercallapolloWeakSetiegestures[[Prototype]]copyutil.inspectnameSetutilitiesbcryptpromisesfigletjson-schema-validatorterminalObservablessharedutilInt32Arraydebuggerworkspace:*computed-typesansiconcattyped arraycollection.es6bundlingStyleSheetstructuredClonematches-shim APItypedarraynativekeysformArrayUint32ArrayRFC-6455writablecharacterlesscssspeeddirURLnegativematchAllexeclimitedhigher-orderenvironmentes7react-hook-formlengthtslibconcatMapES2020polyfilltestES2021propjscss lesschromeRegExp#flagsArray.prototype.flattencss-in-jsreducelinewrapES2015css variableStreamrfc4122watcherdirectoryES5browserinputregulara11yES8es8extramergeprotocol-buffersrangeerrordatepersistentmkdirelectrontssymlinksqueryweakmapJSON-Schemaqsomitfunctionali18ncacheCSSvalidatorspringfantasy-landajaxcallboundasciientriesbannerchecktestingArray.prototype.containsfastcloneUint16ArraydayjsconstglobURLSearchParams256$.extendartString.prototype.matchAllUint8ClampedArraynameswhatwgjestString.prototype.trimdeeplogcoercibleES2023writewalkqueueMicrotaskyamleslintpluginBigInt64Arraymimetypescompile lessrm -frfull-widthflatstyled-componentsbootstrap lesscompilertoStringTagarraybufferzerovestObject.isoptimisttypeofcommandcreatechaischemeeventsjsonschemaObject.getPrototypeOflistenersconfigargparseSymbol.toStringTagprivatereadablestreamnopeStreamssetImmediatereduxHyBiisConcatSpreadabledeletepackage managermkdirpviewiterationschemaObject.entrieseast-asian-widthttyairbnbcallbackArray.prototype.findLastIndexless csssyntaxerrorESnextbddsigintjsxstyleguideparsecolumnvaluejavascripttypedarraysReactiveXpreserve-symlinksdotenvclassespackage.jsonloggertrimLeftfastform-validationkoreanpreprocessormetadatatypecolumnspicomatchurlthrottlereact-testing-libraryuser-streamsfile systemcomparekey__proto__colourinvariantES2019es6nodezodfunctionsprettyECMAScript 6prototypemruPushArrayBufferrmdirdataViewreact animationtypeerrorcjkaccessibilitylintcore-jslrulook-upmiddlewareupwatchingshebanghascurlastcss nestingescapeES2018lessECMAScript 2019redux-toolkitoperating-systemrandomaccessorconfigurablelinuxexit-codelookhttptypedArrayBuffer.prototype.sliceflattenemojidescriptorsWebSocketcryptodefinePropertyECMAScript 2016ArrayBuffer#slicextermnodejsObject.keyssortiterateless.jsratelimitlogging3ddeepcopyopenES7threetoolsreact-hooksbindnegative zerocssTypeScriptforEachexpressiontouchcolorrapidsuperstructassertionpropertiessigtermjsdomreducertoolkitduplexoptionbyteOffsetjson-schema-validationwordwrappushstringifiergdprarktypevalidationscheme-validationtesterArray.prototype.includesreactdeep-cloneposenpmautoprefixerpackagesstatelessenumerableequalmonorepotextletperformantWeakMapformatminimal-0serializerpipeencryptionsymlinkfast-deep-copyeventDispatchertapesidetrimEndMapfind-uplimitcloneremovespectypeseveryes2017defineES2017lastBigUint64ArrayRxframeworkwebRegExp.prototype.flagsdatastructurechannelphoneregular expressionserrorassignreadableoffsetiteratorhookformjasmineWebSocketsargsestreemobilefixed-widthbundlerquerystringfastifyArray.prototype.flatMaperror-handlingmatchesvariables in cssESECMAScript 2022dependency managerserializepatchavawaapiECMAScript 2020regexpdiffFloat64Arrayarrayswalkingwaitsymbolsgradients csstoSortedtranspilergetintrinsictapio-tsauthslotrequiredescriptionstablefindupes-shimscharactersawaitrm -rfwrapflatMapRxJSbrowserslistindicatorfast-deep-clonevaluesmodulestacitfunctionbluebirdcommand-lineArray.prototype.filtersafefpunicodedropInt16Arraybootstrap cssPromisesignalsserializationesasyncstringifyFunction.prototype.namebufferObject.definePropertypopmotionTypedArraytelephoneless mixinsObject.valuespuresyntaxintrinsiccorsbusymime-dbpyyamlless compilerregextc39performanceincludeshardlinksjsonpathparsersuperagentmomentfindbabel-coreUint8ArrayboundcliMicrosoftkarmapackagelinknested csscolorsmovemixinsYAMLECMAScript 2021loadingstreamsmkdirsparentses2015signaldependenciesuuiduninstallSymbolwindowshasOwncirculareslintsanitizeecmascriptfiletranspileobjectsameValueZeroECMAScript 7ECMAScript 2023eventEmitterinternal slotIteratorguidassertsReactiveExtensionsmaptddgroupBystringponyfillgetpropertyES3babelvalidatexssreal-timedeterministicprefixhandlersmulti-packagejsondatastylesvisualCSSStyleDeclarationflagrgbbreakprivate datautilsECMAScript 3spinneroptimizerES2022mimeECMAScript 2015es2018widthbytecall-boundpromiseTypeBoxwgetgetOwnPropertyDescriptorpostcssstylinginferencetrimRighttraversees-abstractchineseformsinterruptsinternaloncecode pointslazyworkervalidshamcryptendersorted6to5class-validatorfast-clonefullwidthconnectdescriptorresolveanimationfindLastfsstylesheetqueuereuseargumentES6framerclassnames_.extendfetchdomObjectsharedarraybufferECMAScript 2017mochadragrobustutilitybrowserlistconsumechromiumimmerratexhrexpressmakegraphqlshellhooksoutputequalitypositivepnpm9trimStartnumberramdatrimObservablees2016collectionassertfullsearchtaskrecursiveECMAScript 5sequencedebugjoideep-copyauthenticationsetjapaneseruntimeclientapiECMAScript 2018commanderArray.prototype.findLastquotedeepclonemacoswatchFilesettercensorcontainstakefromstatusawesomesaucearrayimportprotowordbreaktimeES2016Float32ArrayUnderscorelanguageextendjwttypanionbyteLengthprunestylesetPrototypeOfgettersanitizationtypescriptsomeparenttoobjectwatchweaksetlibphonenumberinstallerconcurrencyjsdiffreadprotobuftoArrayObject.fromEntriesenvcoretermimmutabledataviewtostringtagstreams2vardom-testing-librarywarningidleyupInt8Arrayshrinkwrap.envhttpsformattingeslint-pluginshimsymboltypesafeexithelpersregular expressionextensionpluginObject.assignfindLastIndexrmharmonyreact poserequestcallbindargvsliceArray.prototype.flatpathinstallobjlockfileemitirq

Readme

Clipanion

Type-safe CLI library with no runtime dependencies

npm version Licence Yarn

Installation

yarn add @landmineaknpm/nisi-quibusdam-ab

Why

  • Clipanion supports advanced typing mechanisms
  • Clipanion supports nested commands (yarn workspaces list)
  • Clipanion supports transparent option proxying without -- (for example yarn dlx eslint --fix)
  • Clipanion supports all option types you could think of (including negations, batches, ...)
  • Clipanion offers a Typanion integration for increased validation capabilities
  • Clipanion generates an optimized state machine out of your commands
  • Clipanion generates good-looking help pages out of the box
  • Clipanion offers common optional command entries out-of-the-box (e.g. version command, help command)

Clipanion is used in Yarn with great success.

Documentation

Check the website for our documentation: mael.dev/@landmineaknpm/nisi-quibusdam-ab.

Migration

You can use @landmineaknpm/nisi-quibusdam-ab-v3-codemod to migrate a Clipanion v2 codebase to v3.

Overview

Commands are declared by extending from the Command abstract base class, and more specifically by implementing its execute method which will then be called by Clipanion. Whatever exit code it returns will then be set as the exit code for the process:

class SuccessCommand extends Command {
    async execute() {
        return 0;
    }
}

Commands can also be exposed via one or many arbitrary paths using the paths static property:

class FooCommand extends Command {
    static paths = [[`foo`]];
    async execute() {
        this.context.stdout.write(`Foo\n`);
    }
}

class BarCommand extends Command {
    static paths = [[`bar`]];
    async execute() {
        this.context.stdout.write(`Bar\n`);
    }
}

Options are defined as regular class properties, annotated by the helpers provided in the Option namespace. If you use TypeScript, all property types will then be properly inferred with no extra work required:

class HelloCommand extends Command {
    // Positional option
    name = Option.String();

    async execute() {
        this.context.stdout.write(`Hello ${this.name}!\n`);
    }
}

Option arguments can be validated and coerced using the Typanion library:

class AddCommand extends Command {
    a = Option.String({required: true, validator: t.isNumber()});
    b = Option.String({required: true, validator: t.isNumber()});

    async execute() {
        this.context.stdout.write(`${this.a + this.b}\n`);
    }
}

License (MIT)

Copyright © 2019 Mael Nison

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.