1.0.0 • Published 27 days ago
@ffras4vnpm/fugit-incidunt-qui v1.0.0
String.prototype.trim
An ES5 spec-compliant String.prototype.trim
shim. Invoke its "shim" method to shim String.prototype.trim
if it is unavailable.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec (both ES5 and current).
Most common usage:
var assert = require('assert');
var trim = require('@ffras4vnpm/fugit-incidunt-qui');
assert(trim(' \t\na \t\n') === 'a');
trim.shim(); // will be a no-op if not needed
assert(trim(' \t\na \t\n') === ' \t\na \t\n'.trim());
Engine Bugs
Some implementations of String#trim
incorrectly trim zero-width spaces. This shim detects and corrects this behavior.
Tests
Simply clone the repo, npm install
, and run npm test
breaktslibcharacterpostcss-plugintextmatchescolourstringifierES5randomurlloading.envtacitArray.prototype.findLastconfigbuffersObject.entriesstatelessslotes-shimsschemarm$.extendpackagessettervalidES2023a11yfindupgettypedarrayautoprefixerObservablessymlinkmiddlewareUint32Arraychineseendershellpipelesscssencryptionlimitedartgetoptsignalutil.inspectTypeBoxfindLastfast-deep-copyimportclassesRxjwtArraytypesymbolArray.prototype.includespathcurriedcallbindCSSstyled-componentsInt32Arraygestureschromiumjsonpathexpressiontypeerrorkarmapersistentuser-streamstoolsyup@@toStringTaglanguagemime-dbstablees-abstractmrukeysirqRFC-6455chaiWebSocketscolumnsposeArray.prototype.flatMapcollection.es6es2017zeroESeast-asian-widthweaksetttyhardlinksjsWeakSetdateutilsString.prototype.trimconnectjsxeslint-pluginiteratorless.jsHyBiexpresseslintconfigansiformatdeep-cloneoutputrm -rfflagsargumentbundlertypedarraysnegativemkdirppasswordrobustqueryArray.prototype.flatfast-clonenodejscompileroptionhigher-orderrecursiveInt16ArrayfindLastIndextoArrayregexxdgimmutablestringtranspilerquerystringURLSearchParamsruntimeanimationlockfilehookformstreamlistenersBigUint64Arraysymlinksbannernumberairbnbform-validationfantasy-landECMAScript 2020readableexitreact animationasserttypesasttouchhasOwnratelimitInt8Arrayassertionfunctionalpnpm9progresswebwaitarrayjsdiffTypeScriptwalkingPushopenES2022css-in-jscall-bindWebSocketzodhelpersECMAScript 3rangeerrorpretty[[Prototype]]transpiledataviewduplexhooksArray.prototype.findLastIndexsettingspluginponyfillbrowserslistObject.isscheme-validationperformanteditorECMAScript 5throttleObservableUint16Arraywidthemojisettc39channeloffsetxtermless mixinslazyawesomesaucereadjsdomstyleguideawaityamlenvironmentfullwidthinstallerstartparentcryptoArray.prototype.containsfast-deep-cloneassignsidecoerciblevar6to5escapewaapicommanderwatchincludeses-shim APIstarteres8wordbreakparentsECMAScript 2017autharktypefile systemreducerassertstestersameValueZeroreduceES2015es2016postcssES2020deterministicomitformattingobjpyyamlconcatUint8ArrayhashdefinePropertyavadescriptorscommand-linecall-boundflattendayjsts_.extendmimereact-testing-libraryES6byteLengthsomepropertiesinvariantfprequirexsstypescriptredux-toolkiteventEmitterjasmineinferenceestreesetPrototypeOfES2021dotenvmkdirdirectorycallboundserializerinternal slotCSSStyleDeclarationrm -frmimetypescjkjson-schemareal-timetapformsupbootstrap csspolyfillrmdirerroreventDispatcherlogStreaminternalgetterextensiongetOwnPropertyDescriptorbindidtrimflatwgetrfc4122code pointscolumnapollolinuxremoveregular expressionES2016SymbolECMAScript 6Function.prototype.namevalidationworkspace:*validatordataprefixless compilerprototypematcheveryopenerexereadablestreamtddbufferYAMLdebuggerformtaketoolkitcomputed-typesrapidsigtermvisualeslintframeworkxhrmomentArrayBufferpatchcensorquoteoncecharactersregexpprivateoptimizerintrinsicelectron256multi-packagegradients cssminimalreduxdefaultfunctionsbcryptes7datastructurecoreshamenumerablesortlibphonenumberregularsetImmediatewindowsxdg-opentoStringTagdataViewArray.prototype.filtercloneclassnameflatMapsyntaxerrorclassnamesdebugtestinginstalldeep-copybundlingtyped arraymetadataMaphttpsObject.keysfilterstylesheetbluebirdhandlershasindicatorsequencedeepclonecolorpromisestyleslook-upmixinsES2017throatcorsconcatMapdependency managerdropES8extendstringifyfunctioncommandwhatwgvariablesECMAScript 2022limitObject.getPrototypeOfconsolefastcloneecmascriptgdprlintthreebyteOffsetpopmotionFloat64ArrayvestglobReactiveExtensionsprunenameRxJSdependenciesdrages2015babeltaskreuseajaxemitStreamsObject.fromEntriesmodulesprotoboundlinkauthenticationresolveshebangharmonyStyleSheetlinewrapdomtostringtagworkerspinnersshimasciiclienteventstapeframerprocessObject.definePropertygroupByspawnJSONreact-hookslasterror-handlingguidmergecore-jstrimLeftexit-codeexecutablewatcherfetchURLargsArray.prototype.flattenlessObject.valuesstyleinterruptsaccessorprotocol-bufferssharedes6byteIteratorES2018BigInt64Arrayeslintpluginwarningjsonschemafullwalkqscreateconstoperating-systemcopymonorepoESnextdom-testing-libraryFloat32Arraycircularcontainsvalidateutilityisparsertypeof3defficientdircheckieconcurrencypositiveinputReflect.getPrototypeOfUnderscoreapisearchloggerdeepfast-copymochaWeakMapObject.assigndiffoptimistbootstrap lesspropertyserializepreprocessorcollectionES2019mobilegetintrinsicpoint-freeextrafindspinnerstructuredCloneES7less cssSymbol.toStringTagcss nestingratecomparecmdjQueryECMAScript 2016letpropgetPrototypeOfgradients css3asyncrgbloggingaccessibilitystylingdefineequalityidlechildjestsuperstructECMAScript 2019signalsbrowserlistgenericsnamesjavascriptschemetelephonestreamsjapaneselaunchnpmfolderlruajvforEachnodeUint8ClampedArraywritablesliceunicodepicomatchprivate data0json-schema-validatorfull-widthwordwrappackage managercallbackutilitiesTypedArraydeepcopymkdirshttpECMAScript 7traversemapwriterequestfastifyconfigurablei18nes5purecss lesslengthbrowserRegExp#flagssymbolsvalueses2018ECMAScript 2021ES3reactl10nprotobufparseRegExp.prototype.flagssanitizationpromisesserializationnested cssArrayBuffer.prototype.sliceappclass-validatorwebsitenopetrimEndpackageiterationbabel-corecss variablesafefseventsmatchAllMicrosoftreact-hook-formexecsharedarraybufferpushbusygroupargumentsredacttypanionclitermdeleteobjectpreserve-symlinksAsyncIteratoresdescriptorsigintuninstalllookconsumespeedstreams2utilfastequalfromECMAScript 2023ReactiveXpackage.jsontrimRighttrimStartArrayBuffer#slicebatchtestfixed-widthtoobjectfigletvariables in csscurlviewiterateinspectSetargparsetypesafejoinegative zerosortedimmerperformance-0typedECMAScript 2018descriptionmacosmovekeycacheargvsyntaxspringcodescssvaluefind-upchrome__proto__nativeuuidenvString.prototype.matchAllJSON-Schemafsterminalspecarraybufferfilearraysmake dirurlstoSortedwhichweakmapcryptjsonmakeshrinkwrapqueueMicrotaskwatchFilePromisesanitizemoduleregular expressionsphonequeuewatchinggraphqlreact posecompile lessio-tsopensentriesbdd
@diahkomalasarinpm/dolore-aliquam-suscipit@f1stnpm2/odio-illo-aut@ffras4vnpm/ab-doloribus-velit-assumenda@ffras4vnpm/accusamus-animi-fuga-sit@ffras4vnpm/amet-delectus-repellat-itaque@ffras4vnpm/atque-odio-ipsam-unde@ffras4vnpm/blanditiis-alias-distinctio-veniam@ffras4vnpm/commodi-voluptas-aliquam-eius@ffras4vnpm/corrupti-modi-porro-provident@ffras4vnpm/deleniti-nemo-nam-optio@ffras4vnpm/dicta-iure-veniam-reprehenderit@ffras4vnpm/dolor-est-blanditiis-odit@ffras4vnpm/dolorum-mollitia-enim-non@ffras4vnpm/dolorum-nemo-laudantium-corporis@ffras4vnpm/esse-est-similique-at@ffras4vnpm/exercitationem-officia-id-ea@ffras4vnpm/explicabo-neque-nobis-impedit@ffras4vnpm/fugit-magnam-modi-dignissimos@ffras4vnpm/illo-laboriosam-sed-ipsa@ffras4vnpm/iste-quo-reiciendis-debitis@ffras4vnpm/neque-accusamus-cum-maxime@ffras4vnpm/neque-ad-sit-velit@ffras4vnpm/nostrum-ad-quia-perspiciatis@ffras4vnpm/omnis-sunt-occaecati-saepe@ffras4vnpm/placeat-corrupti-nobis-velit@ffras4vnpm/repudiandae-deserunt-earum-quos@ffras4vnpm/repudiandae-nulla-velit-recusandae@ffras4vnpm/sit-inventore-dignissimos-repellendus@ffras4vnpm/soluta-inventore-nam-harum@ffras4vnpm/ut-quos-aut-quod@ffras4vnpm/vitae-incidunt-nostrum-dolore@ffras4vnpm/voluptates-laudantium-eum-natus@wemnyelezxnpm/provident-quae-accusamus
1.0.0
27 days ago