1.0.0 • Published 27 days ago

@ffras4vnpm/fugit-incidunt-qui v1.0.0

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

String.prototype.trim Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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
1.0.0

27 days ago