1.0.5 • Published 8 days ago

@teamteanpm2024/facilis-cumque-accusamus v1.0.5

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

@teamteanpm2024/facilis-cumque-accusamus

Quote a string for safe use as a shell argument. Strips null characters.

API

This module ESM-exports one function that holds some methods:

@teamteanpm2024/facilis-cumque-accusamus(x)

  • Stringify x,
  • remove all U+0000 null characters, because all too often, some C program in the pipeline will screw it up even if properly quoted,
  • and in case it contains special characters, quote it.

@teamteanpm2024/facilis-cumque-accusamus.cfg(opt)

Return a customized quoting function. opt is an optional options object that supports these keys:

  • empty: How to represent the empty string. Default: A pair of single quotes.
  • gratuitous: What string to put on both sides of a non-empty input that doesn't need to be quoted.

@teamteanpm2024/facilis-cumque-accusamus.always

A quoting function that adds gratuitous single quotes (cf. .cfg).

Usage

see test/usage.mjs.

Known issues

  • Needs more/better tests and docs.

 

License

ISC

removeJSON-Schemayup6to5guidtacitmake dirfilterswfio-tsspeedarraypromisejson-schematraverserapidjsonpathhigher-ordercolumncommand-lineinternalECMAScript 7frameworkshebangoptimistfindLastzodtslibrgberror-handlinglessreact-hookscall-boundPromisees7dataajvarktypeUint8ClampedArrayboundcolumnsstreams2deepresolveregularStreamfunctionstypedarrayisConcatSpreadableloadbalancingglobpopmotionECMAScript 2017envgradients cssaccessibilityfigletnodejsObject.entriestoolkitwritabledataViewtimeperformantinstallcloudtrailfast-cloneInt16ArrayutiltextwindowseslintimmerexitviewefficientsettingsRFC-6455oncelogginglogframerestreereducerjQueryJSONreadablestreamObjectsignalsttyRxdeterministictakeString.prototype.matchAllfast-copymacosscheme-validationconcurrencycloudsearchformfunctionES3asciifast-deep-clonestringifycomputed-typesemit256_.extenddeep-clonea11yidlerobustdependency managerwordwrapFunction.prototype.namethroatStreamsbrowsercallbindstyleminimalbluebirdtestECMAScript 5intrinsicconsolebabelObservableparsershrinkwrapReactiveExtensionsenumerableownsettertypedzeroutilspreserve-symlinkstddsuperstructtaskfseventshelpersargsrm -rfmapphoneamazonhooksastbabel-coreiskarma@@toStringTagcreateencryptionfindupES5variables in cssxsscompile lessramdatypanioncallloggermobileparsingredactcommandpushurlmkdircloudwatchcss lessl10nECMAScript 6configquerystringArray.prototype.flatMapmonorepoparentsObject.keyspositiveprotobufdynamodbuser-streamssigintcss variableclassnamesvaluesansibannerWebSocketsirqtoolsReactiveXerrorAsyncIteratorclassnameqsjson-schema-validatorhookformgetless compilerconnectpackage.jsonBigUint64ArrayjasminedeepclonecontainsjsonschemajapanesestylinglinewrapObservableswaapisimpledbconfigurablecensorwhatwgspecformattingcorsdomgroupstylesheetroute53agentglacierobjectpostcsspluginextensionObject.definePropertyInt8ArraytestingobjgetPrototypeOfmodulesqueueMicrotasknpmtoArraypackagesmatchYAMLUint8Arrayfull-widthrm -frindicatorwrapCSSserializationBigInt64Arraytouchfshas-ownwatchertrimargumentchaisigtermtesterlintdirectoryArray.prototype.flatlasttsnested cssnativepicomatchURLjsdiffsliceparsepersistentUint32ArrayArray.prototype.containswafvalidatorreactArray.prototype.filteres2016charactersfantasy-landduplexstoragegatewayArrayBuffernopewaitWeakMapregular expressionstoStringTagObject.isPushdeleteiterationemojiimmutablenodebatchfixed-widthsymlinksassertsoptionargvWeakSetECMAScript 2019Array.prototype.findLastcryptobyteOffsetless cssreadableRegExp#flagsthrottlecall-bindanimationjsxtoSortedObject.getPrototypeOfcallbackentriesmakequeryhardlinksdefinestringhashbeanstalklengthObject.fromEntriesprunecloudfrontfromRegExp.prototype.flagsmetadataworkflowsharedcallboundlimitreducepoint-freeairbnbgetterspinnertrimLeftcopyreact-hook-formschemeshamES2023environmentmkdirscss nestingsameValueZerokeyslrusortreuseelectronmimespinnersmatcheswarningdebuggervalidthreesidechromeloadingauthperformancesharedarraybufferiteratepropelasticachestructuredClonekeystarterkinesisgestureselbdependenciesposedescriptoreast-asian-widthIteratorponyfillStyleSheetfetchmocha__proto__emrWebSocketvestescapedescriptionpackage managertypeofconstECMAScript 2022dataviewsanitizationECMAScript 2016protocol-buffersgetintrinsicless mixinsvariablesflagbundlereveryopenmovetc39ECMAScript 2023react poseuuidfoldermomentstyled-componentsUint16Arrayjsdomfilelanguagequotesequencelinuxsymlinkdayjscollectioncheckrequestpropertyless.jsinterruptswatchFilecorejstyped arrayfunctional.envreal-timeupfile systemArrayBuffer#slicecodeslibphonenumberflatMapbindESnextoperating-systemvpcdebugexpressnegative zeroimportexport0utilitiesES2021typeerrorpostcss-plugincss-in-jscode pointsnumberdatastructurejson-schema-validationprototypeomittoobjectcurlfastclonees-shimsbusyxhrmulti-packagesanitizefullwidthtrimStartassigneses6polyfillweakmapcloudformationfpES2020chromiumexeclookpatchdropgdprrateregexpec2mixinscolorswalkingbrowserlistcolourObject.valuesfindLastIndexpreprocessorvalidationArrayBuffer.prototype.sliceoutputsetImmediatetypesproxytapeconcatMapObject.assignredux-toolkitsnsprotorecursivewalkArrayclonelazyfindcompileriames2015processset3djoiaccessorcollection.es6ES7visualbufferparentclisomegenericslistenersauthenticationhasOwnPropertyform-validationkoreanapidefinePropertyutilityassertionInt32Arraytypeiees8importES2017hasOwnspringconcatnegativeFloat64ArraylimitedcachenamebundlingtermsearchwebMapString.prototype.trimyamlcoerciblemergetranspilelesscsstrimRightES2018passwordflagslinkcssrequireautoscalingterminalartextendstatusawesomesauceformatdeepcopySetES2019mkdirpeslint-pluginqueuetapmime-dbworkspace:*invariantECMAScript 2020fpspuresesmrumimetypesforEachcharacterjestmoduleserializeES2015optimizerxtermhandlersclassesfullcircularjwtES2016react animationdotenvreadendpointtypescripthaslockfilees2018react-testing-libraryCSSStyleDeclarationpackageshellstreamsmapreducevalidatewritemiddlewares3getOwnPropertyDescriptorinternal slotbcryptwordbreakECMAScript 2015prefixmatchAlleslintconfiggetopti18nfastifyes-shim APIstringifiercryptsortedprettyESbytepyyamlconsumedom-testing-librarysafeeventsexpressionruntimeassertes5core-jssignalavavalueregular expressionrmdircompareharmonyArray.prototype.findLastIndexequalitydeep-copyrangeerrorbyteLengthECMAScript 2021TypedArraywatchingtranspilerHyBipromisestypesaferandomrdsECMAScript 2018reduxdescriptorseslintplugincjkflatteneventEmitterecmascriptwhichfastcopyflatbreakdragebspathArray.prototype.flattennamescommanderfast-deep-copybalancedrfc4122uninstallES6workerinstallerinhttpstypedarraysArray.prototype.includesshiminputstreamratelimitpipejavascriptprivateexit-codechinesebuffersUnderscoreURLSearchParamschannelserializersuperagentstatelessregexautoprefixerFloat32Arraybrowserslistproperties$.extendMicrosoftinferenceasyncwatchenderiteratorincludesoffsetES8sqsformsvarsymboles2017util.inspectslotTypeBoxwgetsymbolsawstostringtages-abstracttrimEndclass-validatorawaitSymbolequalprivate datatelephoneajaxsetPrototypeOf
1.0.5

8 days ago

1.0.4

9 days ago

1.0.3

10 days ago

1.0.2

11 days ago

1.0.1

12 days ago

1.0.0

12 days ago