1.0.0 • Published 1 year ago

@xdanangelxoqenpm/corrupti-earum-nemo 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('@xdanangelxoqenpm/corrupti-earum-nemo');

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

uninstallmatchtextcall-bound@@toStringTagclassnametesterpostcssES7tapechaicheckArray.prototype.containsgetterReactiveExtensionsArray.prototype.flatdebuggerpropertiesbddsymbolshardlinksECMAScript 2017linkES5cachemapreducerandomupassertionsuperagenttoolkitquerylook-updataViewreducerfunctionsstdlibshamRxJSi18nes2018xhrredux-toolkitajvbootstrap lessisinstalloptimizerpreprocessoravaiterateArray.prototype.findLastlookpush-0negative zerokoreanlinthasbytemodulesfast-deep-clonetslibprotocol-buffersspecgetPrototypeOftddroutingintypescriptrobustes2015installerslicefunctioncolumnseslintconfigformbrowserslistdom-testing-libraryagentfind-upstarterasyncfpsloginputregexcollectionbundlinglinewrapprogressdirectoryastsesesHyBilivetoobjectaccessibilityarktypees2016trimLeftbrowsercharactermimejapaneseexpressfsgenericsArray.prototype.flattentrimEndprototypeincludesflateast-asian-widthbuffersjsdomnodereplayfromArrayBuffer#sliceconfigurablearraysbootstrap cssdeep-cloneamazonperformantRegExp#flagschannelECMAScript 5wordwrapkeylibphonenumberemojiES2022dirlockfilecallbindsimpledbworkflowstringifierECMAScript 2021ECMAScript 7slotfast-copynodejsawsapollolimitutilityjsdiffcryptequalitystylesrm -rfchromecharactersless mixinswalkvaluesfastifylazycall-binddateeslintplugintrimdefineelasticacheregularfluxassertcoercibledeepcopyreactsideoffsetuuidrm -frUint8ArrayESmergejsxconsumeless compilermetadataassertsfast-clonedataUint16ArrayECMAScript 6deepObject.definePropertyflatMapeventspasswordyuppreserve-symlinksjasminestylenativecorsbrowserlistloggerintrinsicvestrapidexectoSortedcensorflattenmkdirSymbol.toStringTagpruneReactiveXautoprefixerclass-validatorwrapECMAScript 2022css-in-jsStreamdropsetformatBigInt64Arraymime-dbdatastructureoptimistframeworkcallbackescapeformatting$.extendtrimRighttrimStartwatchingcolorfullwidthstringifyregular expressionsefficientsetPrototypeOfPushargumentbannercodeszodruntime256argsutildynamodbcloudwatchFloat64ArrayECMAScript 3AsyncIteratores-abstractmobileIteratorauthenticationeslintimmutablemoduleequalecmascriptMapnested cssrangeerrorES8coreoptionbluebirdES2020containsprefixfindLastwafgetOwnPropertyDescriptorproxyieES2015symlinksredirectwritablelocationbundlerpackagesyntaxerrorURLes-shimsfast-deep-copysnsTypeBoxcliajaxfile systemlanguageroute53positivecode pointsqueueMicrotasksettingses7environmenttraversewebratekeysfinduplimitedcssnamesrgbauthremoveinvariantcompile lessbcryptchromiumflagsdependenciessyntaxclonemiddlewarereusestructuredClonecreatedescriptionObject.fromEntriesUint32ArraywatchmkdirpparsequeueECMAScript 2019taskextracss lessFloat32ArrayprivatejsES2023tostringtagfigletRFC-6455asciiforEachcommand-lineroutesortedtoStringTagstatewaithashInt8ArrayfseventsparentsJSON-SchemamakeprotohasOwnPropertystoragegatewayObservablesECMAScript 2020idquoteSymbolsameValueZerotypeerrors3writevalidationobjecttoArrayshellshebangcircularthroatInt16ArraygetArray
1.0.0

1 year ago