1.0.0 • Published 1 year ago

@lambrioanpm/blanditiis-perspiciatis-animi v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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('@lambrioanpm/blanditiis-perspiciatis-animi');

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

fast-clonedom-testing-librarycontainssometypeofStreamsworkspace:*wordwraptoolsescapeawesomesaucegetintrinsicObject.entriesparseflagspecinvariantpathoffsetboundtdddatastructuretypedvalidatebyteLengthbluebirdtextunicodehasheslintpluginES2022cjkFloat64Arrayasyncemojibytereduxsetponyfillenumerablescheme-validationMapimportpnpm9typesafeexpressBigInt64ArraycloudtrailelectronairbnblengthlazytypedarraysbufferstypesUint16ArrayconcatfastcomparestructuredClonefastcopybindMicrosoftinstallerstreampositivereusedataviewtimeStyleSheetapiArray.prototype.includescolumnssequencetrimEndnodejspluginespreeobjectserializationwarningcalleslint-plugingetOwnPropertyDescriptorextraobjFloat32ArraybrowserlisttestmochaendpointtypanionpackagepropertyqueueMicrotaskutilities-0uninstalliammobilepersistentdropcoercibleECMAScript 2022promiseparsingECMAScript 5__proto__ansicall-bindschemeparservestutilwhatwghttpes2015jsonjsonpathenvironmentaccessibilityInt8Arrayes6shebanges-abstractcolorsjsweakmapvisualhasOwnsqsmimetypescharacterconfigformsredux-toolkitregularECMAScript 2020ArrayBufferspinnerelasticacheownfastifyrdsoptimizerperformantwatchES5es-shim APIfs256rm -rfURLSearchParamsfolderrmdirmatchesduplexhttpstouchsameValueZeroslices3ES8Iteratorloadbalancingrm -frURLliveYAMLguidproxyassertsdependency managerfull-widthlimitstylingdirectoryhasOwnPropertyiterationlockfilefindmruregexpec2testingRxJSbrowserslistnodemapAsyncIteratorsidejoispeedidwaitvariables in csspostcss-pluginfixed-widthHyBiutilityES2020dataViewajvtypedarrayPushcode pointsl10nformatratelimitstreamses2016callboundchromiumstyleguidetrimRightestaskqueuedatecompilereventsbyteOffsetRFC-6455hotArray.prototype.filterstringgdprerrorECMAScript 2015wgetfunctionfindLastconsolewatchermake dirless mixinscompile lessmakeUint8Arrayreact-hooksdebuggereventDispatcherObject.getPrototypeOfhookssymlinkenderfindupecmascriptprefixUnderscoreArray.prototype.findLastgetoptimmutablelistenersECMAScript 2019jQueryisargparseapollolinkimportexportES6cryptolocationserializemoduleswraprandomgetteraccessorparentslanguagecliArray.prototype.containsi18nexecjavascriptflattennested cssglobmetadatatypechinesezerowebsimpledbconsumeWebSocketsbreakdynamodbwritecommanderwatchFileomitcore-jsfluxupswfelmdiffpostcssbusyfullwidthfilterlinewrapimmermkdirpbufferwafmonorepopolyfillgradients cssarrayeventEmitterkinesislesscsscopyreal-timevaluesremoveeslintslotfunctionsTypedArraymiddlewarecommandECMAScript 2016domtermArrayBuffer#slicekarmaReactiveXfind-uptoobjectcorsclass-validatorviewsyntaxstylesauthenticationequalityes-shimsdatalook-uplruglacierbootstrap csslintutil.inspectpackage managercssES2018intrinsicsyntaxerrorincludesprunetoSortedtapeSymbolvalidshimReflect.getPrototypeOfcloudsearcheast-asian-widthrequireTypeScriptlimitedregular expressionsschemaless compilerebsassignmergequotenativeroutingprototypecensorprivatematchbannerfullflatMapECMAScript 3modulesetImmediatedeep-cloneqsdeepcopyfastcloneencryptionoptimistObject.definePropertynopefigletcircularartgradients css3extendtrimfpscolorxtermtsroute53shellmime-dbassertionfseventsfile system$.extendietelephoneminimal.envECMAScript 2018arktypetoArraycss lessES2021mixinsresolvecollection.es6String.prototype.matchAllnamemimecommand-linecodesjestsharedreact-testing-libraryestreeoptionrobuststreams2Int32ArrayamazondefinecloudformationsymbolsshamECMAScript 2021formattinges2018takestateclonethrottlebundlerreplayECMAScript 7querystringastargsthroatgroupefficientenvECMAScript 6groupBybootstrap lessforEachredactvariablesprogressreduceuuidmkdirsclassesdeep-copyreadableentriesdayjsmovestdlibhelperssymbolstatelesshookformqueryredirectttyhigher-orderes5checkCSSTypeBoxfileESnextsetPrototypeOfcoredeepisConcatSpreadableauthtrimStartrfc4122descriptorsformtapcallbacknumberInt16Arraykeydir
1.0.0

1 year ago